/* Quote Wizard Styles - Extends main site styles */

.quote-wizard-container {
    max-width: 800px;
    margin: 120px auto 60px;
    padding: 0 2rem;
    background: var(--white);
}

.wizard-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    border-radius: 16px 16px 0 0;
}

.wizard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.progress-indicator {
    margin: 1.5rem 0;
}

.step-text {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-blue);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.language-selector {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.language-selector label {
    font-weight: 600;
    margin-bottom: 0;
}

.language-selector select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.wizard-content {
    background: var(--white);
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-top: none;
    min-height: 400px;
}

.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-header h2 {
    color: var(--dark-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.page-description {
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.questions-container {
    max-width: 600px;
    margin: 0 auto;
}

.question-group {
    margin-bottom: 2rem;
}

.question-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    line-height: 1.4;
}

.required-asterisk {
    color: #dc3545;
    margin-left: 4px;
}

.question-note {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0.75rem 0;
    border-left: 4px solid var(--primary-blue);
}

.input-container {
    margin-top: 0.75rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--white);
    color: var(--text-dark);
}

/* Enhanced SELECT styling to match input fields */
.form-control[type="select"],
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 16px;
    padding-right: 3rem;
    cursor: pointer;
}

select.form-control:focus {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23003d82' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-control.required {
    border-left: 4px solid var(--primary-blue);
}

.radio-option,
.checkbox-option {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.3s, background-color 0.3s;
    cursor: pointer;
}

.radio-option:hover,
.checkbox-option:hover {
    border-color: var(--primary-blue);
    background-color: rgba(30, 64, 175, 0.02);
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    margin-top: 0.125rem;
    flex-shrink: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid var(--border-color);
    background: var(--white);
    transition: all 0.3s ease;
}

/* Radio button styling */
.radio-option input[type="radio"] {
    border-radius: 50%;
}

.radio-option input[type="radio"]:checked {
    border-color: var(--primary-blue);
    background-color: var(--primary-blue);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3' fill='white'/%3E%3C/svg%3E");
    background-size: 16px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Checkbox styling */
.checkbox-option input[type="checkbox"] {
    border-radius: 4px;
}

.checkbox-option input[type="checkbox"]:checked {
    border-color: var(--primary-blue);
    background-color: var(--primary-blue);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

/* When radio/checkbox is checked, highlight the container */
.radio-option:has(input[type="radio"]:checked),
.checkbox-option:has(input[type="checkbox"]:checked) {
    border-color: var(--primary-blue);
    background-color: rgba(30, 64, 175, 0.05);
}

/* Focus styles for accessibility */
.radio-option input[type="radio"]:focus,
.checkbox-option input[type="checkbox"]:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.radio-option label,
.checkbox-option label {
    font-weight: 500;
    margin-bottom: 0;
    cursor: pointer;
    line-height: 1.5;
    color: var(--text-dark);
    flex: 1;
}

.additional-text {
    margin-top: 0.5rem !important;
    margin-left: 1.5rem;
    background: var(--light-gray);
}

.hcaptcha-question {
    text-align: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

/* Development Mode Notice */
.dev-captcha-note {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: center;
}

.dev-captcha-note p {
    margin: 0.5rem 0;
    color: #856404;
}

.dev-captcha-note p:first-child {
    font-weight: 600;
    color: #533d03;
}

.dev-captcha-note p:last-child {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Hide hCaptcha container in development mode */
#hcaptcha-container {
    display: none;
}

.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 16px 16px;
}

.nav-spacer {
    flex: 1;
}

.wizard-navigation .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    min-width: 120px;
}

/* Fix back button visibility on light background */
.wizard-navigation .btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.wizard-navigation .btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 500;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Validation Styles */
.form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

/* Loading States */
.btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .quote-wizard-container {
        margin: 100px auto 40px;
        padding: 0 1rem;
    }
    
    .wizard-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .wizard-header h1 {
        font-size: 2rem;
    }
    
    .wizard-content {
        padding: 2rem 1.5rem;
    }
    
    .page-header h2 {
        font-size: 1.75rem;
    }
    
    .wizard-navigation {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-spacer {
        display: none;
    }
    
    .wizard-navigation .btn {
        width: 100%;
        order: 2;
    }
    
    .wizard-navigation .btn-secondary {
        order: 1;
    }
    
    .language-selector {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .radio-option,
    .checkbox-option {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .additional-text {
        margin-left: 0 !important;
        width: 100%;
    }
}

/* Enhanced Focus Styles for Accessibility */
.form-control:focus,
.btn:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus,
select:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Improved Contrast for Better Accessibility */
.question-label {
    color: var(--dark-blue);
}

.form-control::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

/* Animation for Smooth Transitions */
.wizard-content {
    animation: fadeIn 0.3s ease-in;
}

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

/* Thank You Page Styles */
.completion-indicator {
    text-align: center;
    margin: 1.5rem 0;
}

.checkmark {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.thank-you-content {
    background: var(--white);
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-top: none;
    min-height: auto;
}

.recommendation-section {
    margin: 3rem 0;
}

.recommendation-card {
    background: var(--light-gray);
    border: 2px solid var(--primary-blue);
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
}

.recommendation-header h4 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.recommendation-description {
    margin: 1.5rem 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.recommendation-features {
    margin-top: 1.5rem;
}

.recommendation-features h5 {
    color: var(--dark-blue);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.recommendation-features ul {
    list-style: none;
    padding: 0;
}

.recommendation-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
}

.recommendation-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.next-steps-section {
    margin: 3rem 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.step-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--white);
    font-size: 1.25rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* Green "Go Live!" step styling */
.step-card-success {
    border-color: #059669;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
}

.step-number-success {
    background: #059669;
    color: var(--white);
}

.step-card-success h4 {
    color: #065f46;
}

.step-card-success:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.2);
}

.step-card h4 {
    color: var(--dark-blue);
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.step-card p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.95rem;
}

.contact-section {
    margin: 3rem 0;
    text-align: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 12px;
}

.contact-section h3 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.contact-section p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-buttons .btn {
    min-width: 180px;
}

/* Fix secondary button visibility on light background */
.btn-secondary-light {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary-light:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* Responsive adjustments for thank you page */
@media (max-width: 768px) {
    .thank-you-content {
        padding: 2rem 1.5rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* hCaptcha Status Messages */
.hcaptcha-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.hcaptcha-status.loading {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.hcaptcha-status.loading::before {
    content: "⏳ ";
    margin-right: 0.5rem;
}

.hcaptcha-status.ready {
    background-color: #d1fae5;
    color: #047857;
    border: 1px solid #10b981;
}

.hcaptcha-status.ready::before {
    content: "✓ ";
    margin-right: 0.5rem;
}

.hcaptcha-status.error {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #f87171;
}

.hcaptcha-status.error::before {
    content: "⚠ ";
    margin-right: 0.5rem;
}