html {
  font-size: 14px;
}

body {
    font-family: "Asap", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* iOS glass theme variables */
:root {
    --glass-bg: rgba(255, 255, 255, 0.16);
    --glass-bg-strong: rgba(255, 255, 255, 0.22);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-border-strong: rgba(255, 255, 255, 0.5);
    --glass-text: #f5f5f7;
    --glass-muted: rgba(255, 255, 255, 0.75);
    --glass-muted-2: rgba(255, 255, 255, 0.55);
    --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.28);
    --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.22);
    --apple-green: #34C759;
    --apple-green-dark: #2FAE4F;
    --warning: #FFD24A;
    --danger: #dc3545;
}

/* Base typography for this page */

/* Right-side quote panel styling - glassmorphism */
.quote-panel {
    position: absolute;
    right: 0px;
    top: -400px;
    width: 420px;
    background: #fff; /* White background */
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--shadow-strong), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    backdrop-filter: saturate(180%) blur(22px);
    z-index: 20;
    color: #111; /* Black foreground text */
}

    .quote-panel h3, .quote-panel p.lead, .quote-panel .alert, .quote-panel .form-label, .quote-panel .dot, .quote-panel .progress-labels, .quote-panel .btn, .quote-panel .btn-submit, .quote-panel .phone-cta, .quote-panel .disclaimer {
        color: #111 !important; /* Ensure all foreground text is black */
    }

    .quote-panel .alert {
        background: rgba(0,0,0,0.04); /* subtle gray for alert background */
        border: 1px solid var(--glass-border);
        color: #111;
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border-radius: 12px;
    }

    .quote-panel .alert-success {
        box-shadow: 0 6px 18px rgba(52,199,89,.12);
    }

    .quote-panel .alert-danger {
        box-shadow: 0 6px 18px rgba(255,0,0,.08);
    }

.progress-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
}

.dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 6px 18px rgba(0,0,0,0.18);
}

    .dot.active {
        background: linear-gradient(180deg, var(--apple-green), var(--apple-green-dark));
        border-color: var(--glass-border-strong);
        color: #fff;
        text-shadow: 0 1px 0 rgba(0,0,0,0.15);
        box-shadow: 0 8px 22px rgba(52,199,89,0.35), inset 0 1px 0 rgba(255,255,255,0.4);
    }

    .dot.pending {
        color: rgba(255,255,255,0.9);
    }

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--glass-muted);
    margin-bottom: 12px
}

/* Glass form controls */
.form-control.custom, .form-select.custom {
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    padding: 12px 14px;
    transition: border-color .15s, box-shadow .15s, background .15s;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
    color: darkgray;
}

    .form-control.custom:focus, .form-select.custom:focus {
        outline: none;
        box-shadow: 0 0 0 6px rgba(52,199,89,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
        border-color: var(--glass-border-strong);
        background: rgba(255,255,255,0.24);
    }

    .form-control.custom.valid, .form-select.custom.valid {
        border-color: var(--apple-green);
        background: rgba(52,199,89,0.12);
    }

    .form-control.custom::placeholder {
        color: #c0c0c0;
    }

    /* invalid state */
    .form-control.custom.is-invalid, .form-select.custom.is-invalid {
        border-color: var(--danger) !important;
        background: rgba(220,53,69,0.06);
        color: #111;
    }

.invalid-feedback {
    display: none;
    font-size: 0.9rem;
    color: var(--danger);
    margin-top: 6px;
}

.form-control.custom.is-invalid ~ .invalid-feedback,
.form-select.custom.is-invalid ~ .invalid-feedback {
    display: block;
}

.input-with-check {
    position: relative
}

    .input-with-check .check {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--apple-green);
        display: none
    }

    .input-with-check.valid .check {
        display: inline-block
    }

/* Buttons - iOS style */
.btn.btn-success, .btn-submit {
    background: linear-gradient(180deg, var(--apple-green), var(--apple-green-dark));
    color: #fff;
    border: 1px solid var(--glass-border);
    padding: 14px;
    border-radius: 14px;
    font-weight: 800;
    letter-spacing: .2px;
    text-transform: none;
    box-shadow: 0 12px 28px rgba(52,199,89,0.35), inset 0 1px 0 rgba(255,255,255,0.35);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

    .btn.btn-success:hover, .btn-submit:hover {
        transform: translateY(-1px);
        filter: brightness(1.02);
    }

    .btn.btn-success:active, .btn-submit:active {
        transform: translateY(0);
        box-shadow: 0 6px 16px rgba(52,199,89,0.3), inset 0 1px 0 rgba(255,255,255,0.25);
    }

    .btn-submit:disabled {
        opacity: .85
    }

.btn-outline-secondary {
    background: rgba(255,255,255,0.12);
    color: var(--glass-text);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-outline-white {
    background: #fff;
    color: #111;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
    font-weight: 600;
    transition: box-shadow .15s, border-color .15s;
}

    .btn-outline-white:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        border-color: var(--apple-green);
        color: var(--apple-green);
    }

.phone-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-top: 14px;
    color: var(--apple-green);
    font-weight: 800
}

.disclaimer {
    font-size: 11px;
    color: var(--glass-muted);
    margin-top: 8px;
    text-align: center
}

/* Left hero area - full-bleed background */
.hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    /* Lighten overlay to enhance glass contrast */
    background-image: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0)), url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 80px 120px 80px;
    color: #fff;
    min-height: 640px;
    position: relative;
    z-index: 5;
}

    /* constrain inner content to standard container width */
    .hero .container {
        max-width: 1140px;
        margin: 0 auto;
    }

    .hero .hero-inner {
        max-width: 620px;
    }

    .hero h1 {
        font-size: 56px;
        line-height: 1;
        margin: 0 0 18px;
        font-weight: 900;
        letter-spacing: -0.02em
    }

    .hero p.subtitle {
        font-size: 18px;
        color: rgba(255,255,255,0.92);
        margin-bottom: 18px
    }

.rating {
    color: var(--warning);
    font-weight: 800;
    margin-bottom: 22px;
    text-shadow: 0 1px 0 rgba(0,0,0,0.25)
}

.stats {
    display: flex;
    gap: 18px;
    margin-top: 30px
}

.stat {
    background: rgba(255,255,255,0.12);
    padding: 22px;
    border-radius: 16px;
    min-width: 180px;
    text-align: center;
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.25);
}

    .stat .num {
        font-size: 20px;
        font-weight: 900;
        color: #fff;
        letter-spacing: .2px
    }

    .stat .label {
        font-size: 13px;
        color: rgba(255,255,255,0.9);
        margin-top: 6px
    }

/* Features section below hero */
.features {
    padding: 60px 20px;
    background: linear-gradient(180deg, #f5f7fb, #ffffff);
}

    .features .container {
        max-width: 1140px;
        margin: 0 auto;
    }

    .features h2 {
        font-size: 34px;
        text-align: center;
        margin-bottom: 10px;
        color: #111;
        font-weight: 900;
        letter-spacing: -0.02em
    }

    .features p.lead {
        text-align: center;
        color: #5a5a5a;
        margin-bottom: 36px
    }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
}

.feature-card {
    background: rgba(255,255,255,0.5);
    text-align: center;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
}

    .feature-card .thumb {
        width: 100%;
        height: 170px;
        border-radius: 12px;
        background-size: cover;
        background-position: center;
        margin-bottom: 18px;
    }

    .feature-card h4 {
        margin: 0 0 8px;
        font-size: 18px;
        color: #111;
        font-weight: 800
    }

    .feature-card p {
        color: #555;
        font-size: 14px;
        line-height: 1.6
    }

.form-label {
    font-weight: bold;
}

/* CTA full-bleed section */
.cta-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    position: relative;
    padding: 80px 20px; /* vertical rhythm similar to hero */
}

#testimonials .card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}


/* Responsive adjustments */
@media (max-width: 1000px) {
    .feature-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .quote-panel {
        position: static;
        width: 100%;
        margin: 18px auto;
        box-shadow: var(--shadow-soft);
    }

    .hero {
        padding: 10px 10px 10px 10px;
    }
}

@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 32px
    }
}

@media (max-width: 1000px) {
    .quote-panel {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        margin-top: 20px;
        width: 100% !important;
        box-shadow: var(--shadow-soft);
    }

    .hero {
        /* Lighten overlay to enhance glass contrast */
        background-image: linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0)), url('/images/hero-bg-mobile.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        color: #fff;
        min-height: 640px;
        position: relative;
        z-index: 5;
    }
        /* Ensure the quote form appears right after stars */
        .hero .hero-inner {
            display: flex;
            flex-direction: column;
        }

        .hero .rating {
            margin-bottom: 0;
        }
        /* Move the quote form into flow right after rating */
        .hero .quote-panel {
            order: 3;
            margin-top: 16px;
        }

    .pagetitle {
        font-size: 32pt !important;
    }
}


