/* Shared INSPIRE DRIVE support surfaces. */

.drive-support-faq {
    --drive-support-ink: #14233f;
    --drive-support-blue: #173f91;
    --drive-support-purple: #8b5cf6;
    --drive-support-cyan: #25aeea;
    --drive-support-border: rgba(20, 35, 63, 0.12);
    width: min(100% - 2rem, 76rem);
    margin: clamp(1.5rem, 4vw, 3rem) auto;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    color: var(--drive-support-ink);
    background:
        radial-gradient(circle at 100% 0, rgba(37, 174, 234, 0.1), transparent 30%),
        #fff;
    border: 1px solid var(--drive-support-border);
    border-radius: 1.5rem;
    box-shadow: 0 1.25rem 3rem rgba(18, 32, 58, 0.08);
}

.drive-support-faq--compact {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.drive-support-faq__intro {
    max-width: 42rem;
    margin-bottom: 1.5rem;
}

.drive-support__eyebrow {
    margin: 0 0 0.45rem;
    color: var(--drive-support-purple);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
}

.drive-support-faq__intro h2 {
    margin: 0;
    color: var(--drive-support-ink);
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1.05;
}

.drive-support-faq__intro p:last-child {
    margin: 0.75rem 0 0;
    color: #5c6b86;
    font-size: 1rem;
    line-height: 1.6;
}

.drive-support-faq__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.drive-support-faq__item {
    align-self: start;
    overflow: hidden;
    border: 1px solid var(--drive-support-border);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.88);
}

.drive-support-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.35rem;
    padding: 0.8rem 1rem;
    color: var(--drive-support-ink);
    cursor: pointer;
    font-size: 0.94rem;
    font-weight: 750;
    list-style: none;
}

.drive-support-faq__item summary::-webkit-details-marker {
    display: none;
}

.drive-support-faq__item summary:focus-visible,
.drive-support__button:focus-visible,
.drive-support__shortcut:focus-visible {
    outline: 3px solid rgba(37, 174, 234, 0.45);
    outline-offset: 3px;
}

.drive-support-faq__plus {
    position: relative;
    flex: 0 0 1.35rem;
    width: 1.35rem;
    height: 1.35rem;
    border: 1px solid rgba(23, 63, 145, 0.2);
    border-radius: 50%;
}

.drive-support-faq__plus::before,
.drive-support-faq__plus::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.55rem;
    height: 2px;
    border-radius: 99px;
    background: var(--drive-support-blue);
    content: "";
    transform: translate(-50%, -50%);
}

.drive-support-faq__plus::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.2s ease;
}

.drive-support-faq__item[open] .drive-support-faq__plus::after {
    transform: translate(-50%, -50%) rotate(0);
}

.drive-support-faq__answer {
    padding: 0 1rem 1rem;
    color: #52617c;
    font-size: 0.92rem;
    line-height: 1.6;
}

.drive-support-faq__answer p {
    margin: 0;
}

.drive-support__shortcut {
    display: inline-flex;
    margin-top: 0.7rem;
    color: var(--drive-support-blue);
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.drive-support-faq__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.35rem;
}

.drive-support__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.7rem 1.05rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.drive-support__button:hover {
    transform: translateY(-2px);
}

.drive-support__button--primary {
    color: #fff !important;
    background: var(--drive-support-blue);
    box-shadow: 0 0.55rem 1.3rem rgba(23, 63, 145, 0.18);
}

.drive-support__button--whatsapp {
    color: #075e54 !important;
    background: #d9fdd3;
    border-color: rgba(7, 94, 84, 0.16);
}

.drive-support__whatsapp-mark {
    display: inline-grid;
    place-items: center;
    width: 1.3rem;
    height: 1.3rem;
    margin-right: 0.4rem;
    border-radius: 50%;
    color: #fff;
    background: #25d366;
}

.drive-support__whatsapp-mark svg {
    width: 0.82rem;
    height: 0.82rem;
}

.drive-help-page {
    min-height: 70vh;
    padding: clamp(2rem, 5vw, 4.5rem) 0;
    background:
        radial-gradient(circle at 10% 0, rgba(139, 92, 246, 0.12), transparent 28rem),
        #e8ecf4;
}

.drive-help-page__hero {
    width: min(100% - 2rem, 76rem);
    margin: 0 auto;
    color: var(--drive-support-ink);
}

.drive-help-page__hero h1 {
    max-width: 15ch;
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.drive-help-page__hero p:not(.drive-support__eyebrow) {
    max-width: 44rem;
    margin: 1rem 0 0;
    color: #52617c;
    font-size: 1.05rem;
    line-height: 1.65;
}

.drive-help-page__quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.3rem;
}

.drive-help-page__quick-links a {
    color: var(--drive-support-blue);
    font-size: 0.9rem;
    font-weight: 750;
}

.drive-onboarding-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    color: #14233f;
    background:
        linear-gradient(125deg, rgba(139, 92, 246, 0.13), rgba(37, 174, 234, 0.12)),
        #fff;
}

.drive-onboarding-link h2 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.drive-onboarding-link p:last-child {
    max-width: 44rem;
    margin: 0.45rem 0 0;
    color: #52617c;
    line-height: 1.5;
}

.drive-onboarding {
    position: fixed;
    z-index: 300;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    overflow-y: auto;
    background: rgba(8, 12, 24, 0.68);
}

.drive-onboarding__backdrop {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.drive-onboarding__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 48rem);
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 1.35rem;
    color: #14233f;
    background: #fff;
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.25);
}

.drive-onboarding__close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    display: inline-grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid #d7deea;
    border-radius: 50%;
    color: #52617c;
    background: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.drive-onboarding__copy {
    padding-right: 2rem;
}

.drive-onboarding__copy h2 {
    margin: 0;
    font-size: clamp(1.55rem, 4vw, 2.35rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.drive-onboarding__copy p:last-child {
    margin: 0.6rem 0 0;
    color: #52617c;
    line-height: 1.55;
}

.drive-onboarding__video {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-top: 1.15rem;
    border-radius: 0.9rem;
    background: #0d1830;
}

.drive-onboarding__video iframe,
.drive-onboarding__video video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.drive-onboarding__error {
    margin: 0.65rem 0 0;
    color: #b91c1c;
    font-size: 0.8rem;
    font-weight: 700;
}

.drive-onboarding__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 1rem;
}

.drive-onboarding__actions > a {
    color: #173f91;
    font-size: 0.82rem;
    font-weight: 750;
}

.drive-onboarding__actions .drive-support__button {
    width: auto;
}

.lms-drive-whatsapp {
    position: relative;
    color: #075e54 !important;
    background: linear-gradient(145deg, #e4ffdf, #c9f7c3) !important;
    border-color: rgba(37, 211, 102, 0.4) !important;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    animation: lms-drive-whatsapp-pulse 2.4s ease-in-out infinite;
}

.lms-drive-whatsapp::before {
    position: absolute;
    inset: 0.2rem;
    border: 1px solid rgba(37, 211, 102, 0.32);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.lms-drive-whatsapp__icon {
    display: inline-grid;
    place-items: center;
    width: 1.65rem;
    height: 1.65rem;
    margin-bottom: 0.2rem;
    border-radius: 50%;
    color: #fff;
    background: #25d366;
    font-size: 1rem;
    font-weight: 900;
}

@keyframes lms-drive-whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.35);
    }
    50% {
        box-shadow: 0 0 0 0.42rem rgba(37, 211, 102, 0);
    }
}

@media (max-width: 700px) {
    .drive-support-faq {
        width: min(100% - 1rem, 76rem);
        border-radius: 1.1rem;
    }

    .drive-support-faq__list {
        grid-template-columns: 1fr;
    }

    .drive-support-faq__actions {
        display: grid;
    }

    .drive-support__button {
        width: 100%;
    }

    .drive-onboarding-link,
    .drive-onboarding__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .drive-onboarding__actions .drive-support__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .drive-support__button,
    .lms-drive-whatsapp {
        animation: none;
        transition: none;
    }
}

/* Help page: a focused, image-free support experience. */
.drive-help-page {
    --help-ink: #14233f;
    --help-muted: #5c6b86;
    --help-blue: #173f91;
    --help-purple: #8b5cf6;
    min-height: 70vh;
    padding: clamp(1.2rem, 4vw, 3.5rem) 0 clamp(3rem, 7vw, 5.5rem);
    background:
        radial-gradient(circle at 88% 0, rgba(139, 92, 246, 0.16), transparent 24rem),
        linear-gradient(180deg, #f7f9fd 0%, #edf2f8 100%);
}

.drive-help-page__hero,
.drive-help-page__faq,
.drive-help-page__access {
    width: min(100% - 2rem, 76rem);
    margin-inline: auto;
}

.drive-help-page__hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(15rem, 0.65fr);
    align-items: stretch;
    gap: clamp(1.5rem, 5vw, 4rem);
    overflow: hidden;
    padding: clamp(1.5rem, 5vw, 4rem);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: clamp(1.35rem, 3vw, 2rem);
    color: #fff;
    background:
        radial-gradient(circle at 92% 18%, rgba(37, 174, 234, 0.35), transparent 18rem),
        linear-gradient(130deg, #0c1e4a 0%, #173f91 58%, #362276 100%);
    box-shadow: 0 1.5rem 3.5rem rgba(20, 35, 63, 0.2);
}

.drive-help-page__hero::after {
    position: absolute;
    z-index: -1;
    right: -8rem;
    bottom: -10rem;
    width: 24rem;
    height: 24rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 2rem rgba(255, 255, 255, 0.03), 0 0 0 5rem rgba(255, 255, 255, 0.025);
}

.drive-help-page__hero-copy,
.drive-help-page__signal {
    position: relative;
    z-index: 1;
}

.drive-help-page__hero .drive-support__eyebrow {
    color: #b9eaff;
}

.drive-help-page__hero h1 {
    max-width: 11ch;
    margin: 0;
    color: #fff;
    font-size: clamp(2.4rem, 7vw, 5.4rem);
    letter-spacing: -0.055em;
    line-height: 0.94;
}

.drive-help-page__hero-copy > p:not(.drive-support__eyebrow) {
    max-width: 42rem;
    margin: 1.25rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.65;
}

.drive-help-page__hero-copy > p strong {
    color: #fff;
}

.drive-help-page__quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.7rem;
}

.drive-help-page__hero .drive-support__button--primary {
    color: #fff !important;
    background: var(--help-purple);
}

.drive-support__button--light {
    color: var(--help-ink) !important;
    background: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.drive-help-page__signal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 13rem;
    padding: clamp(1.15rem, 3vw, 1.7rem);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: inherit;
}

a.drive-help-page__signal:hover,
a.drive-help-page__signal:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 1rem 2rem rgba(7, 94, 84, 0.28);
}

.drive-help-page__signal--whatsapp {
    background: linear-gradient(160deg, #25d366 0%, #128c7e 52%, #075e54 100%);
    border-color: rgba(255, 255, 255, 0.22);
}

.drive-help-page__signal--whatsapp .drive-help-page__signal-icon {
    color: #075e54;
    background: #fff;
}

.drive-help-page__signal--whatsapp .drive-help-page__signal-icon svg {
    width: 1.45rem;
    height: 1.45rem;
}

.drive-support-faq__answer .drive-support__button {
    margin-top: 0.85rem;
}

.drive-help-page__signal-icon {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    margin-bottom: 1.5rem;
    border-radius: 0.85rem;
    color: #0c1e4a;
    background: #b9eaff;
    font-size: 1.35rem;
    font-weight: 900;
}

.drive-help-page__signal .drive-support__eyebrow {
    margin-bottom: 0.35rem;
}

.drive-help-page__signal strong {
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    line-height: 1.1;
}

.drive-help-page__signal > span:last-child {
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

.drive-help-page__faq {
    margin-top: clamp(1rem, 3vw, 1.5rem);
}

.drive-help-page__faq .drive-support-faq {
    width: 100%;
    margin: 0;
    background: rgba(255, 255, 255, 0.9);
}

.drive-help-page__access {
    margin-top: clamp(1rem, 3vw, 1.5rem);
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(20, 35, 63, 0.1);
    border-radius: 1.35rem;
    background: #fff;
    box-shadow: 0 1rem 2.5rem rgba(20, 35, 63, 0.08);
}

.drive-help-page__access-copy {
    max-width: 52rem;
}

.drive-help-page__access-copy h2 {
    margin: 0;
    color: var(--help-ink);
    font-size: clamp(1.4rem, 3vw, 2.15rem);
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.drive-help-page__access-copy p:last-child {
    margin: 0.65rem 0 0;
    color: var(--help-muted);
    line-height: 1.6;
}

@media (max-width: 760px) {
    .drive-help-page {
        padding-top: 0.75rem;
    }

    .drive-help-page__hero {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.35rem;
        border-radius: 1.25rem;
    }

    .drive-help-page__hero h1 {
        max-width: 12ch;
    }

    .drive-help-page__signal {
        min-height: auto;
    }

    .drive-help-page__signal-icon {
        margin-bottom: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .drive-help-page .drive-support__button,
    .drive-help-page::before,
    .drive-help-page::after {
        transition: none;
        animation: none;
    }
}
