/* ==========================================
   Form Pages Stylesheet
   ========================================== */

/* Form Page Section */
.form-page-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 80vh;
}

.form-page-header {
    text-align: center;
    margin-bottom: 50px;
}

.form-page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.form-page-subtitle {
    font-size: 1.25rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* Form Wrapper */
.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #ff6b73;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input.error,
.form-textarea.error {
    border-color: #ff6b73;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-help-text {
    font-size: 0.875rem;
    color: #888;
    margin-top: 6px;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.checkbox-label:hover {
    background-color: #e9ecef;
    border-color: #ff6b73;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ff6b73;
}

.checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #ff6b73;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-label:hover {
    background-color: #e9ecef;
    border-color: #ff6b73;
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ff6b73;
}

.radio-label input[type="radio"]:checked {
    background-color: #ff6b73;
}

.radio-label:has(input[type="radio"]:checked) {
    background-color: rgba(102, 126, 234, 0.1);
    border-color: #ff6b73;
}

.radio-label:has(input[type="radio"]:checked) span {
    font-weight: 600;
    color: #ff6b73;
}

/* Privacy Checkbox */
.privacy-checkbox {
    background-color: transparent;
    border: none;
    padding: 0;
}

.privacy-checkbox span {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.privacy-checkbox a {
    color: #ff6b73;
    text-decoration: underline;
}

.privacy-checkbox a:hover {
    color: #ff6b73;
}

/* Form Buttons */
.form-button-group {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.form-next-btn,
.form-back-btn {
    flex: 1;
}

.btn-secondary {
    background-color: #e9ecef;
    color: #333;
}

.btn-secondary:hover {
    background-color: #dee2e6;
    transform: translateY(-2px);
}

/* Loading State */
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner {
    animation: rotate 2s linear infinite;
}

.spinner .path {
    stroke: currentColor;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Form Progress Indicator */
.form-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-step.active {
    background-color: #ff6b73;
    color: #fff;
    transform: scale(1.1);
}

.progress-step.completed {
    background-color: #4caf50;
    color: #fff;
}

.progress-line {
    width: 60px;
    height: 2px;
    background-color: #e9ecef;
    transition: all 0.3s ease;
}

.progress-line.completed {
    background-color: #4caf50;
}

/* Form Messages */
.form-message {
    text-align: center;
    padding: 60px 40px;
}

.form-message .message-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px auto;
}

.success-message .message-icon {
    color: #4caf50;
}

.error-message .message-icon {
    color: #ff6b73;
}

.form-message h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.form-message p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

.form-message a {
    color: #ff6b73;
}

/* Trust Indicators */
.trust-indicators {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 60px auto 0 auto;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.trust-icon {
    width: 40px;
    height: 40px;
    color: #ff6b73;
    flex-shrink: 0;
}

.trust-item h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.trust-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Callback Form Specific Styles */
.callback-form-wrapper {
    max-width: 600px;
}

.callback-benefits {
    max-width: 1000px;
    margin: 80px auto 0 auto;
    text-align: center;
}

.benefits-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
}

.benefit-icon {
    width: 64px;
    height: 64px;
    color: #ff6b73;
    margin: 0 auto 20px auto;
}

.benefit-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.benefit-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.btn-block {
    width: 100%;
}

/* Responsive Design */
@media screen and (max-width: 991px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media screen and (max-width: 767px) {
    .form-page-title {
        font-size: 2rem;
    }

    .form-page-subtitle {
        font-size: 1.1rem;
    }

    .form-wrapper {
        padding: 30px 25px;
    }

    .form-step-title {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .form-button-group {
        flex-direction: column;
    }

    .trust-indicators {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-progress {
        flex-wrap: wrap;
    }

    .progress-step {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .progress-line {
        width: 40px;
    }
}

@media screen and (max-width: 479px) {
    .form-wrapper {
        padding: 25px 20px;
    }

    .form-page-title {
        font-size: 1.75rem;
    }

    .form-step-title {
        font-size: 1.25rem;
    }
}
