/**
 * FAQ page – Skydive Sunrise
 * @package Blocksy Child
 */

.sds-faq-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-inline: 0;
    padding-bottom: clamp(48px, 6vw, 80px);
    box-sizing: border-box;
}

.sds-faq-hero {
    width: 100%;
    max-width: none;
    background: linear-gradient(132deg, #0a3042 0%, #0877a3 72%, #0b91ba 100%);
    border-radius: 0;
    padding: clamp(64px, 9vw, 112px) 0;
    color: #fff;
    box-shadow: none;
    text-align: left;
    margin-bottom: clamp(24px, 3vw, 36px);
}

.sds-faq-hero-inner,
.sds-faq-page > :not(.sds-faq-hero) {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
    box-sizing: border-box;
}

.sds-faq-kicker {
    margin: 0 0 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.sds-faq-hero h1 {
    margin: 0 0 14px;
    max-width: 960px;
    font-size: clamp(2.2rem, 5.3vw, 4.15rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 800;
    color: #fff;
}

.sds-faq-lead {
    margin: 0 0 24px;
    max-width: 780px;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.58;
    color: rgba(255, 255, 255, 0.92);
}

.sds-faq-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.sds-faq-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
}

.sds-faq-toolbar {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
}

.sds-faq-search-wrap {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 36px;
    align-items: center;
    column-gap: 10px;
    padding: 0 8px 0 14px;
    border: 1.5px solid #dbe8ff;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 90, 226, 0.08);
    box-sizing: border-box;
}

.sds-faq-search-wrap:focus-within {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
    border-color: #0073aa;
}

.sds-faq-page .sds-faq-search-wrap .sds-faq-search {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 14px 0;
    border: 0;
    border-radius: 0;
    font-size: 1rem;
    line-height: 1.4;
    color: #1a2b3c;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    grid-column: 2;
    grid-row: 1;
}

.sds-faq-page .sds-faq-search-wrap .sds-faq-search::-webkit-search-decoration,
.sds-faq-page .sds-faq-search-wrap .sds-faq-search::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.sds-faq-page .sds-faq-search-wrap .sds-faq-search:focus {
    outline: none;
}

.sds-faq-search-icon {
    position: static;
    width: 18px;
    height: 18px;
    color: #6b7c8a;
    pointer-events: none;
    flex-shrink: 0;
    grid-column: 1;
    grid-row: 1;
}

.sds-faq-search-clear {
    grid-column: 3;
    grid-row: 1;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #264d87;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.sds-faq-search-clear:hover {
    background: #edf5ff;
}

.sds-faq-search-clear:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 1px;
}

.sds-faq-search-clear[hidden] {
    display: none;
}

.sds-faq-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sds-faq-cat {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #dbe8ff;
    background: #f8fbfe;
    color: #264d87;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sds-faq-cat:hover,
.sds-faq-cat.is-active {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.sds-faq-cat:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.sds-faq-section {
    margin-bottom: 28px;
}

.sds-faq-section-title {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0073aa;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sds-faq-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sds-faq-item {
    background: #fff;
    border: 1px solid #e8eef3;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.sds-faq-item:hover {
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.08);
}

.sds-faq-item[hidden] {
    display: none !important;
}

.sds-faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 18px;
    font-size: 0.98rem;
    font-weight: 700;
    color: #1a2b3c;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sds-faq-item summary::-webkit-details-marker {
    display: none;
}

.sds-faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    font-size: 1.2rem;
    color: #0073aa;
    font-weight: 700;
}

.sds-faq-item[open] summary::after {
    content: "−";
}

.sds-faq-item summary:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: -2px;
}

.sds-faq-body {
    padding: 0 18px 16px;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #3d4f5f;
}

.sds-faq-body p {
    margin: 0 0 10px;
}

.sds-faq-body p:last-child {
    margin-bottom: 0;
}

.sds-faq-body ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.sds-faq-body li {
    margin-bottom: 6px;
}

.sds-faq-body a {
    color: #0073aa;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.std-enac-note {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    vertical-align: baseline;
}

.std-enac-note__trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border: 1px solid #b9cbd3;
    border-radius: 999px;
    color: #315766;
    background: #f2f8fa;
    font: 600 .78em/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
    cursor: help;
    white-space: nowrap;
}

.std-enac-note__trigger:hover {
    border-color: #6f9aaa;
    background: #e8f4f7;
}

.std-enac-note__trigger:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 3px;
}

.std-enac-note__text {
    position: absolute;
    z-index: 2147483000;
    top: calc(100% + 8px);
    left: 0;
    display: none;
    width: min(410px, calc(100vw - 48px));
    padding: 14px 42px 14px 16px;
    border: 1px solid #d5e2e7;
    border-left: 4px solid #f47b20;
    border-radius: 12px;
    color: #40545d;
    background: #fff;
    box-shadow: 0 14px 34px rgba(17, 55, 70, .18);
    font: 400 13.5px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
    text-align: left;
}

.std-enac-note__title {
    display: block;
    margin-bottom: 4px;
    color: #173f50;
    font-size: 14px;
}

.std-enac-note__close {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #536b75;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.std-enac-note__close:hover {
    background: #eef4f6;
}

.std-enac-note:hover .std-enac-note__text,
.std-enac-note:focus-within .std-enac-note__text,
.std-enac-note--open .std-enac-note__text {
    display: block;
}

.std-enac-note--dismissed .std-enac-note__text {
    display: none !important;
}

@media (max-width: 600px) {
    .std-enac-note__text {
        position: fixed;
        top: auto;
        right: 16px;
        bottom: max(96px, calc(80px + env(safe-area-inset-bottom)));
        left: 16px;
        width: auto;
        max-height: calc(100dvh - 128px);
        overflow: auto;
    }
}

.sds-faq-empty {
    display: none;
    text-align: center;
    padding: 28px 16px;
    border: 1.5px dashed #dbe8ff;
    border-radius: 12px;
    color: #5f6b7a;
    background: #f8fbfe;
}

.sds-faq-empty.is-visible {
    display: block;
}

.sds-faq-cta {
    margin-top: 32px;
    padding: clamp(22px, 3vw, 32px);
    border-radius: 16px;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
    border: 1px solid #dbe8ff;
    box-shadow: 0 14px 32px rgba(20, 90, 226, 0.12);
    text-align: center;
}

.sds-faq-cta h2 {
    margin: 0 0 10px;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    color: #145ae2;
}

.sds-faq-cta p {
    margin: 0 0 18px;
    color: #264d87;
    line-height: 1.6;
}

.sds-faq-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: stretch;
}

.sds-faq-btn {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sds-faq-btn--primary {
    background: #0073aa;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 115, 170, 0.35);
}

.sds-faq-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.45);
}

.sds-faq-btn--callback {
    background: #28a745;
    color: #fff !important;
}

.sds-faq-btn--callback:hover {
    background: #218838 !important;
}

.sds-faq-actions .sds-faq-btn--tertiary {
    background: transparent;
    color: #145ae2 !important;
    border: 1px solid #a9c8f5 !important;
}

.sds-faq-actions .sds-faq-btn--tertiary:hover,
.sds-faq-actions .sds-faq-btn--tertiary:focus {
    background: #edf5ff;
    color: #0c49ae !important;
}

body.skydive-faq-page .entry-header .page-title,
body.skydive-faq-page .entry-header .entry-title,
body.skydive-faq-page .hero-section .page-title,
body.skydive-faq-page .ct-page-title,
body.skydive-faq-page [data-prefix="single_page"] .entry-header {
    display: none !important;
}

body.skydive-faq-page .ct-container-full,
body.skydive-faq-page article.page,
body.skydive-faq-page article.page > .entry-content {
    width: 100% !important;
    max-width: none !important;
    padding-top: 0 !important;
}

body.skydive-faq-page .ct-container-full,
body.skydive-faq-page article.page > .entry-content {
    padding-inline: 0 !important;
}

body.skydive-faq-page article.page > .entry-content {
    overflow-x: clip;
}

body.skydive-faq-page article.page > .entry-content > .sds-faq-page {
    width: 100vw !important;
    max-width: none !important;
    margin-right: calc(50% - 50vw) !important;
    margin-left: calc(50% - 50vw) !important;
}

@media (max-width: 768px) {
    .sds-faq-page {
        padding-inline: 0;
    }

    .sds-faq-hero {
        padding: 52px 0;
        border-radius: 0;
    }

    .sds-faq-hero-inner,
    .sds-faq-page > :not(.sds-faq-hero) {
        width: calc(100% - 36px);
    }

    .sds-faq-cats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        width: 100%;
        overflow: visible;
        margin: 0;
        padding: 0;
    }

    .sds-faq-cat {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 10px 12px;
        font-size: 0.86rem;
        line-height: 1.25;
        white-space: normal;
    }

    .sds-faq-cat:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .sds-faq-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .sds-faq-btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        padding: 14px 22px;
    }
}

@media (max-width: 600px) {
    .sds-faq-item summary {
        font-size: 0.92rem;
        padding: 14px;
        min-height: 44px;
    }

    .sds-faq-body {
        padding: 0 14px 14px;
        font-size: 0.9rem;
    }

    .sds-faq-page .sds-faq-search-wrap .sds-faq-search {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sds-faq-item,
    .sds-faq-btn,
    .sds-faq-cat {
        transition: none;
    }
}
