/* Custom styles to complement Bootstrap */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --success-color: #16a34a;
    --warning-color: #f59e0b;
    --accent-color: #0891b2;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo sizing - 50% smaller than typical */
.logo-container {
    padding: 1px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
}

.logo-img {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Hero images - two side by side, smaller size */
.hero-images {
    max-width: 600px;
    margin: 0 auto;
}

.hero-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 3px solid #ffffff;
    transition: all 0.3s ease;
}

.hero-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* Ensure content fits on one screen */
.main-content {
    flex: 1;
}

.hero-section {
    padding-top: 15px;
    padding-bottom: 10px;
}

.hero-section h1 {
    font-size: 1.85rem;
    line-height: 1.2;
    color: #1e293b;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hero-section h1 .text-success {
    color: var(--success-color) !important;
    font-weight: 900;
}

.hero-section .lead {
    font-size: 1.05rem;
    color: #475569;
    font-weight: 500;
    line-height: 1.5;
}

/* Benefits section */
.benefits-highlight {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px 10px;
}

.benefit-item {
    padding: 8px;
}

.benefit-item strong {
    color: #198754;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 4px;
}

.benefit-item .small {
    font-size: 0.85rem;
}

.cta-subtext {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid var(--warning-color);
    padding: 12px 20px;
    border-radius: 8px;
    margin-left: auto;
    margin-right: auto;
    max-width: 500px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.cta-subtext p {
    color: #92400e;
    font-weight: 600;
}

/* Form styling */
.form-section {
    border: none;
    border-radius: 16px;
    margin-bottom: 30px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.question-container {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.question-container h2 {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.35rem;
}

.question-container.active {
    animation: fadeIn 0.3s ease-in;
}

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

.option-btn {
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 15px;
    border: 2px solid var(--primary-color) !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white !important;
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.option-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    border-color: var(--primary-dark) !important;
}

.option-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Progress bar */
.progress {
    background-color: #e2e8f0;
    border-radius: 10px;
    height: 8px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transition: width 0.4s ease;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

/* Phone number styling */
.phone-number {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.phone-number:hover {
    transform: scale(1.08);
    filter: brightness(1.2);
}

/* Result containers */
.result-container {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-container h2 {
    font-weight: 700;
}

.call-to-action {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border-radius: 16px !important;
    border: 2px solid #0891b2;
    box-shadow: 0 8px 24px rgba(8, 145, 178, 0.15);
}

.text-success {
    color: var(--success-color) !important;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-img {
        max-width: 90px;
    }

    .logo-container {
        padding: 1px 0;
    }

    .hero-images {
        max-width: 100%;
        margin-bottom: 0.75rem !important;
    }

    .hero-section {
        padding-top: 10px;
        padding-bottom: 8px;
        margin-bottom: 0.75rem !important;
    }

    .hero-section h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem !important;
    }

    .hero-section .lead {
        font-size: 0.9rem;
        margin-bottom: 0.75rem !important;
    }

    .hero-section .text-muted.small {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.3;
    }

    .cta-subtext {
        padding: 8px 12px;
        margin-bottom: 0.5rem !important;
    }

    .cta-subtext p {
        font-size: 0.85rem;
        margin-bottom: 0 !important;
    }

    .benefits-highlight .row {
        font-size: 0.9rem;
    }

    .benefit-item {
        padding: 6px;
    }

    .phone-number {
        font-size: 1.5rem;
    }

    /* Phone button responsive sizing */
    #phoneNumber .btn {
        font-size: 1.5rem !important;
    }

    .form-section {
        margin-bottom: 15px;
    }

    .form-section .card-body {
        padding: 1.25rem !important;
    }

    .question-container {
        min-height: 220px;
    }

    .progress {
        height: 6px !important;
    }

    #progressText {
        font-size: 0.8rem;
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 576px) {
    .logo-img {
        max-width: 70px;
    }

    .logo-container {
        padding: 1px 0;
    }

    .hero-section {
        padding-top: 8px;
        padding-bottom: 5px;
        margin-bottom: 0.5rem !important;
    }

    .hero-section h1 {
        font-size: 1.3rem;
        margin-bottom: 0.4rem !important;
        line-height: 1.15;
    }

    .hero-section .lead {
        font-size: 0.85rem;
        margin-bottom: 0.5rem !important;
    }

    .hero-images {
        max-width: 100%;
        margin-bottom: 0.5rem !important;
    }

    .hero-img {
        border-width: 2px;
    }

    .hero-section .text-muted.small {
        font-size: 0.75rem !important;
        margin-bottom: 0.4rem !important;
        line-height: 1.25;
    }

    .cta-subtext {
        padding: 6px 10px;
        margin-bottom: 0.4rem !important;
    }

    .cta-subtext p {
        font-size: 0.8rem;
    }

    .option-btn {
        padding: 11px;
        font-size: 0.95rem;
    }

    .form-section {
        margin-bottom: 10px;
    }

    .form-section .card-body {
        padding: 1rem !important;
    }

    .question-container {
        min-height: 200px;
    }

    .question-container h2 {
        font-size: 1.1rem;
        margin-bottom: 1rem !important;
    }

    .progress {
        height: 5px !important;
        margin-bottom: 0.35rem !important;
    }

    #progressText {
        font-size: 0.75rem;
        margin-bottom: 0.75rem !important;
    }

    .benefit-item strong {
        font-size: 0.85rem;
    }

    .benefit-item .small {
        font-size: 0.75rem;
    }

    /* Phone button responsive sizing for small screens */
    #phoneNumber .btn {
        font-size: 1.3rem !important;
    }
}

/* Extra small devices - hide images to fit on screen */
@media (max-width: 400px) {
    .hero-images {
        display: none !important;
    }

    .hero-section {
        margin-bottom: 0.4rem !important;
    }

    .hero-section h1 {
        font-size: 1.25rem;
    }

    .hero-section .lead {
        margin-bottom: 0.4rem !important;
    }

    /* Phone button responsive sizing for extra small screens */
    #phoneNumber .btn {
        font-size: 1.1rem !important;
    }
}

/* Ensure single screen fit on desktop */
@media (min-width: 992px) {
    .main-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: calc(100vh - 200px);
    }

    .hero-section {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .hero-section h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem !important;
    }

    .hero-section .hero-images {
        margin-bottom: 10px !important;
    }

    .benefits-highlight {
        padding: 12px 10px;
        margin-bottom: 10px !important;
    }
}
