/* Лид-форма Thermaflex */
.cpform-container { margin: 50px auto; padding: 40px; background: #fff; border-radius: 1.5rem; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.03); }
.cpform-header-box { padding: 1.5rem; background: url(/cpform/form-bg.jpg) no-repeat center center / cover; margin: 0 0 2rem; border-radius: 1.2rem; position: relative; }
.cpform-header-box__overlay { position: absolute; left: 0; right: 0; top: 0; bottom: 0; backdrop-filter: blur(1px) brightness(0.7); border-radius: 1.2rem; }
.cpform-header-box__text { position: relative; }
.cpform-title { color: #fff; margin-bottom: 15px; font-size: 1.8rem; font-weight: 700; text-align: center; letter-spacing: -0.5px; }
.cpform-subtitle { color: #eee; margin-bottom: 30px; text-align: center; font-size: 1.4rem; line-height: 1.5; max-width: 600px; margin-left: auto; margin-right: auto; }
.cpform-group { margin-bottom: 20px; }
.cols-cpform { }
.forms-col-item { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.cpform-label { display: block; margin-bottom: 8px; font-weight: 600; color: #374151; font-size: 14px; }
.cpform-required { color: #ef4444; margin-left: 4px; font-weight: 700; }
.cpform-optional { color: #9ca3af; font-size: 12px; margin-left: 6px; font-weight: 400; }
.cpform-input { width: 100%; padding: 12px 16px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 15px; font-weight: 400; transition: all 0.2s ease; box-sizing: border-box; background: #fafafa; }
.cpform-input:focus { outline: none; border-color: #00A900; background: #fff; box-shadow: 0 0 0 3px rgba(0,169,0,0.06); }
.cpform-input:hover { border-color: #d1d5db; background: #fff; }
.cpform-input.error { border-color: #ef4444; background: #fef2f2; }
.cpform-textarea { width: 100%; padding: 12px 16px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 15px; font-weight: 400; transition: all 0.2s ease; box-sizing: border-box; background: #fafafa; resize: vertical; min-height: 100px; font-family: inherit; }
.cpform-textarea:focus { outline: none; border-color: #00A900; background: #fff; box-shadow: 0 0 0 3px rgba(0,169,0,0.06); }
.cpform-textarea:hover { border-color: #d1d5db; background: #fff; }
.cpform-textarea.error { border-color: #ef4444; background: #fef2f2; }
.cpform-select { width: 100%; padding: 12px 16px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 15px; background: #fafafa; cursor: pointer; transition: all 0.2s ease; box-sizing: border-box; font-weight: 400; }
.cpform-select:focus { outline: none; border-color: #00A900; background: #fff; box-shadow: 0 0 0 3px rgba(0,169,0,0.06); }
.cpform-select:hover { border-color: #d1d5db; background: #fff; }
.cpform-file-upload { position: relative; }
.cpform-file-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.cpform-file-label { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 100px; padding: 0.8rem; border: 2px dashed #e5e7eb; border-radius: 8px; background: #fafafa; cursor: pointer; transition: all 0.2s ease; text-align: center; box-sizing: border-box; }
.cpform-file-label:hover { border-color: #00A900; background: #f0fdf4; }
.cpform-file-label.drag-over { border-color: #00A900; background: #f0fdf4; transform: scale(1.01); }
.cpform-file-label i { font-size: 22px; color: #9ca3af; margin-bottom: 0px; }
.cpform-file-label span { font-size: 15px; font-weight: 500; color: #374151; margin-bottom: 5px; }
.cpform-file-label small { font-size: 12px; color: #9ca3af; }
.cpform-file-list { margin-top: 12px; }
.cpform-file-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 6px; margin-bottom: 6px; font-size: 13px; }
.cpform-file-item:last-child { margin-bottom: 0; }
.cpform-file-info { display: flex; align-items: center; flex: 1; }
.cpform-file-info i { margin-right: 8px; color: #6c757d; }
.cpform-file-name { font-weight: 500; color: #374151; }
.cpform-file-size { color: #9ca3af; margin-left: 8px; }
.cpform-file-remove { background: none; border: none; color: #ef4444; cursor: pointer; padding: 2px 6px; border-radius: 4px; transition: background-color 0.2s; }
.cpform-file-remove:hover { background: #fef2f2; }
.cpform-privacy-section { margin: 25px 0; padding: 16px; background: #f8f9fa; border-radius: 8px; border: 1px solid #e9ecef; }
.cpform-privacy-checkbox { display: flex; align-items: flex-start; gap: 10px; }
.cpform-checkbox { margin-top: 2px; accent-color: #00A900; transform: scale(1.1); }
.cpform-checkbox-label { flex: 1; font-size: 14px; color: #374151; line-height: 1.5; margin: 0; cursor: pointer; }
.cpform-privacy-link { color: #00A900; text-decoration: underline; font-weight: 500; }
.cpform-privacy-link:hover { color: #008800; text-decoration: none; }
.cpform-autocomplete { position: relative; }
.cpform-autocomplete-list { position: absolute; top: 100%; left: 0; right: 0; background: white; border: 1px solid #e5e7eb; border-top: none; border-radius: 0 0 8px 8px; max-height: 200px; overflow-y: auto; z-index: 1000; display: none; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.cpform-autocomplete-item { padding: 10px 16px; cursor: pointer; border-bottom: 1px solid #f3f4f6; transition: background-color 0.15s; font-size: 14px; }
.cpform-autocomplete-item:hover, .cpform-autocomplete-item.active { background-color: #f0fdf4; color: #166534; }
.cpform-autocomplete-item:last-child { border-bottom: none; }
.cpform-submit { width: 100%; padding: 16px 24px; background: linear-gradient(135deg, #00A900 0%, #008800 100%); color: white; border: none; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; margin-top: 25px; letter-spacing: 0.3px; box-shadow: 0 3px 12px rgba(0,169,0,0.15); }
.cpform-submit:hover { background: linear-gradient(135deg, #009400 0%, #007700 100%); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,169,0,0.25); }
.cpform-submit:active { transform: translateY(-1px); }
.cpform-submit:disabled { background: #d1d5db; cursor: not-allowed; transform: none; box-shadow: none; }
.cpform-error { color: #ef4444; font-size: 13px; margin-top: 5px; font-weight: 500; }
.cpform-success { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); color: #166534; padding: 25px; border-radius: 12px; text-align: center; margin-bottom: 25px; border: 1px solid #86efac; box-shadow: 0 3px 12px rgba(34,197,94,0.08); }
.cpform-success h3 { margin: 8px 0; font-size: 22px; font-weight: 700; }
.cpform-success p { margin: 0; font-size: 15px; font-weight: 500; }
.cpform-loading { display: none; text-align: center; margin-top: 15px; }
.cpform-spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid rgba(255,255,255,0.3); border-top: 3px solid #ffffff; border-radius: 50%; animation: cpform-spin 1s linear infinite; }
@keyframes cpform-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.cpform-input::placeholder, .cpform-textarea::placeholder, .cpform-select option:first-child { color: #9ca3af; opacity: 1; }
.cpform-input:focus::placeholder, .cpform-textarea:focus::placeholder { opacity: 0.7; }
.cpform-container { animation: cpform-fadeIn 0.5s ease-out; }
@keyframes cpform-fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 992px) {
.cpform-container { margin: 25px 20px; padding: 30px 25px; }
.cpform-title { font-size: 1.6rem; }
.cpform-subtitle { font-size: 1.2rem; }
}

@media (max-width: 768px) {
.cpform-container { margin: 20px 15px; padding: 25px 20px; }
.cpform-title { font-size: 1.4rem; }
.cpform-subtitle { font-size: 1.1rem; margin-bottom: 25px; }
.cpform-group { margin-bottom: 16px; }
.forms-col-item { gap: 1.2rem; }
.cpform-submit { padding: 14px 20px; font-size: 15px; margin-top: 20px; }
.cpform-privacy-section { margin: 20px 0; padding: 12px; }
.cpform-file-label { min-height: 85px; padding: 16px; }
}

@media (max-width: 480px) {
.cpform-container { margin: 15px 10px; padding: 20px 15px; }
.cpform-title { font-size: 1.3rem; }
.cpform-subtitle { font-size: 1rem; }
.cpform-input, .cpform-select, .cpform-textarea { padding: 10px 14px; font-size: 14px; }
.cpform-submit { padding: 12px 18px; font-size: 14px; }
.cpform-privacy-section { margin: 16px 0; padding: 10px; }
.cpform-checkbox-label { font-size: 13px; }
.cpform-file-label { min-height: 75px; padding: 12px; }
.cpform-file-label i { font-size: 18px; }
.cpform-file-label span { font-size: 14px; }
.cpform-file-label small { font-size: 11px; }
}