.form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    backdrop-filter: blur(10px);
}

.form-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    color: #555;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.form-label.required::after {
    content: " *";
    color: #ff3b30;
}

.form-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    color: #333;
    background: #f8f9fa;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
}

.checkbox-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.form-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d7dce2;
    border-radius: 4px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    margin: 0;
}

.form-checkbox:hover {
    border-color: #667eea;
}

.form-checkbox:checked {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
}

.form-checkbox:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.checkbox-label {
    font-size: 14px;
    cursor: pointer;
    display: block;
    color: #333;
    line-height: 1.5;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: underline;
}

.checkbox-label a:hover {
    text-decoration: none;
}

.checkbox-text {
    display: inline;
}

.submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
    transform: none;
}

.submit-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

/* Состояния валидации Pristine */
.text-help,
.pristine-error {
    color: #ff3b30;
    font-size: 14px;
    margin-top: 6px;
    line-height: 1.35;
}

.has-danger .form-label {
    color: #ff3b30;
}

.has-danger .form-input {
    border-color: #ff3b30;
    background: #fff5f5;
    box-shadow: none;
}

.has-danger .form-input:focus {
    border-color: #ff3b30;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.12);
    transform: translateY(-2px);
}

.has-success .form-input {
    border-color: #22c55e;
    background: #f6fff8;
}

.has-success .form-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

/* Группа с чекбоксом */
.form-group-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.form-group-checkbox .checkbox-wrapper {
    margin-top: 2px;
}

.form-group-checkbox .checkbox-label {
    flex: 1;
    min-width: 0;
}

.form-group-checkbox .text-help,
.form-group-checkbox .pristine-error {
    width: 100%;
    margin-top: 8px;
    margin-left: 0;
}

.callback-checkbox {
    margin-top: 0;
}

.consultation-agreement {
    margin-right: 8px;
    vertical-align: top;
}

/* Сообщение об успешной отправке */
.success-message {
    text-align: center;
    padding: 32px 24px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #e6eefc;
    margin-top: 20px;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
}

.success-message h3 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.2;
    color: #1f2937;
}

.success-message p {
    margin: 0;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
}

/* Модалка */
.modal__content .form-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #333;
}

/* Адаптив */
@media (max-width: 768px) {
    .form-container {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .form-title,
    .modal__content .form-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .form-input {
        padding: 14px 16px;
        font-size: 16px;
    }

    .submit-btn {
        padding: 15px 20px;
        font-size: 15px;
    }

    .success-message {
        padding: 24px 18px;
    }

    .success-message h3 {
        font-size: 22px;
    }

    .success-message p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 22px 16px;
    }

    .form-title,
    .modal__content .form-title {
        font-size: 22px;
    }

    .form-label,
    .checkbox-label,
    .text-help,
    .pristine-error {
        font-size: 13px;
    }

    .success-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .success-message h3 {
        font-size: 20px;
    }
}




.form-hint {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
}

.uploaded-files {
  margin-top: 12px;
}

.uploaded-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e5e5e5;
}

.uploaded-file-remove {
  background: none;
  border: none;
  color: #c00;
  cursor: pointer;
}

.upload-message {
  margin-top: 10px;
  font-size: 14px;
}

.upload-message--error {
  color: #c00;
}

.upload-message--success {
  color: #0a7a2f;
}


#feedbackForm .form-group { margin-bottom: 0px;  }
.form-title.header-form-title { font-size: 16px; font-weight: normal; }
#feedbackForm .form-group-textarea { margin-bottom: 1px; }
.success-message--inside-form { background: none !important;     box-shadow: none !important; border: none; padding-top: 0; }
textarea {  font-family: 'Inter' !important; }


#consultationForm .form-group { margin-bottom: 10px;  }

