/* Home page "Now Book Bus Tickets on WhatsApp" card (Views/Shared/_WhatsAppBookingSection.cshtml).
   Every rule is scoped to .wab-* so nothing else on the page is touched. */

.wab-card {
    --wab-green: #25D366;
    --wab-teal: #128C7E;
    --wab-deep: #075E54;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px 28px;
    margin-top: 12px;
    padding: 20px 24px;
    overflow: hidden;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(37, 211, 102, .16) 0%, rgba(37, 211, 102, 0) 55%),
        linear-gradient(135deg, #FFFFFF 0%, #F0FDF5 100%);
    border: 1px solid #BBF7D0;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
    font-family: var(--atr-font-sans, 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    text-align: left;
    transition: box-shadow .25s ease, border-color .25s ease;
    animation: wab-rise .55s cubic-bezier(.22, 1, .36, 1) both;
}

    .wab-card::before { /* brand accent bar */
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 5px;
        background: linear-gradient(180deg, var(--wab-green), var(--wab-deep));
    }

    .wab-card:hover {
        border-color: #86EFAC;
        box-shadow: 0 14px 34px -14px rgba(7, 94, 84, .28);
    }

.wab-main { min-width: 0; }

.wab-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wab-logo {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--wab-green), var(--wab-teal));
    color: #fff;
    font-size: 26px;
}

    .wab-logo::after { /* soft pulse ring */
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        border: 2px solid var(--wab-green);
        animation: wab-pulse 2.4s ease-out infinite;
        pointer-events: none;
    }

.wab-head-copy { min-width: 0; }

.wab-badge {
    display: inline-block;
    margin-bottom: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    background: #DCFCE7;
    color: #065F46;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.wab-card .wab-title {
    margin: 0;
    color: var(--wab-deep);
    font-family: 'Plus Jakarta Sans', var(--atr-font-sans, 'Inter'), sans-serif;
    font-size: clamp(1.1rem, 1.05rem + .55vw, 1.45rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.01em;
}

/* "Send Hi ..." line with a small chat bubble that looks like a sent WhatsApp message */
.wab-card .wab-hi {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 14px 0 0;
    color: #0F172A;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

    .wab-hi strong {
        color: var(--wab-deep);
        font-weight: 800;
    }

.wab-hi-bubble {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: flex-end;
    gap: 8px;
    padding: 6px 10px 6px 14px;
    border-radius: 12px 2px 12px 12px;
    background: #D9FDD3;
    box-shadow: 0 1px 2px rgba(11, 20, 26, .16);
    color: #111B21;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    animation: wab-bubble .5s cubic-bezier(.34, 1.56, .64, 1) .5s both;
}

    .wab-hi-bubble::after { /* bubble tail */
        content: "";
        position: absolute;
        top: 0;
        right: -6px;
        border-top: 8px solid #D9FDD3;
        border-right: 8px solid transparent;
    }

    .wab-hi-bubble i {
        color: #53BDEB; /* read ticks */
        font-size: 14px;
        line-height: 1;
    }

/* the 4-step booking flow: a row with arrows on desktop, 2 x 2 on tablets, a vertical timeline on phones */
.wab-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

    .wab-steps li {
        position: relative;
        display: flex;
        align-items: flex-start;
        gap: 9px;
        min-width: 0;
        padding: 10px;
        border: 1px solid #D1FAE5;
        border-radius: 12px;
        background: rgba(255, 255, 255, .88);
        transition: transform .2s ease, border-color .2s ease;
    }

        .wab-steps li:hover {
            transform: translateY(-2px);
            border-color: #6EE7B7;
        }

        .wab-steps li:not(:last-child)::after { /* arrow to the next step */
            content: "";
            position: absolute;
            top: 50%;
            right: -13px;
            width: 7px;
            height: 7px;
            border-top: 2px solid var(--wab-teal);
            border-right: 2px solid var(--wab-teal);
            transform: translateY(-50%) rotate(45deg);
        }

.wab-step-num {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(140deg, #0F7F5F, #075E54);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.wab-step-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

    .wab-step-copy strong {
        color: #0F172A;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.3;
    }

    .wab-step-copy small {
        color: #475569;
        font-size: 11.5px;
        line-height: 1.35;
    }

.wab-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 16px;
}

/* #075E54-based green: white text stays readable (the bright WhatsApp green is too light behind white text) */
a.wab-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 11px 24px;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(135deg, #0F7F5F 0%, #075E54 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 18px -8px rgba(7, 94, 84, .65);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

    a.wab-btn i:first-child { font-size: 19px; }

    a.wab-btn::after { /* light sweep on hover */
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: -60%;
        width: 40%;
        background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
        transform: skewX(-20deg);
        transition: left .55s ease;
        pointer-events: none;
    }

    a.wab-btn:hover {
        color: #fff;
        filter: brightness(1.08);
        transform: translateY(-2px);
        box-shadow: 0 14px 24px -10px rgba(7, 94, 84, .75);
    }

        a.wab-btn:hover::after { left: 120%; }

        a.wab-btn:hover .wab-btn-arrow { transform: translateX(4px); }

    a.wab-btn:focus-visible,
    a.wab-qr:focus-visible {
        outline: 3px solid var(--wab-green);
        outline-offset: 3px;
    }

.wab-btn-arrow { transition: transform .2s ease; }

.wab-number {
    color: #475569;
    font-size: 13px;
}

    .wab-number strong {
        color: #0F172A;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

a.wab-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-radius: 16px;
    text-decoration: none;
}

.wab-qr-frame {
    display: block;
    padding: 8px;
    border: 2px solid var(--wab-green);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px -12px rgba(7, 94, 84, .45);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .wab-qr-frame img {
        display: block;
        width: 148px;
        height: 148px;
    }

a.wab-qr:hover .wab-qr-frame {
    transform: scale(1.04);
    box-shadow: 0 16px 28px -14px rgba(7, 94, 84, .55);
}

.wab-qr-cap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--wab-deep);
    font-size: 12px;
    font-weight: 700;
}

/* tablet and small desktop: two steps per row (the numbers carry the order, so the arrows are dropped) */
@media (max-width: 1199.98px) {
    .wab-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

        .wab-steps li:not(:last-child)::after { display: none; }
}

/* mobile: everything in one column, QR centred below */
@media (max-width: 767.98px) {
    .wab-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        padding: 18px 16px 18px 18px;
    }

    .wab-head { align-items: flex-start; gap: 12px; }

    .wab-logo { width: 44px; height: 44px; font-size: 23px; }

    .wab-actions { flex-direction: column; align-items: stretch; text-align: center; }

    a.wab-btn { width: 100%; }

    a.wab-qr {
        justify-self: center;
        padding-top: 16px;
        border-top: 1px dashed #A7F3D0;
        border-radius: 0;
        width: 100%;
    }

    .wab-qr-frame img { width: 164px; height: 164px; }

    /* phones: one step under the other, joined by a line */
    .wab-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }

        .wab-steps li { align-items: center; padding: 9px 10px; }

            .wab-steps li:not(:last-child)::after {
                display: block;
                top: 100%;
                right: auto;
                left: 23px; /* centre of the number circle: 10px padding + 14px, minus half the line */
                width: 2px;
                height: 11px;
                border: 0;
                background: var(--wab-teal);
                transform: none;
            }
}

@keyframes wab-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@keyframes wab-bubble {
    from { opacity: 0; transform: scale(.6); }
    to { opacity: 1; transform: none; }
}

@keyframes wab-pulse {
    0% { opacity: .65; transform: scale(1); }
    70%, 100% { opacity: 0; transform: scale(1.45); }
}

@media (prefers-reduced-motion: reduce) {
    .wab-card, .wab-logo::after, .wab-hi-bubble { animation: none; }
    .wab-logo::after { opacity: 0; }
    .wab-card, .wab-card *, .wab-card *::after { transition: none !important; }
}
