/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #faf9f6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: #000;
    font-size: 1.8rem;
    font-weight: bold;
}

.logo .accent {
    color: #2563eb;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #000;
}

.phone-number {
    color: #1e40af;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Progress Container */
.progress-container {
    background: #fff;
    padding: 2rem 0 1rem;
    margin-top: 80px;
    border-bottom: 1px solid #e5e7eb;
}

.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid #e5e7eb;
}

.step.active .step-circle {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}

.step-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.step.active .step-label {
    color: #1e40af;
    font-weight: bold;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1e40af;
    margin-bottom: 2rem;
    font-weight: bold;
}

/* Information Summary Bar */
.info-summary {
    display: flex;
    background: #1e40af;
    border-radius: 10px;
    margin-bottom: 3rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.2);
}

.summary-item {
    flex: 1;
    padding: 1rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-item:last-child {
    border-right: none;
}

.summary-label {
    display: block;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    display: block;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    min-height: 1.5rem;
}

/* Form Container */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.form-step.active {
    display: block;
}

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

/* Question Card */
.question-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e5e7eb;
}

.question {
    font-size: 1.8rem;
    color: #000;
    margin-bottom: 2rem;
    font-weight: bold;
    line-height: 1.3;
}

/* Answer Options */
.answer-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.option-btn {
    padding: 1rem 2rem;
    border: 2px solid #1e40af;
    background: white;
    color: #000;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.option-btn:hover {
    background: #1e40af;
    color: white;
}

.option-btn.selected {
    background: #1e40af;
    color: white;
}

/* Date Inputs */
.date-inputs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.date-select {
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #000;
    min-width: 120px;
    cursor: pointer;
}

.date-select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Input Fields */
.input-field {
    display: flex;
    justify-content: center;
}

.state-select,
.coverage-select {
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #000;
    min-width: 200px;
    cursor: pointer;
}

.state-select:focus,
.coverage-select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-input {
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #000;
}

.contact-input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.contact-input::placeholder {
    color: #6b7280;
}

/* Guarantee */
.guarantee {
    margin-bottom: 2rem;
}

.guarantee p {
    color: #1e40af;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Submit Button */
.submit-btn {
    background: #f59e0b;
    color: #000;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
    margin-bottom: 1rem;
}

.submit-btn:hover {
    background: #d97706;
}

/* Disclaimer */
.disclaimer {
    text-align: left;
}

.disclaimer p {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 0 1rem;
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    color: #6b7280;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
    border-radius: 5px;
}

.nav-btn:hover:not(:disabled) {
    color: #1e40af;
}

.nav-btn:disabled {
    color: #d1d5db;
    cursor: not-allowed;
}

.next-btn {
    color: #1e40af;
    font-weight: 500;
}

.next-btn:hover {
    color: #1e3a8a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .question {
        font-size: 1.5rem;
    }
    
    .question-card {
        padding: 2rem 1.5rem;
    }
    
    .info-summary {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .summary-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 0.75rem;
    }
    
    .summary-item:last-child {
        border-bottom: none;
    }
    
    .summary-label {
        font-size: 0.7rem;
    }
    
    .summary-value {
        font-size: 0.9rem;
    }
    
    .date-inputs {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .date-select {
        min-width: 200px;
        width: 100%;
        max-width: 200px;
    }
    
    .answer-options {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .option-btn {
        min-width: 200px;
        width: 100%;
        max-width: 200px;
    }
    
    .navigation {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .state-select,
    .coverage-select {
        width: 100%;
        max-width: 200px;
    }
    
    .contact-form {
        gap: 1rem;
    }
    
    .contact-input {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .progress-steps {
        gap: 0.75rem;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .page-title {
        font-size: 1.6rem;
    }
    
    .question {
        font-size: 1.2rem;
    }
    
    .question-card {
        padding: 1.25rem 0.75rem;
    }
    
    .info-summary {
        gap: 0.25rem;
    }
    
    .summary-item {
        padding: 0.5rem;
    }
    
    .summary-label {
        font-size: 0.6rem;
    }
    
    .summary-value {
        font-size: 0.8rem;
    }
    
    .date-select,
    .option-btn,
    .state-select,
    .coverage-select {
        max-width: 180px;
        font-size: 0.9rem;
        padding: 0.875rem;
    }
    
    .contact-input {
        max-width: 250px;
        font-size: 0.9rem;
        padding: 0.875rem;
    }
    
    .submit-btn {
        font-size: 1.1rem;
        padding: 0.875rem 1.5rem;
    }
    
    .guarantee p {
        font-size: 1rem;
    }
    
    .disclaimer p {
        font-size: 0.7rem;
    }
}

/* Additional Animations */
.form-step {
    transition: all 0.3s ease;
}

.option-btn {
    transition: all 0.2s ease;
}

/* Focus States */
.option-btn:focus,
.date-select:focus,
.state-select:focus,
.coverage-select:focus,
.contact-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}

/* Auto-advance message styling */
.auto-advance-message {
    text-align: center;
    color: #2563eb;
    font-size: 0.9rem;
    margin-top: 1rem;
    font-style: italic;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 5px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

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

/* Success States */
.success {
    border-color: #10b981;
    background-color: #f0fdf4;
}

/* Prevent horizontal scroll on all devices */
body, html {
    max-width: 100vw;
    overflow-x: hidden;
}

.container, .header, .main-content, .footer {
    max-width: 100%;
    overflow-x: hidden;
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    .progress-steps {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        padding: 0 10px;
    }
    
    .question-card {
        width: 100%;
        max-width: 100%;
    }
    
    .info-summary {
        width: 100%;
        max-width: 100%;
    }
    
    .navigation {
        width: 100%;
        max-width: 100%;
    }
}
