:root {
    --blue: #2544b3;
    --blue2: #193fc8;
    --yellow: #ffc600;
    --danger: #e53935;
    --danger-dark: #b71c1c;
    --success: #4caf50;
    --success-dark: #2e7d32;
    --grey: #f4f4f8;
    --dark: #202649;
    --bg: #faf9f6;
    --shadow: rgba(37, 68, 179, 0.1);
    --shadow-hover: rgba(37, 68, 179, 0.2);
    --shadow-active: rgba(37, 68, 179, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease-out;
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing system */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Typography system */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;

    /* Border radius system */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;

    /* Section spacing */
    --section-gap: var(--space-2xl);
    --section-gap-sm: var(--space-xl);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg) 0%, #f0f0f0 100%);
    color: #222;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* For screen readers only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes progressFill {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.animate-bounce-in {
    animation: bounceIn 0.6s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.6s ease-out;
}

.pulse-on-hover:hover {
    animation: pulse 0.3s ease-in-out;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--blue) 0%, #1e3a8a 100%);
    color: #fff;
    padding: 2rem 1rem 1.5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grain" width="100" height="20" patternUnits="userSpaceOnUse"><circle cx="25" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="20" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

header>* {
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.lang-switch {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lang-switch button {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.lang-switch button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.lang-switch button:hover::before {
    left: 100%;
}

.lang-switch button.active,
.lang-switch button:focus {
    background: var(--yellow);
    color: var(--blue);
    border-color: var(--yellow);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 198, 0, 0.3);
}

.lang-switch button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main {
    max-width: 750px;
    margin: var(--space-md) auto var(--space-3xl) auto;
    background: #fff;
    box-shadow: 0 10px 40px var(--shadow);
    border-radius: var(--radius-2xl);
    padding: var(--space-lg) var(--space-md);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
    z-index: 1;
}

.main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--yellow);
    border-radius: 10px 10px 0 0;
}

/* Tabbed Interface */
.tabs {
    display: flex;
    justify-content: center;
    margin: 0 0 2rem 0;
    gap: 0.5rem;
    background: rgba(37, 68, 179, 0.02);
    border-radius: 12px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(37, 68, 179, 0.08);
    padding: var(--space-sm);
}

.tab-btn {
    padding: 1.5rem 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue);
    background: #fff;
    border: 2px solid rgba(37, 68, 179, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    justify-content: center;
    align-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(37, 68, 179, 0.05);
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--blue2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 68, 179, 0.2);
    border-color: var(--blue2);
}

.tab-btn.active::before {
    background: var(--yellow);
}

.tab-btn.active:hover {
    background: var(--blue2);
    color: #fff;
    transform: translateY(-1px);
}

.tab-btn:hover {
    background: rgba(37, 68, 179, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 68, 179, 0.15);
    border-color: rgba(37, 68, 179, 0.2);
}

.tab-content {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

/* Section spacing: create clear separation between sibling blocks inside tabs */
.tab-content > * + * {
    margin-top: var(--section-gap);
}

/* Slightly tighter spacing on small screens */
@media (max-width: 640px) {
    .tab-content > * + * {
        margin-top: var(--section-gap-sm);
    }
}

/* Optional: add subtle dividers between sections when desired */
.tab-content.divided > * + * {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(37, 68, 179, 0.08);
}

/* Section Titles */
.section-title {
    font-size: var(--font-size-2xl);
    color: var(--blue);
    margin-bottom: var(--space-lg);
    font-weight: 700;
    position: relative;
    padding-left: var(--space-md);
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: var(--yellow);
    border-radius: 2px;
}

/* Key Information List */
.key-list {
    padding-left: 0;
    list-style: none;
    margin-bottom: 2rem;
}

.key-list li {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(37, 68, 179, 0.02);
    border-radius: 12px;
    border-left: 3px solid transparent;
    transition: var(--transition);
    animation: slideIn 0.6s ease-out;
    animation-fill-mode: both;
    position: relative;
    padding-left: 3.5rem;
}

.key-list li:nth-child(1) {
    animation-delay: 0.1s;
}

.key-list li:nth-child(2) {
    animation-delay: 0.2s;
}

.key-list li:nth-child(3) {
    animation-delay: 0.3s;
}

.key-list li:nth-child(4) {
    animation-delay: 0.4s;
}

.key-list li:nth-child(5) {
    animation-delay: 0.5s;
}

.key-list li:hover {
    background: rgba(37, 68, 179, 0.05);
    border-left-color: var(--blue);
    transform: translateX(5px);
}

.ees-highlight {
    position: relative;
    margin-bottom: var(--section-gap-sm);
    padding: var(--space-2xl) var(--space-xl);
    border-radius: 2rem;
    background: linear-gradient(120deg, #b27df6 0%, #8c58e0 45%, #5a35c9 100%);
    color: #f7f3ff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 70px rgba(71, 33, 153, 0.35);
    overflow: hidden;
}

.ees-highlight::before,
.ees-highlight::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.ees-highlight::before {
    top: -45%;
    left: -15%;
    width: 65%;
    height: 120%;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 65%);
}

.ees-highlight::after {
    inset: -40% -25%;
    background-image:
        repeating-linear-gradient(65deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18) 1.2px, transparent 1.2px, transparent 22px),
        repeating-linear-gradient(-65deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12) 1.2px, transparent 1.2px, transparent 26px);
    opacity: 0.35;
    mix-blend-mode: screen;
}

.ees-highlight > * {
    position: relative;
    z-index: 1;
}

.ees-highlight .section-title {
    margin-top: 0;
    color: #fff;
    padding-left: calc(var(--space-md) + 0.1rem);
}

.ees-highlight .section-title::before {
    background: linear-gradient(180deg, #ffd76b 0%, #ffe06f 60%, #ffeaa5 100%);
}

.ees-highlight .key-list {
    margin-bottom: var(--space-lg);
}

.ees-highlight .key-list li {
    background: rgba(18, 12, 60, 0.35);
    border-left-color: rgba(255, 235, 173, 0.8);
    color: inherit;
    box-shadow: 0 14px 40px rgba(16, 11, 58, 0.32);
    backdrop-filter: blur(6px);
    transform: translateX(0);
}

.ees-highlight .key-list li strong {
    color: #fff;
}

.ees-highlight .key-list li:hover {
    background: rgba(22, 16, 70, 0.55);
    border-left-color: var(--yellow);
    transform: translateX(12px);
}

.info-box {
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    border: 1px solid rgba(37, 68, 179, 0.12);
    box-shadow: 0 18px 40px rgba(21, 45, 112, 0.15);
    margin-top: var(--space-lg);
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -50px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(37, 68, 179, 0.25) 0%, rgba(37, 68, 179, 0) 70%);
    pointer-events: none;
}

.info-box strong {
    display: block;
    font-size: var(--font-size-lg);
    color: var(--blue);
    margin-bottom: var(--space-sm);
}

.info-box ul {
    margin: 0;
    padding-left: 1.2rem;
}

.info-box li {
    margin-bottom: 0.4rem;
}

.ees-highlight .info-box {
    background: rgba(12, 9, 46, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 55px rgba(8, 6, 38, 0.45);
    backdrop-filter: blur(10px);
    color: #f7f3ff;
}

.ees-highlight .info-box::before {
    top: auto;
    bottom: -60px;
    right: -30px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
}

.ees-highlight .info-box strong {
    color: #ffe27a;
}

.ees-highlight .info-box ul {
    padding-left: 1.1rem;
    list-style: disc;
}

.ees-highlight .info-box li {
    margin-bottom: 0.5rem;
}

.ees-badge {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: linear-gradient(150deg, #2d1b7e 0%, #12104b 100%);
    padding: 1.25rem 1.55rem;
    /* border-radius: 1.1rem; */
    box-shadow: 4px 10px 5px rgba(9, 5, 45, 0.6);
    transform: skewY(-6deg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.ees-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid rgba(255, 255, 255, 0.12);
}

.ees-badge::after {
    content: '';
    position: absolute;
    top: -35%;
    left: -30%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 65%);
    mix-blend-mode: screen;
}

.ees-badge-text {
    position: relative;
    z-index: 1;
    display: block;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    text-align: left;
    color: #fff;
}

.ees-badge-text span {
    color: #ffd76b;
}

.ees-badge-text .exit {
    display: inline-flex;
    align-items: left;
    gap: 0.45rem;
}

.ees-badge-text .exit::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url('data:image/svg+xml,%3Csvg%20width%3D%2284%22%20height%3D%2284%22%20viewBox%3D%220%200%2084%2084%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M39.4282%206.72544L35.9152%204.16006H40.2602L41.6006%200L42.9411%204.16006H47.2861L43.7731%206.72544L45.1136%2010.9086L41.6006%208.32012L38.0877%2010.9086L39.4282%206.72544ZM43.7731%2079.0413L45.1136%2083.2013L41.6006%2080.6359L38.0877%2083.2013L39.4282%2079.0413L35.9152%2076.4759H40.2602L41.6006%2072.2927L42.9411%2076.4759H47.2861L43.7731%2079.0413ZM5.68542%2044.374L2.17248%2046.9625L3.51294%2042.8024L0%2040.3064H4.34495L5.68542%2036.1463L7.02589%2040.3064H11.394L7.8579%2042.8949L9.19836%2047.0549L5.68542%2044.4665V44.374ZM25.8155%2011.5557L27.156%2015.7158L23.643%2013.1735L20.1301%2015.7389L21.4706%2011.5788L17.9576%209.01347H22.3026L23.643%204.8534L24.9835%209.01347H29.3285L25.8155%2011.5557ZM9.24459%2022.2332L10.5851%2018.0732L11.9486%2022.2332H16.178L12.6651%2024.8217L14.0055%2028.9818L10.4695%2026.3933L6.93344%2028.9818L8.27391%2024.8217L4.76096%2022.2332H9.24459ZM9.24459%2058.3796L10.5851%2054.2195L11.9486%2058.3796H16.178L12.6651%2060.9681L14.0055%2065.1281L10.4695%2062.5628L6.93344%2065.1281L8.27391%2060.9681L4.76096%2058.3796H9.24459ZM21.4706%2074.1878L17.9576%2071.6456H22.3026L23.643%2067.4855L24.9835%2071.6456H29.3285L25.8155%2074.1878L27.156%2078.3479L23.643%2075.7825L20.1301%2078.3479L21.4706%2074.1878ZM79.6883%2042.8949L81.0288%2047.0549L77.5159%2044.4665L73.9567%2047.0549L75.2972%2042.8949L71.7611%2040.3064H76.2679L77.6083%2036.1463L78.9488%2040.3064H83.2013L79.6883%2042.8949ZM57.3858%2011.5557L53.8728%209.01347H58.2178L59.5583%204.8534L60.8987%209.01347H65.2437L61.7307%2011.5557L63.0712%2015.7158L59.5583%2013.1735L56.0453%2015.7389L57.3858%2011.5788V11.5557ZM71.2527%2022.2101L72.6162%2018.0501L73.9567%2022.2101H78.3017L74.8812%2024.8217L76.2216%2028.9818L72.7087%2026.3933L69.1726%2028.9818L70.5131%2024.8217L67.0233%2022.2332L71.2527%2022.2101ZM73.9567%2058.3796H78.3017L74.8812%2060.9681L76.2216%2065.1281L72.7087%2062.5628L69.1726%2065.1281L70.5131%2060.9681L67.0233%2058.3796H71.3682L72.7318%2054.2195L74.0723%2058.3796H73.9567ZM65.2437%2071.6456L61.7307%2074.1878L63.0712%2078.3479L59.5583%2075.7825L56.0453%2078.3479L57.3858%2074.1878L53.8728%2071.6456H58.2178L59.5583%2067.4855L60.8987%2071.6456H65.2437Z%22%20fill%3D%22%23FFCC00%22%2F%3E%3C%2Fsvg%3E') center/cover no-repeat;
    /* border-radius: 2px; */
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25); */
}

@media (max-width: 900px) {
    .ees-highlight {
        padding: var(--space-xl);
    }

    .ees-badge {
        position: relative;
        top: 0;
        right: 0;
        margin: 0 auto var(--space-lg);
        transform: none;
        max-width: 180px;
    }
}

@media (max-width: 640px) {
    .ees-highlight {
        padding: var(--space-lg);
        /* border-radius: 1.5rem; */
    }

    .ees-highlight .section-title {
        font-size: var(--font-size-xl);
        padding-left: var(--space-sm);
    }

    .ees-badge {
        max-width: 160px;
    }
}

/* Expandable Items */
.expandable-item {
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.expandable-item:hover {
    background: rgba(37, 68, 179, 0.05);
    border-left-color: var(--blue);
    transform: translateX(5px);
}

.expandable-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    text-align: left;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    cursor: pointer;
    transition: var(--transition);

}

.expandable-header:hover {
    background: none;
}

.expandable-header i {
    font-size: 1.2rem;
    color: var(--blue);
    transition: var(--transition);
    margin-left: 1rem;
}

.expandable-header:hover i {
    color: var(--yellow);
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(37, 68, 179, 0.01);
    border-radius: 0 0 12px 12px;
    margin-top: 0.5rem;
}

.expandable-item.active .expandable-content {
    /* Large max-height to avoid clipping content on small screens while keeping transition */
    max-height: 2000px;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(37, 68, 179, 0.1);
}

.expandable-item.active .expandable-header i {
    transform: rotate(180deg);
    color: var(--yellow);
}

.refusal-reasons {
    margin-top: 0;
    transition: var(--transition);
}

.expandable-item.active .expandable-content .refusal-reasons h4 {
    color: var(--blue);
    font-size: 1.1rem;
    margin: 1rem 0;
    font-weight: 600;
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: both;
}

.refusal-reasons ul {
    padding-left: 1.5rem;
    margin: 0;
}

.refusal-reasons ul li.reason {
    margin-bottom: 0.25rem;
    line-height: 1.5;
    color: #555;
    position: relative;
    padding-left: .5rem;
    list-style-position: outside;
    transition: var(--transition);
    animation: slideIn 2s ease-out;
    animation-fill-mode: both;
}

.refusal-reasons li.reason::marker {
    color: var(--danger);
    font-weight: bold;
    content: "- "
}

li.reason:nth-child(1) {
    animation-delay: 0.1s;
}

li.reason:nth-child(2) {
    animation-delay: 0.3s;
}

li.reason:nth-child(3) {
    animation-delay: 0.5s;
}

li.reason:nth-child(4) {
    animation-delay: 0.7s;
}

li.reason:nth-child(5) {
    animation-delay: 0.9s;
}

li.reason:nth-child(6) {
    animation-delay: 1.1s;
}

li.reason:nth-child(7) {
    animation-delay: 1.3s;
}

li.reason:nth-child(8) {
    animation-delay: 1.5s;
}

.key-list .icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3em;
    color: var(--blue);
    background: rgba(255, 198, 0, 0.1);
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

/* Warning Box */
.warning {
    background: linear-gradient(135deg, var(--danger), #d32f2f);
    color: #fff;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    font-weight: 600;
    margin: 2rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

.warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="warning-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="20" fill="url(%23warning-pattern)"/></svg>');
    opacity: 0.3;
}

.warning>* {
    position: relative;
    z-index: 1;
}

/* Country list and calculator helpers */
.country-list {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    column-gap: 2rem;
    padding-left: 1.25rem;
    margin: 0 0 1.5rem 0;
}

.country-note {
    font-size: .9rem;
    color: #555;
    margin: .5rem 0 1.5rem 0;
    text-align: left;
}

/* Inline-link helper */
.link-blue {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.link-blue:hover,
.link-blue:focus {
    text-decoration-thickness: 2px;
}

.timeline-subhead {
    color: var(--blue);
    font-weight: 700;
    margin: 1rem 0 .5rem 0;
    text-align: center;
}

.logos{
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-content: center;
	align-items: center;
    max-width:900px;
    width: 100%;
    object-fit: contain;
    margin: 0 auto 2.5rem auto;
    z-index: 999;
    padding: 1rem 0;
    border-radius: var(--radius-2xl);
    background: #fff;

}
.logos img{
    max-height:65px;
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.logos .giz img{
    max-height: 80px;
    /* margin: 1rem 2rem; */
}

@media (max-width: 640px) {
    .logos .giz img{
        max-height: 120px;
        /* margin: .5rem 1rem; */
    }
}


/*
 * ===============================================
 * Enhanced Calculator Styles
 * ===============================================
 */
.timeline-box {
    background:
        linear-gradient(135deg, rgba(246, 248, 255, 0.98) 0%, rgba(250, 251, 255, 0.99) 100%),
        radial-gradient(circle at 30% 30%, rgba(37, 68, 179, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(255, 198, 0, 0.01) 0%, transparent 40%);
    backdrop-filter: blur(25px) saturate(180%);
    border-radius: var(--radius-xl);
    margin: var(--space-xl) 0;
    padding: var(--space-xl) var(--space-lg);
    box-shadow:
        0 8px 32px rgba(37, 68, 179, 0.08),
        0 4px 16px rgba(37, 68, 179, 0.06),
        0 2px 8px rgba(37, 68, 179, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(37, 68, 179, 0.05);
    border: 1px solid rgba(37, 68, 179, 0.12);
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.timeline-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--blue2), var(--yellow), var(--success));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-head {
    color: var(--blue);
    font-weight: 800;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-align: center;
    text-shadow: 0 1px 2px rgba(37, 68, 179, 0.1);
    position: relative;
}

.timeline-head::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--yellow), var(--success));
    border-radius: 2px;
}

.timeline-desc {
    font-size: 0.95rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #455;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.calc-section {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(250, 251, 255, 0.9) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(37, 68, 179, 0.1);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(37, 68, 179, 0.05);
    transition: var(--transition);
}

.calc-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 68, 179, 0.08);
}

.calc-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 1.25rem;
}

.calc-step span {
    background: var(--blue);
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(37, 68, 179, 0.2);
}

.main-field-group {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.past-trips {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

.trip-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    width: 100%;
    background: rgba(37, 68, 179, 0.03);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(37, 68, 179, 0.08);
}

.trip-row .field-group {
    flex: 1;
    min-width: 180px;
}

.trip-row .btn-remove.small {
    padding: 0.7rem;
    height: 48px;
    width: 48px;
    font-size: 1rem;
}

.cta.small {
    font-size: var(--font-size-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
    background: linear-gradient(135deg, var(--success) 0%, #45a049 100%);
    color: #fff;
    border: 1px solid var(--success);
    transition: var(--transition);
}

.cta.small:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.timeline-result {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(37, 68, 179, 0.08) 0%, rgba(37, 68, 179, 0.12) 100%);
    color: var(--blue);
    border: 1px solid rgba(37, 68, 179, 0.2);
    border-radius: var(--radius-lg);
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: var(--transition);
}

.timeline-result.error {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.08) 0%, rgba(229, 57, 53, 0.12) 100%);
    color: var(--danger-dark);
    border-color: rgba(229, 57, 53, 0.3);
}

.timeline-warning {
    color: var(--blue);
    font-weight: 600;
    margin-top: 1rem;
    font-size: 1rem;
    text-align: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 198, 0, 0.1) 0%, rgba(255, 215, 0, 0.15) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 198, 0, 0.3);
    position: relative;
    animation: fadeInUp 0.6s ease-out;
    transition: var(--transition);
}

.timeline-warning.error {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.1) 0%, rgba(244, 67, 54, 0.15) 100%);
    border-color: rgba(229, 57, 53, 0.3);
    color: var(--danger);
}

/* Debug Section Styles */
.debug-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(37, 68, 179, 0.05) 0%, rgba(37, 68, 179, 0.1) 100%);
    border: 1px solid rgba(37, 68, 179, 0.2);
    border-radius: var(--radius-lg);
    animation: fadeInUp 0.6s ease-out;
}

.debug-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.debug-content {
    font-size: 0.9rem;
    line-height: 1.6;
}

.debug-timeline {
    margin: 1rem 0;
    overflow-x: auto;
}

.debug-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(2rem, 1fr));
    gap: 2px;
    margin: 1rem 0;
    max-width: 100%;
}

.debug-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border-radius: 3px;
    color: #666;
    background: #f8f9fa;
    position: relative;
}

.debug-day.used {
    background: #ff9999;
    color: #fff;
    font-weight: 600;
}

.debug-day.planned {
    background: #99ccff;
    color: #fff;
    font-weight: 600;
}

.debug-day.entry {
    background: #ffc600;
    color: #000;
    font-weight: 700;
    border: 2px solid #e6b800;
}

.debug-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.debug-summary-item {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    border: 1px solid rgba(37, 68, 179, 0.1);
}

.debug-summary-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.debug-summary-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--blue);
}

/* Hide debug buttons by default */
button[onclick*="toggleDebugView"] {
    display: none !important;
}

.calc-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(37, 68, 179, 0.1);
}

.calc-note {
    font-size: 0.85rem;
    font-style: italic;
    color: #666;
    text-align: center;
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: rgba(37, 68, 179, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(37, 68, 179, 0.08);
}

/* Field groups and errors */
.field-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    position: relative;
}

.field-group:hover .field-label {
    color: var(--blue2);
    transition: var(--transition-fast);
}

.field-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--blue);
    text-align: left;
    margin-bottom: var(--space-xs);
    display: block;
}

.input-error {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12) !important;
}

.helper-error {
    color: var(--danger);
    font-size: .85rem;
    font-weight: 600;
    text-align: left;
}

/* Section tip under checklist */
.section-tip {
    color: #2544b3;
    font-size: 1.08rem;
    font-weight: 600;
    margin-top: 2.3rem;
    text-align: center;
}

/* Warning emoji size helper */
.warning-icon {
    font-size: 1.5em;
    line-height: 1;
}

/* Defaults for dynamically shown elements */
.timeline-result,
.timeline-warning { display: none; }

/* Hide English content by default; JS toggles display */
#enContent, #srContent { display: none; }

/* Interactive Checklist */
.checklist-wrap {
    margin: 2rem 0;
}

.checklist-progress-wrap {
    margin: 0 0 2rem 0;
    position: sticky;
    top: 20px;
    z-index: 100;
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(37, 68, 179, 0.1);
}

.progress-bar-bg {
    background: rgba(37, 68, 179, 0.1);
    height: 16px;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--yellow), var(--success));
    height: 100%;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressFill 2s infinite;
}

.progress-bar-fill.ready {
    background: linear-gradient(90deg, var(--success), #45a049);
}

.progress-bar-label {
    font-size: 1rem;
    color: var(--blue);
    text-align: center;
    font-weight: 600;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    background: rgba(37, 68, 179, 0.02);
    border-radius: 12px;
    padding: 0.95rem 1.1rem 0.7rem 1.1rem;
    margin-bottom: 1rem;
    min-height: 70px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--blue);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    outline: none;
    box-shadow: 0 2px 10px rgba(37, 68, 179, 0.08);
    transition: var(--transition);
}

.checklist-item[aria-checked="true"] {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(69, 160, 73, 0.1));
    color: var(--success);
    border-color: var(--success);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2);
}

.checklist-item:hover {
    background: rgba(37, 68, 179, 0.05);
    border-color: rgba(37, 68, 179, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 68, 179, 0.15);
}

.checklist-icon {
    display: flex;
    align-items: flex-start;
    margin-right: 1rem;
    min-width: 35px;
    min-height: 35px;
    margin-top: 2px;
}

.checkmark {
    min-width: 35px;
    min-height: 35px;
    max-width: 35px;
    max-height: 35px;
    border-radius: 50%;
    border: 3px solid rgba(37, 68, 179, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: #fff;
    color: #fff;
    box-sizing: border-box;
    transition: var(--transition);
    margin-right: 0.7rem;
}

.checklist-item[aria-checked="true"] .checkmark {
    background: var(--success);
    border-color: var(--success);
    transform: scale(1.1);
}

.checklist-item .checkmark::after {
    content: '';
}

.checklist-item[aria-checked="true"] .checkmark::after {
    content: "✔";
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}

.checklist-label-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
}

.checklist-label {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--blue);
    margin-bottom: 0.3rem;
}

.checklist-item[aria-checked="true"] .checklist-label {
    color: var(--success);
}

.checklist-desc {
    font-size: 0.95rem;
    font-weight: 400;
    color: #555;
    line-height: 1.5;
}

.checklist-item[aria-checked="true"] .checklist-desc {
    color: #2e7d32;
}

/* FAQ Section */
.faq-section {
    margin: 3rem 0;
}

.faq-container {
    margin-top: 1.5rem;
}

.faq-item {
    background: rgba(37, 68, 179, 0.02);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid rgba(37, 68, 179, 0.1);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(37, 68, 179, 0.1);
}

.faq-question {
    width: 100%;
    background: linear-gradient(135deg, #fff, #f8f9ff);
    border: none;
    padding: 1.2rem 1.5rem;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    position: relative;
}

.faq-question:hover {
    background: linear-gradient(135deg, #f8f9ff, #f0f2ff);
}

.faq-question span {
    flex: 1;
    text-align: left;
}

.faq-question i {
    color: var(--blue);
    font-size: 1.2rem;
    transition: var(--transition);
    margin-left: 1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease-out;
    background: #fff;
    padding: 0 1.5rem;
}

.faq-answer p {
    margin: 0;
    padding: 1.5rem 0;
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.faq-item.active .faq-answer {
    /* Larger max-height to avoid clipping answers */
    max-height: 800px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, var(--yellow), #ffe082);
    color: var(--blue);
    box-shadow: 0 4px 15px rgba(255, 198, 0, 0.2);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--blue);
}

/* Contact Section */
.contact {
    margin: 3rem 0 2rem 0;
    text-align: center;
    font-size: 1.1rem;
    padding: 2rem;
    background: rgba(37, 68, 179, 0.02);
    border-radius: 12px;
    border: 2px dashed rgba(37, 68, 179, 0.1);
}

/* Links inside lists */
.key-list a {
    color: var(--blue);
    text-decoration: underline;
    font-weight: 600;
}

.key-list a:hover,
.key-list a:focus {
    color: var(--blue2);
    text-decoration-thickness: 2px;
}

/* CTA Button */
.cta {
    margin-top: 2.5rem;
    background: linear-gradient(135deg, var(--yellow), #ffd700);
    color: var(--blue);
    font-weight: 700;
    border: none;
    border-radius: 50px;
    font-size: 1.25rem;
    padding: 1.2rem 3rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 198, 0, 0.3);
    transition: var(--transition);
    margin-left: auto;
    margin-right: auto;
    display: block;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.cta:hover::before {
    left: 100%;
}

.cta:hover,
.cta:focus {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 198, 0, 0.4);
}

.cta:active {
    transform: translateY(-1px) scale(1.02);
}

/* Remove/Delete button */
.btn-remove {
    background: transparent;
    color: var(--danger);
    border: 2px solid rgba(229, 57, 53, 0.35);
    border-radius: 8px;
    padding: 0.55rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: var(--transition);
}

.btn-remove:hover,
.btn-remove:focus {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 57, 53, 0.35);
    outline: none;
}

.btn-remove:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.25);
}

.btn-remove i,
.cta.small i {
    margin-right: .4rem;
}

.cta:focus-visible,
.btn-remove:focus-visible,
.btn-secondary:focus-visible,
.faq-question:focus-visible,
.expandable-header:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
}

/* Secondary/outline button */
.btn-secondary {
    background: transparent;
    color: var(--blue);
    border: 2px solid rgba(37, 68, 179, 0.35);
    border-radius: 8px;
    padding: 0.55rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 68, 179, 0.25);
    outline: none;
}

/* Hashtag */
.hashtag {
    color: var(--blue);
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 1.2rem;
    text-align: center;
    margin-top: 2rem;
}

/* Mobile Responsiveness */
/* Phone portrait */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }

    .main {
        margin: 0.5rem;
        padding: 1rem 0.75rem;
        border-radius: 8px;
    }

    .section-title {
        font-size: 1.2rem;
        padding-left: 0.75rem;
    }

    .section-title::before {
        width: 3px;
    }

    .key-list li {
        padding: 0.75rem;
        padding-left: 3rem;
        font-size: 0.95rem;
    }

    .tabs {
        flex-direction: column;
        gap: 0.25rem;
    }

    .tab-btn {
        flex-direction: row;
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .checklist-item {
        padding: 0.75rem 0.6rem;
        font-size: 0.95rem;
        min-height: 60px;
    }

    .checkmark {
        min-width: 28px;
        min-height: 28px;
        max-width: 28px;
        max-height: 28px;
    }

    .timeline-head {
        font-size: 1.1rem;
    }

    .country-list {
        columns: 2;
        column-gap: 1rem;
        font-size: 0.9rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }
}

/* Phone landscape and small tablets */
@media (min-width: 481px) and (max-width: 640px) {
    .main {
        margin: 1rem;
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tab-btn {
        flex-direction: row;
        padding: 0.7rem 1rem;
        font-size: 1rem;
    }

    .country-list {
        columns: 3;
    }
}

/* Tablets */
@media (min-width: 641px) and (max-width: 1024px) {
    .main {
        max-width: 90%;
        margin: 1.5rem auto;
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .key-list li {
        padding: 1.25rem;
        padding-left: 3.75rem;
    }

    .country-list {
        columns: 4;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .main {
        max-width: 900px;
        margin: 2rem auto;
        padding: 2.5rem 2rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .key-list li {
        padding: 1.5rem;
        padding-left: 4rem;
    }

    .country-list {
        columns: 4;
        column-gap: 2.5rem;
    }

    .checklist-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(37, 68, 179, 0.18);
    }
}

/* Common mobile styles */
@media (max-width: 640px) {
    .cta {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }

    .checklist-item {
        padding: 1rem 0.8rem;
        font-size: 1rem;
    }

    .warning {
        flex-direction: column;
        align-content: center;
        justify-content: center;
        flex-wrap: nowrap;
        text-align: center;
    }

    .trip-row {
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
    }

    .trip-row .field-group {
        max-width: 100%;
    }

    .trip-row .btn-remove.small {
        width: 100%;
        height: auto;
        padding: 0.7rem;
    }

    .past-trips .field-group input[type="date"],
    .timeline-box input[type="number"] {
        max-width: 100%;
    }

    /* Enhanced mobile timeline-box */
    .timeline-box {
        margin: var(--space-lg) 0;
        padding: var(--space-lg) var(--space-sm);
        border-radius: var(--radius-lg);
    }

    /* Debug section mobile styles */
    .debug-section {
        margin-top: 1rem;
        padding: 1rem;
    }

    .debug-calendar {
        grid-template-columns: repeat(20, 1fr);
        font-size: 0.6rem;
    }

    .debug-summary {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .debug-summary-item {
        padding: 0.5rem;
    }

    .calc-controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .calc-controls button {
        width: 100%;
    }

    .timeline-box:hover {
        transform: none; /* Disable hover transform on mobile for better UX */
    }

    .timeline-result,
    .timeline-warning {
        padding: 1rem;
        margin: 0.75rem 0;
        font-size: 0.95rem;
    }

    .timeline-result:hover,
    .timeline-warning:hover {
        transform: none; /* Disable hover transform on mobile */
    }

    .expandable-item.active .expandable-content {
        max-height: 9999px;
    }

    .faq-item.active .faq-answer {
        max-height: 9999px;
    }
}

/* Animation classes for dynamic content */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.success-message {
    background: linear-gradient(135deg, var(--success), #45a049);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0;
    animation: bounceIn 0.6s ease-out;
}

.error-message {
    background: linear-gradient(135deg, var(--danger), #d32f2f);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0;
    animation: bounceIn 0.6s ease-out;
}

/* Loading States and Interactive Feedback */
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--shadow);
    border-top: 2px solid var(--blue);
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-right: var(--space-sm);
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.skeleton-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.2s ease-in-out infinite;
    border-radius: var(--radius-md);
}

/* Enhanced Interactive States */
.interactive-element {
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.interactive-element::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.interactive-element:active::after {
    width: 300px;
    height: 300px;
}

/* Button Loading States */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading .loading-spinner {
    margin-right: var(--space-sm);
}

/* Micro Animations */
.micro-bounce {
    animation: pulse 0.3s ease-in-out;
}

.micro-shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

/* Success/Error State Indicators */
.state-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-top: var(--space-sm);
    transition: var(--transition-fast);
}

.state-indicator.success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.state-indicator.error {
    background: rgba(229, 57, 53, 0.1);
    color: var(--danger);
    border: 1px solid rgba(229, 57, 53, 0.3);
}

.state-indicator.info {
    background: rgba(37, 68, 179, 0.1);
    color: var(--blue);
    border: 1px solid rgba(37, 68, 179, 0.3);
}

/* Tooltips and Help Text */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 1000;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--dark);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Help Text */
.help-text {
    font-size: var(--font-size-sm);
    color: #666;
    margin-top: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.help-text i {
    color: var(--blue);
    opacity: 0.7;
}

/* Enhanced Input Styling */
.form-field {
    position: relative;
    margin-bottom: var(--space-lg);
}

.form-field label {
    display: block;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-base);
}

.form-field input,
.form-field select {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid rgba(37, 68, 179, 0.2);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    background: #fff;
    color: var(--blue);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(37, 68, 179, 0.05);
}

.form-field input:hover,
.form-field select:hover {
    border-color: rgba(37, 68, 179, 0.4);
    box-shadow: 0 4px 12px rgba(37, 68, 179, 0.1);
    transform: translateY(-1px);
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 68, 179, 0.1);
    transform: translateY(-1px);
}

.form-field.has-error input,
.form-field.has-error select {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.form-field.has-success input,
.form-field.has-success select {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Globe Animation Background */
#globe {
    opacity: 0.75;
    width: 300%;
    height: 30%;
    position: fixed;
    bottom: 0%;
    right: -100%;
    overflow: hidden;
    z-index: 0;
}

figure {
    width: 100%;
    margin: 12vh auto 0 auto;
    max-width: 90vh;
}

figure #sea {
    fill: #2544b3;
}

figure #hi {
    fill: rgba(255, 255, 255, 0.2);
}

figure #light {
    fill: #ffc600;
}

figure #shad {
    fill: rgba(0, 0, 0, 0.05);
}

figure #land {
    fill: #8B9C52;
    animation: spin 15s linear infinite forwards;
}

figure .vehicles use {
    fill: #ffc600;
    animation: orbit 20s linear infinite;
}

figure #boat1 {
    transform: translateX(40px) translateY(-80px);
}

figure #boat1 use {
    animation-duration: 35s;
}

figure #plane1 {
    transform: translateX(-10px) translateY(170px);
}

figure #plane2 {
    transform: translateX(170px) translateY(150px);
}

figure #plane2 use {
    animation-delay: 7.5s;
}

figure #plane3 {
    transform: translateX(140px) translateY(-50px);
}

figure #plane3 use {
    animation-delay: 1.25s;
    animation-duration: 14s;
}

figure #bike1 {
    transform: translateX(50px) translateY(190px);
}

figure #bike1 use {
    animation-duration: 28s;
}

@keyframes spin {
    from {
        transform: translateX(-300px);
    }

    to {
        transform: translateX(0px);
    }
}

@keyframes orbit {
    from {
        transform: rotate(0deg) translateX(-160px);
    }

    to {
        transform: rotate(360deg) translateX(-160px);
    }
}

.center{
    text-align: center;
}

.mb-1{
    margin-bottom: 1rem;
}
.mb-2{
    margin-bottom: 2rem;
}
.mb-3{
    margin-bottom: 3rem;
}

.mt-1{
    margin-top: 1rem;
}
.mt-2{
    margin-top: 2rem;
}
.mt-3{
    margin-top: 3rem;
}

span.italic{
    font-style: italic;
    font-weight: normal;
}

/* XYZ Logo Animation Styles */
:root {
    --size: min(5vw, 35px);
}

.wrap {
    border-top: 1px solid var(--grey);
    padding-top: 1rem;
    display: grid;
    place-items: center;
    /* cursor: pointer; */
    user-select: none;
    /* -webkit-tap-highlight-color: transparent; */
    margin: 1rem auto;
    width: 100%;
    max-width: 750px;
    /* background: #fff;
      box-shadow: 0 10px 40px var(--shadow);
      border-radius: 20px 20px 0 0;
      padding: 1.5rem 1rem; */
}

.xyz-logo {
    width: var(--size);
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.xyz-logo:hover {
    transform: scale(1.05);
}