/**
 * eVisa information page (evisa-info.php)
 * Loaded after styles.css — uses site :root variables.
 */

/*
 * Scroll / touch — same class of fixes as hotels list:
 * Do not add overflow on html/body here (overflow-x:clip/hidden on those
 * elements stops the page from scrolling). Keep touch-action auto so iOS
 * momentum scroll is not treated as a nested pan surface.
 * scroll-behavior:auto overrides global smooth scroll (laggy on fast flicks).
 */
html:has(body.evisa-info-page),
body.evisa-info-page {
    touch-action: auto;
    scroll-behavior: auto;
}

body.evisa-info-page .evisa-info-content,
body.evisa-info-page .evisa-info-main,
body.evisa-info-page .evisa-info-sidebar,
body.evisa-info-page .evisa-banner-container,
body.evisa-info-page .evisa-banner-sidebar,
body.evisa-info-page .fees-section,
body.evisa-info-page .requirements-list,
body.evisa-info-page .requirement-item,
body.evisa-info-page .details-list,
body.evisa-info-page .detail-item {
    touch-action: auto;
    -webkit-tap-highlight-color: transparent;
}

/* Image loads must not become scroll anchors (prevents “jump back” while scrolling). */
body.evisa-info-page .evisa-banner-image,
body.evisa-info-page .evisa-banner__media {
    overflow-anchor: none;
}

/* eVisa Info Page Styles (aligned with app: primary bar + soft page background) */
.evisa-info-header {
    background-color: var(--primary-color);
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 255, 255, 0.18) 0%, transparent 55%);
    color: white;
    padding: 9rem 0 2.9rem;
    margin-top: 0;
    position: relative;
}

html[dir="rtl"] .evisa-info-header {
    padding: 7rem 0 2.9rem;
}

/* Back arrow: point toward the previous page edge in RTL */
html[dir="rtl"] .evisa-info-nav .back-button i,
html[dir="rtl"] .evisa-info-nav .back-button svg,
html[dir="rtl"] .evisa-info-header .back-button i,
html[dir="rtl"] .evisa-info-header .back-button svg {
    transform: scaleX(-1);
}

.evisa-info-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.evisa-info-nav h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    flex: 1;
    /* Sit beside the back control — left in LTR, right in RTL */
    text-align: start;
    margin: 0;
}

.share-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
}

.share-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.evisa-info-missing {
    padding: 4rem 1rem;
    display: none;
    min-height: 60vh;
    display: none;
    align-items: center;
    justify-content: center;
}

.evisa-info-missing.active {
    display: flex;
}

.evisa-info-missing .empty-state {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.evisa-info-missing .empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.evisa-info-missing h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.evisa-info-missing p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.evisa-info-missing .btn-primary {
    min-width: 200px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.evisa-unavailable-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.25rem;
}
.evisa-unavailable-actions .btn-primary {
    margin: 0;
}

.evisa-info-missing .btn-primary:hover {
    transform: translateY(-2px);
}

/* Top banner (mobile / tablet): frame defines crop; image fills frame */
.evisa-banner-container {
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
    padding: 0 max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left));
}

.evisa-banner-container .evisa-banner-image {
    position: relative;
    width: 100%;
    max-width: min(1200px, 100%);
    margin-inline: auto;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    background: #e5e7eb;
    height: clamp(168px, 34vw, 340px);
}

.evisa-banner-container .evisa-banner__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.evisa-banner-sidebar {
    display: none;
}

.help-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.help-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* eVisa info page — classic layout: top banner, then main | sidebar (image + fees) */
.evisa-info-main {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    display: contents;
}

.evisa-info-sidebar {
    display: contents;
}

.evisa-info-content {
    background: #f5f5f5;
    /* Vertical only — horizontal gutters come from .container (same as navbar/header) */
    padding: 0 0 3rem;
    margin-top: -1.5rem;
    position: relative;
    z-index: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.evisa-info-content .container {
    background: white;
    border-radius: 0 0 20px 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 0;
    display: flex;
    flex-direction: column;
    /* Match navbar / .evisa-info-header .container */
    width: 100%;
    max-width: 1200px;
    min-width: 0;
    box-sizing: border-box;
}

/* Mobile Ordering */
.evisa-details-section { order: 1; }
.evisa-requirements-section { order: 2; }
.evisa-banner-sidebar { order: 3; }
.fees-section { order: 4; }
.apply-button-container { order: 5; margin-bottom: 20px; }
.evisa-faq-section { order: 6; }
.important-notes-section { order: 7; }

@media (min-width: 1024px) {
    .evisa-info-content {
        padding: 2rem 0 3rem;
        margin-top: 0;
    }

    .evisa-info-content .container {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 2.5rem;
        border-radius: 20px;
        /* Keep 20px side gutters like navbar .container */
        padding: 0 20px;
        background: transparent;
        box-shadow: none;
        align-items: start;
        max-width: 1200px;
    }

    .evisa-info-main {
        background: white;
        border-radius: 20px;
        padding: 2.5rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        display: block;
    }

    /* Sticky without a nested scrollport — overflow-y:auto here stole wheel/touch
       from the page (same class of scroll trap as hotels list cards). */
    .evisa-info-sidebar {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: sticky;
        top: 100px;
        align-self: start;
        max-height: none;
        overflow: visible;
    }

    .evisa-info-sidebar .fees-section {
        padding: 0;
    }

    .evisa-banner-container {
        display: none;
    }

    .evisa-banner-sidebar {
        display: block;
    }

    .evisa-banner-sidebar .evisa-banner-image {
        position: relative;
        width: 100%;
        height: 355px;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
        background: #e5e7eb;
    }

    .evisa-banner-sidebar .evisa-banner__media {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .evisa-details-section,
    .evisa-requirements-section,
    .important-notes-section {
        margin-bottom: 2.5rem;
    }

    .fees-section {
        background: transparent;
        border-radius: 20px;
        padding: 0;
        box-shadow: none;
        margin-bottom: 0;
    }

    .apply-button-container {
        margin-top: 0;
    }

    .btn-apply-now {
        max-width: 100%;
        width: 100%;
    }

    .details-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .requirements-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .notes-list {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
}

/* Sidebar fees card — total-first pricing */
.evisa-info-sidebar .fees-card-modern {
    padding: 1.15rem 1.15rem 1.05rem;
    box-sizing: border-box;
    border-radius: 16px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    overflow: visible;
}

/* Keep fee label + info icon on one line (global .fee-info uses column) */
.evisa-info-sidebar .fees-section .fee-info,
.fees-section .fee-info {
    flex-direction: row;
    align-items: center;
}

/* Travel-agent discount banner — hidden on eVisa info (pricing still applies). */
body.evisa-info-page .agency-processing-note,
.agency-processing-note[hidden] {
    display: none !important;
}

.agency-processing-note {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0.85rem 0 0;
    padding: 0.85rem 1.05rem;
    min-height: 3.25rem;
    border-radius: 14px;
    border: 1px solid #bbf7d0;
    background: #ecfdf5;
    color: #166534;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    box-shadow: none;
}

.agency-processing-note__lead {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.agency-processing-note i {
    font-size: 0.95rem;
    color: #16a34a;
    flex-shrink: 0;
}

.agency-processing-note__text {
    white-space: nowrap;
}

.agency-processing-note__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.22em;
    flex-shrink: 0;
    margin-inline-start: auto;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: #15803d;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.agency-processing-note__chip-word,
.agency-processing-note__chip-pct {
    display: inline-block;
    line-height: 1;
}

.agency-processing-note__chip-pct {
    font-variant-numeric: tabular-nums;
    transform: translateY(-0.04em);
}

[dir="rtl"] .agency-processing-note {
    font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
}

/* Keep fees divider when agent note is hidden on this page. */

/* Processing: $5  $10 — same line */
.fee-value--discounted {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
    color: #166534;
}

.fee-value--discounted .fee-value-now {
    font-weight: 800;
}

.fee-value--discounted .fee-value-was,
.fees-hero-was {
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.fees-section--agent-discount .fees-hero-usd,
.fees-section--agent-discount .fees-hero-iqd {
    color: #166534;
}

.fees-section--agent-discount .fees-hero-amounts {
    flex-direction: column;
    gap: 0.15rem;
}

.evisa-info-sidebar .apply-button-container {
    margin-top: 0.75rem;
}

.evisa-info-sidebar .btn-apply-now {
    max-width: none;
    gap: 0.5rem;
    padding: 1.35rem 1rem;
}

.btn-apply-now .btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-apply-now .btn-label {
    unicode-bidi: isolate;
}

html[dir="rtl"] .btn-apply-now .btn-label {
    direction: rtl;
}

.evisa-info-sidebar .fees-header {
    margin-bottom: 1.2rem;
}

.evisa-info-sidebar .fees-section--v2 .fees-hero {
    padding-top: 0.1rem;
    padding-bottom: 0;
}

.evisa-details-section,
.evisa-requirements-section,
.important-notes-section {
    margin-bottom: 2.5rem;
    padding: 0;
}

.fees-section {
    margin-bottom: 0.85rem;
    padding: 0;
}

.evisa-details-section:last-of-type,
.evisa-requirements-section:last-of-type,
.important-notes-section:last-of-type,
.fees-section:last-of-type {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.section-header i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* Desktop specific section header sizes */
@media (min-width: 1024px) {
    .evisa-info-sidebar .section-header h2 {
        font-size: 1.2rem;
    }

    .evisa-info-main .section-header h2 {
        font-size: 1.5rem;
    }
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 16px 21px 16px 26px;
    background: var(--bg-light);
    border-radius: 12px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.detail-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    color: #111111;
    font-size: 1.1rem;
}

.detail-icon img {
    width: 21px;
    height: 21px;
    min-width: 21px;
    min-height: 21px;
    max-width: 21px;
    max-height: 21px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.detail-label {
    font-size: 0.9rem;
    color: var(--text-light);
    min-width: 0;
}

.detail-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #000000;
    min-width: 0;
    text-align: end;
    overflow-wrap: anywhere;
}

.detail-value#numApplications {
    text-decoration: underline;
    color: var(--primary-color);
    cursor: pointer;
}

@media (max-width: 640px) {
    .detail-item {
        padding: 16px 24px 16px 15px;
    }

    html[dir="rtl"] .detail-item {
        padding: 16px 19px 16px 33px;
    }
}

html[dir="rtl"] .detail-icon {
    margin-left: 0;
    margin-right: 0;
    order: 2;
}

.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

/* One shared card; each note is a row inside it */
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-light);
    border-radius: 12px;
    padding: 0.35rem 0;
    overflow: hidden;
}

.important-notes-section {
    display: none;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 23px 39px 23px 23px;
    background: var(--bg-light);
    border-radius: 12px;
}

.note-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    background: transparent;
    border-radius: 0;
}

.requirement-item i,
.requirement-item .lucide,
.requirement-item svg {
    color: #4caf50;
    stroke: currentColor;
    font-size: 1.55rem;
    width: 1.55rem;
    height: 1.55rem;
    flex-shrink: 0;
}

.note-item i,
.note-item .lucide,
.note-item svg {
    color: #ff9800;
    stroke: currentColor;
    font-size: 1.55rem;
    width: 1.55rem;
    height: 1.55rem;
    flex-shrink: 0;
}

.requirement-item span,
.note-item span {
    font-size: 0.95rem;
    color: var(--text-dark);
    flex: 1;
}

.fees-card {
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.fee-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.fee-item:last-child {
    margin-bottom: 0;
}

.fee-item.fee-item-processing {
    background: var(--bg-light);
}

.fee-item.total {
    padding: 1rem;
    margin-top: 0;
    margin-bottom: 0;
    border-top: 2px solid var(--primary-color);
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: none;
    position: relative;
    order: -1;
}

.fee-item.total::before {
    display: none;
}

.fee-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 1.5rem;
}

.fee-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
    flex: 1;
}

.fee-label i.fa-info-circle {
    color: #6c757d;
    font-size: 0.85rem;
    cursor: help;
    opacity: 0.7;
}

.fee-label i.fa-info-circle:hover {
    opacity: 1;
    color: var(--primary-color);
}

.fee-label i.fa-check-circle {
    color: var(--primary-color);
    font-size: 1rem;
}

.fee-description {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
    padding-left: 1.5rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease;
    margin-top: 0;
}

.fee-item:hover .fee-description,
.fee-item.fee-show-description .fee-description {
    opacity: 1;
    max-height: 100px;
    margin-top: 0.5rem;
}

.fee-item.total .fee-description {
    padding-left: 1.75rem;
    color: #5a67d8;
    font-weight: 500;
}

.fee-info-icon {
    cursor: pointer;
    position: relative;
}

.fee-info-icon:hover {
    color: var(--primary-color) !important;
    opacity: 1 !important;
}

.fee-amount {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    margin-left: auto;
}

.fee-item.total .fee-item-content {
    margin-bottom: 0.75rem;
}

.fee-item.total .fee-label {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
}

.fee-item.total .fee-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.apply-button-container {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.btn-apply-now {
    width: 100%;
    max-width: 400px;
    padding: 0.9rem 1.25rem;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    box-shadow: none;
    position: relative;
}

.btn-apply-now:hover:not(.loading) {
    background: #45a049;
    box-shadow: none;
}

.btn-apply-now > i {
    font-size: 1rem;
    flex-shrink: 0;
    line-height: 1;
}

/* Responsive for eVisa Info */
@media (max-width: 768px) {
    .evisa-info-header {
        padding: 5.8rem 0 1.25rem;
    }

    .evisa-info-nav h1 {
        font-size: 1.2rem;
    }

    .evisa-banner-container {
        display: none;
    }

    .evisa-info-content {
        padding: 1rem 0 2.5rem;
        margin-top: -0.75rem;
    }

    .evisa-info-content .container {
        padding: 1.5rem 1.25rem 2rem;
        border-radius: 0 0 15px 15px;
        max-width: 1200px;
    }

    .evisa-info-main {
        padding: 0;
        border-radius: 0;
    }

    .fees-section {
        padding: 0;
    }

    .evisa-details-section,
    .evisa-requirements-section,
    .important-notes-section,
    .fees-section {
        margin-bottom: 2rem;
    }

    .section-header {
        margin-bottom: 1rem;
    }

    .footer-content {
        display: none;
    }

    .footer-bottom {
        text-align: center;
        padding-bottom: 25px;
        color: rgba(255, 255, 255, 0.6);
    }
}

@media (max-width: 640px) {
    .evisa-info-header {
        padding: 6.5rem 0 2rem;
    }

    .evisa-info-content {
        padding: 0 0 2rem;
        margin-top: -1.25rem;
    }

    .evisa-info-content .container {
        padding: 1.35rem 1.25rem 1.75rem;
        border-radius: 0 0 15px 15px;
        max-width: 1200px;
    }

    .evisa-info-main {
        padding: 0;
    }

    .fees-section {
        padding: 0;
    }

    .evisa-details-section,
    .evisa-requirements-section,
    .important-notes-section,
    .fees-section {
        margin-bottom: 2.5rem;
        margin-top: 28px;

    }

    .section-header {
        margin-bottom: 1.25rem;
    }

    .fees-section .section-header {
        margin-top: 31px;
    }

    .section-header h2 {
        font-size: 1.1rem;
    }

    .detail-item {
        padding: 0.875rem;
    }

    .requirement-item {
        padding: 25px;
    }

    .note-item {
        padding: 0.8rem 1rem;
    }

    .apply-button-container {
        margin-top: 1rem;
    }
}

/* RTL: align requirement/note rows like detail rows (icon on inline-start = right in Arabic) */
html[dir="rtl"] .evisa-info-main .evisa-requirements-section .requirement-item,
html[dir="rtl"] .evisa-info-main .important-notes-section .note-item {
    flex-direction: row;
}

html[dir="rtl"] .evisa-info-main .evisa-requirements-section .requirement-item i,
html[dir="rtl"] .evisa-info-main .important-notes-section .note-item i {
    margin-left: 0;
    margin-right: 0;
}

html[dir="rtl"] .evisa-info-main .evisa-requirements-section .requirement-item span,
html[dir="rtl"] .evisa-info-main .important-notes-section .note-item span {
    text-align: right;
}

html[dir="rtl"] .evisa-banner-image .help-button,
html[dir="rtl"] .evisa-banner-sidebar .help-button {
    right: auto;
    left: 1rem;
}

html[dir="rtl"] .evisa-info-sidebar .fees-header,
html[dir="rtl"] .evisa-info-sidebar .fees-header h2,
html[dir="rtl"] .evisa-info-sidebar .fees-subtitle {
    text-align: right;
}

/* FAQ — semantic <details> (SEO-friendly body; light styling) */
.evisa-faq-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.evisa-faq-section__header {
    margin-bottom: 1rem;
}

.evisa-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.evisa-faq-item {
    background: var(--bg-light);
    border-radius: 12px;
    border-bottom: none;
    overflow: hidden;
}

.evisa-faq-item:last-child {
    border-bottom: none;
}

.evisa-faq-q {
    cursor: pointer;
    list-style: none;
    padding: 20px 23px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a1a1c;
    line-height: 1.45;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    line-height: 29px;

}

.evisa-faq-q::-webkit-details-marker {
    display: none;
}

.evisa-faq-q::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease, margin 0.25s ease;
    flex-shrink: 0;
    margin-top: -3px;
    opacity: 0.8;
}

.evisa-faq-item[open] .evisa-faq-q {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    background: transparent;
}

.evisa-faq-item[open] .evisa-faq-q::after {
    transform: rotate(-135deg);
    margin-top: 3px;
}

/* Collapsed by default — hide answers until the user expands a question */
.evisa-faq-item:not([open]) > .evisa-faq-a {
    display: none;
}

.evisa-faq-a {
    padding: 0 23px 20px;
    background: transparent;
}

.evisa-faq-item[open] > .evisa-faq-a {
    display: block;
    animation: evisa-faq-open 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.evisa-faq-a p {
    margin: 0;
    padding-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-dark, #202020);
}

@keyframes evisa-faq-open {
    from {
        opacity: 0;
        transform: translateY(-0.45rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .evisa-faq-q::after {
        transition: none;
    }

    .evisa-faq-item[open] > .evisa-faq-a {
        animation: none;
    }
}

html[dir="rtl"] .evisa-faq-q,
html[dir="rtl"] .evisa-faq-a p {
    text-align: right;
}