/* css/main.css */
:root {
    --rlx-red: #D32011;
    --rlx-ink: #111111;
    --rlx-dark: #0A0B0D;
    --rlx-light: #F5F5F5;
    --rlx-border: #E6E6E6;
    --rlx-accent: #6A6F76;

    /* Map legacy tokens to new palette */
    --baltic-forest: var(--rlx-ink);
    --baltic-pine: var(--rlx-ink);
    --baltic-sea: var(--rlx-accent);
    --baltic-amber: var(--rlx-red);
    --baltic-sand: var(--rlx-light);
    --baltic-foam: var(--rlx-light);
    --baltic-ink: var(--rlx-ink);
    --baltic-cloud: var(--rlx-border);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 30% 10%, rgba(80, 0, 0, 0.45), transparent 65%),
        radial-gradient(circle at 70% 90%, rgba(40, 0, 0, 0.35), transparent 60%),
        #050507;
    color: var(--baltic-ink);
    min-height: 100vh; /* Ensure body takes full viewport height */
    display: flex;
    flex-direction: column;
    /* Removed padding-top from body; will be handled by JS on main content */
}

.baltic-hero {
    background: #FFFFFF;
    border: 1px solid var(--rlx-border);
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
    border-radius: 28px;
}

.baltic-panel {
    background: #FFFFFF;
    border: 1px solid var(--rlx-border);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
    backdrop-filter: blur(4px);
}

.baltic-card {
    background: #FFFFFF;
    border: 1px solid var(--rlx-border);
    box-shadow: 0 10px 24px rgba(0,0,0,0.05);
    border-radius: 22px;
    padding: 1.35rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.metric-card {
    background: #FFFFFF;
    border: 1px solid var(--rlx-border);
    box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}

.baltic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
    border-color: #d1d1d1;
}

.eyebrow {
    letter-spacing: 0.45em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.cta-primary {
    background: linear-gradient(90deg, #ff2c2c, #ff5454);
    color: #FFFFFF;
    box-shadow: 0 0 22px rgba(255, 56, 56, 0.45);
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cta-primary:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(255, 56, 56, 0.48);
}

.cta-primary:active {
    transform: translateY(0);
    filter: brightness(0.98);
}

.cta-ghost {
    border: 1px solid var(--rlx-red);
    color: var(--rlx-red);
    background: #FFFFFF;
    border-radius: 999px;
    font-weight: 600;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: var(--rlx-light);
    color: var(--rlx-ink);
    border: 1px solid var(--rlx-border);
    font-size: 0.85rem;
}

.baltic-chip {
    display: none;
}

.inline-link {
    color: var(--baltic-forest);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.inline-link:hover,
.inline-link:focus {
    color: var(--baltic-sea);
}

.internal-bg {
    background:
        radial-gradient(circle at 50% 0, rgba(120, 0, 0, 0.22), transparent 70%),
        radial-gradient(circle at 50% 100%, rgba(60, 0, 0, 0.18), transparent 75%),
        #050507;
    min-height: 100vh;
}

.internal-page {
    padding-top: 72px;
    padding-bottom: 72px;
}

@media (max-width: 768px) {
    .internal-page {
        padding-top: 48px;
        padding-bottom: 56px;
    }
}

/* Updated shared modal + language styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-overlay.hidden,
.modal.hidden {
    display: none !important;
}

.modal {
    max-width: 520px;
    width: 100%;
    background: #ffffff;
    border-radius: 28px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #0b1f24;
}

.modal-close {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #0b1f24;
}

.modal-close:hover {
    background: rgba(15, 23, 42, 0.04);
}

.modal-close:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.6);
}

.modal-body {
    padding: 14px 22px 18px;
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-body--language {
    padding: 14px 18px 18px;
}

.language-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #f9fafb;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    color: #0b1f24;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.language-option:last-child {
    margin-bottom: 0;
}

.language-option:hover {
    background: #f3f4f6;
    border-color: rgba(15, 23, 42, 0.12);
}

.language-option.is-current {
    background: #ffffff;
    border-color: #ff4b4b;
    box-shadow:
        0 0 0 1px rgba(255, 75, 75, 0.7),
        0 0 14px rgba(255, 75, 75, 0.35);
}

.language-flag {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    overflow: hidden;
}

.language-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.language-text {
    flex: 1;
    display: flex;
    align-items: center;
}

.language-name {
    font-size: 14px;
    font-weight: 500;
}

.checkout-submit {
    margin-top: 22px;
}

.checkout-submit button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(90deg, #ff2c2c, #ff5454);
    box-shadow: 0 0 22px rgba(255, 56, 56, 0.55);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.checkout-submit button:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 26px rgba(255, 56, 56, 0.7);
}

.checkout-submit button:active {
    transform: translateY(0);
    box-shadow: 0 0 16px rgba(255, 56, 56, 0.45);
}

.checkout-note {
    font-size: 13px;
    color: #4b5563;
}

@media (max-width: 480px) {
    .modal.modal--language {
        max-width: 360px;
        margin: 0 12px;
        border-radius: 24px;
    }

    .modal-header,
    .modal-body--language {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.internal-shell {
    background: #f5f5f7;
    min-height: 100vh;
}

.internal-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 64px 16px 72px;
}

@media (max-width: 768px) {
    .internal-main {
        padding-top: 48px;
        padding-bottom: 56px;
    }
}

.page-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 48px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.55),
        0 0 120px rgba(200, 0, 0, 0.05);
    color: #f5f6f8;
}

@media (max-width: 768px) {
    .page-card {
        padding: 28px 20px 32px;
        border-radius: 24px;
    }
}

.page-card h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #ffffff;
}

.page-card h2 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
    color: #ffffff;
}

.page-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #ffffff;
}

.page-card p,
.page-card li {
    font-size: 16px;
    line-height: 1.65;
    opacity: 0.95;
}

.page-card ul {
    padding-left: 1.4rem;
    margin-top: 8px;
    margin-bottom: 16px;
}

.page-card a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 500;
}

.page-card a:hover {
    color: #ff8585;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-card a:visited {
    color: #ff5a5a;
}

.page-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.page-card thead th {
    background: #111217;
    font-weight: 600;
    color: #f9fafb;
}

.page-card th,
.page-card td {
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.page-card tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

.page-card tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.04);
}

/* Homepage polish */
.home-main {
    background: #f5f5f7;
}

.home-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 16px;
}

@media (min-width: 1024px) {
    .home-section {
        padding-top: 64px;
        padding-bottom: 64px;
    }
}

.section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 48px 16px;
}

@media (min-width: 1024px) {
    .section {
        padding: 64px 16px;
    }
}

.card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.06),
        0 3px 8px rgba(0, 0, 0, 0.03);
}

.section-card {
    background: #ffffff;
    border-radius: 32px;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.03);
    padding: 32px 24px;
}

@media (min-width: 1024px) {
    .section-card {
        padding: 40px 40px;
    }
}

.card-lg {
    background: #ffffff;
    border-radius: 32px;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.07),
        0 4px 12px rgba(0, 0, 0, 0.03);
    padding: 32px 24px;
}

@media (min-width: 1024px) {
    .card-lg {
        padding: 40px 32px;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.benefit-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-card {
    background: #ffffff;
    border-radius: 28px;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.07),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    padding: 24px 24px 28px;
}

.search-input {
    border-radius: 999px;
    border: 1px solid #e4e4ea;
    padding: 12px 18px;
    background: #f9fafb;
}

.search-input:focus {
    outline: none;
    border-color: #ff4b4b;
    box-shadow: 0 0 0 1px #ff4b4b;
}

.faq-wrapper {
    background: #ffffff;
    border-radius: 32px;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.03);
    padding: 24px 20px 28px;
}

@media (min-width: 1024px) {
    .faq-wrapper {
        padding: 32px 28px 36px;
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 26px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(90deg, #ff2c2c, #ff5454);
    box-shadow: 0 0 18px rgba(255, 56, 56, 0.45);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 22px rgba(255, 56, 56, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 0 14px rgba(255, 56, 56, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 999px;
    border: 1px solid #ff4b4b;
    background: transparent;
    color: #ff4b4b;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 75, 75, 0.06);
}

.btn-secondary:active {
    background: rgba(255, 75, 75, 0.12);
}

/* Checkout form refinements */
.checkout-form .form-group {
    margin-bottom: 16px;
}

.checkout-form .form-group.payment-group {
    margin-top: 20px;
}

.checkout-form .submit-wrapper {
    margin-top: 24px;
}

.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form input[type="number"],
.checkout-form select {
    width: 100%;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    font-size: 14px;
    color: #111827;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.checkout-form input::placeholder,
.checkout-form select::placeholder {
    color: #9ca3af;
}

.checkout-form input:focus,
.checkout-form select:focus {
    outline: none;
    border-color: #ff4b4b;
    box-shadow: 0 0 0 1px #ff4b4b;
}

.checkout-form input[disabled],
.checkout-form select[disabled],
.checkout-form input[readonly] {
    opacity: 0.7;
    background: #f0f0f3;
    border-style: dashed;
}

.quantity {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.qty-btn {
    background: transparent;
    color: #ff4b4b;
    font-size: 18px;
    font-weight: 600;
    border: 1px solid #ff4b4b;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.qty-minus {
    border-radius: 10px 0 0 10px;
    border-right: none;
}

.qty-plus {
    border-radius: 0 10px 10px 0;
    border-left: none;
}

.qty-btn:hover {
    background: rgba(255, 75, 75, 0.06);
}

.qty-btn:focus {
    outline: none;
    box-shadow: 0 0 0 1px #ff4b4b;
}

.qty-btn svg {
    width: 14px;
    height: 14px;
    fill: #4a2a00;
}

.quantity input[type="number"] {
    border-left: none;
    border-right: none;
    text-align: center;
}
.payment-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.payment-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    font-size: 13px;
    color: #111827;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.payment-option input[type="radio"] {
    accent-color: #ff4b4b;
    margin: 0;
}

.payment-option.is-selected {
    background: #ffffff;
    border-color: #ff4b4b;
    box-shadow:
        0 0 0 1px rgba(255, 75, 75, 0.8),
        0 0 14px rgba(255, 75, 75, 0.35);
    font-weight: 600;
}

.payment-option.is-selected span {
    color: #111111;
}

@media (max-width: 768px) {
    .payment-options {
        grid-template-columns: 1fr;
    }
}

.checkout-form button.pay-btn {
    width: 100%;
    justify-content: center;
}

.page-card .text-\[\#0b1f24\],
.page-card .text-\[\#0b1f24\]:not(a) {
    color: #f5f6f8 !important;
}

.page-card .text-\[\#3c4a46\] {
    color: rgba(243, 244, 246, 0.9) !important;
}

.page-card .text-\[\#1f3c3f\] {
    color: rgba(234, 240, 244, 0.85) !important;
}

.pay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(90deg, #ff2c2c, #ff5454);
    box-shadow: 0 0 22px rgba(255, 56, 56, 0.45);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pay-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 28px rgba(255, 56, 56, 0.6);
}

.pay-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 18px rgba(255, 56, 56, 0.4);
}

.pay-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

.home-hero-wrapper {
    position: relative;
    padding-bottom: 40px;
}

.home-hero-gradient {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -40px;
    height: 80px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.18),
        rgba(245, 245, 247, 0) 70%
    );
    pointer-events: none;
}

.hero-shell {
    position: relative;
    max-width: 960px;
    margin: 40px auto 56px;
    padding: 40px;
    border-radius: 32px;
    background: radial-gradient(circle at 0% 0%, #141820 0%, #05070b 65%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 0 120px rgba(255, 0, 20, 0.06),
        0 32px 80px rgba(0, 0, 0, 0.75);
    overflow: hidden;
}

.hero-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.04), transparent 36%);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.hero-tags .chip {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f7f7fb;
    font-weight: 600;
}

.hero-benefits {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.hero-benefit-card {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    padding: 14px 16px;
    background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.03), transparent 65%);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.compat-band {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.7fr 1.3fr;
    gap: 0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.02);
}

.compat-info {
    background: #ffffff;
    padding: 22px 28px;
}

.compat-support {
    background: radial-gradient(circle at 0 0, #1b2434 0, #020309 70%);
    color: #f9fafb;
    padding: 22px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

/* Ensure email CTA remains legible on dark background */
.email-support-btn {
    color: #0b1f24;
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
}

.email-support-btn:hover {
    color: #0b1f24;
    text-decoration: none;
}

@media (max-width: 768px) {
    .compat-band {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }
}

@media (min-width: 768px) {
    .hero-shell {
        padding: 48px;
    }

    .hero-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hero-shell {
        margin: 28px auto 44px;
        padding: 30px 24px;
    }
}

@media (min-width: 1024px) {
    .baltic-chip {
        display: inline-flex;
    }
}

/* Hide default number input arrows (Chrome, Safari, Edge) */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Hide default number input arrows (Firefox) */
input[type="number"] {
  -moz-appearance: textfield;
}

#mainContentWrapper {
    flex-grow: 1; /* Allow content to expand and push footer down */
}

.checkout-page {
    background: #f5f5f7;
    min-height: 100vh;
}

.checkout-main {
    max-width: 920px;
    margin: 0 auto;
    padding: 72px 16px 80px;
}

@media (max-width: 768px) {
    .checkout-main {
        padding-top: 56px;
        padding-bottom: 64px;
    }
}

.checkout-outer-card {
    background: #ffffff;
    border-radius: 32px;
    box-shadow:
        0 22px 60px rgba(15, 23, 42, 0.12),
        0 4px 12px rgba(15, 23, 42, 0.04);
    padding: 32px 32px 36px;
}

@media (max-width: 768px) {
    .checkout-outer-card {
        padding: 24px 18px 28px;
        border-radius: 24px;
    }
}

.checkout-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
    color: #0b1f24;
}

.checkout-subtitle {
    font-size: 14px;
    color: #4b5563;
    text-align: center;
    margin-bottom: 18px;
}

.checkout-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.checkout-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    font-size: 12px;
    color: #111827;
}

.checkout-form-card {
    background: #f9fafb;
    border-radius: 24px;
    padding: 24px 22px 26px;
    border: 1px solid rgba(15, 23, 42, 0.04);
}

@media (max-width: 768px) {
    .checkout-form-card {
        padding: 18px 16px 22px;
        border-radius: 20px;
    }
}

.country-page {
    padding-top: 32px;
    padding-bottom: 32px;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

@media (max-width: 1024px) {
    .package-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .package-grid {
        grid-template-columns: 1fr;
    }
}

.card-container {
    display: grid;
    gap: 1rem;
    /* Space between cards */
    /* Responsive grid: 1 column on small screens, 2 on medium, 4 on large */
    grid-template-columns: repeat(1, minmax(0, 1fr));
    /* Mobile */
}

@media (min-width: 640px) {
    /* sm breakpoint */
    .card-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    /* lg breakpoint */
    .card-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.summary-card {
    background-color: #fff;
    border-radius: 0.75rem;
    /* rounded-xl */
    box-shadow: 0 12px 30px rgba(12, 40, 44, 0.12);
    /* shadow-md */
    padding: 1.5rem;
    /* p-6 */
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center content horizontally */
    justify-content: center;
    /* Center content vertically */
    text-align: center;
    height: 245px;
    /* Fixed height for summary cards, adjust as needed */
    text-decoration: none;
    color: inherit;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 30px rgba(12, 40, 44, 0.18);
}

.summary-card img {
    width: 60px;
    /* Larger logo */
    height: 60px;
    border-radius: 50%;
    /* Make logo round */
    margin-bottom: 0.75rem;
    object-fit: cover;
}

.summary-card i {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    border-radius: 50%;
    background-color: rgba(14, 111, 131, 0.12); /* Sea glass background */
    color: var(--baltic-sea); /* Sea icon */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.summary-card .country-name {
    font-size: 1.25rem;
    /* text-xl */
    font-weight: bold;
    color: var(--baltic-forest);
    margin-bottom: 0.5rem;
}

.summary-card .price {
    font-size: 1.25rem; /* text-xl */
    font-weight: 800; 
    color: var(--baltic-sea);
}

.category-heading {
    font-size: 1.875rem;        /* text-3xl */
    font-weight: 700;           /* font-bold */
    color: var(--baltic-forest);
    margin-bottom: 1rem;        /* mb-4 */
    text-align: center;
    margin-top: 5rem;
}

.no-packages-message {
    text-align: center;
    color: var(--baltic-sea);
    padding: 1rem;
}

/* Custom Search/Filter styles */
.search-container {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--baltic-foam);
    border-radius: 0.75rem;
    box-shadow: 0 14px 30px rgba(12, 40, 44, 0.08);
    border: 1px solid rgba(19, 84, 78, 0.1);
}

.search-input-group {
    position: relative;
    margin-bottom: 1rem;
    background: #ffffff;
    border: 1px solid rgba(14, 111, 131, 0.14);
    border-radius: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(14, 111, 131, 0.25);
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    background: #ffffff;
    color: var(--baltic-ink);
}

.search-input:focus {
    border-color: var(--baltic-sea);
    box-shadow: 0 0 0 4px rgba(14, 111, 131, 0.1);
}

.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid rgba(14, 111, 131, 0.18);
    border-radius: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 14px 30px rgba(12, 40, 44, 0.1);
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestions-list-item {
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestions-list-item:hover {
    background-color: rgba(229, 241, 236, 0.5);
}

.suggestions-list-item img {
    width: 20px;
    height: auto;
    border-radius: 3px;
}

.selected-countries-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    min-height: 2.5rem;
    /* Ensure space for tags */
    border: 1px solid rgba(14, 111, 131, 0.22);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.country-tag {
    background-color: rgba(106, 111, 118, 0.12); /* match FAQ hover tone */
    color: var(--baltic-forest);
    padding: 0.45rem 0.7rem;
    border-radius: 9999px;
    border: 1px solid rgba(106, 111, 118, 0.25);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.country-tag button {
    background: none;
    border: none;
    color: #0b1f24;
    font-weight: 700;
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
    font-size: 0.95rem;
}

/* Style for troubleshooting path display */
.debug-path {
    font-size: 0.7rem;
    color: #6b7280;
    word-break: break-all;
    margin-top: 0.5rem;
    text-align: center;
}

/* Navbar styles */
.navbar {
    background: rgba(4, 4, 6, 0.9) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.navbar-inner {
    width: 100%;
    max-width: 64rem; /* Align with hero container (Tailwind max-w-5xl) */
    padding-left: 1rem;
    padding-right: 1rem;
}

.navbar-logo {
    height: 60px;
    width: auto;
    display: block;
    max-height: 72px;
    object-fit: contain;
    padding-bottom: 4px;
    padding-top: 0px; /* Adjusted from 2px to 7px */
}

/* Desktop menu links */
/* Import fonts with broad language coverage (Latin + Cyrillic) */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700&display=swap&subset=latin,cyrillic');

.navbar-desktop-menu {
    display: flex;
    gap: 1.5rem;
    font-family: 'Manrope', 'Plus Jakarta Sans', sans-serif;
}

.navbar-desktop-menu a {
    color: rgba(255,255,255,0.85);
    font-weight: 600;         /* Keep bold look */
    text-decoration: none;    /* No underline */
    white-space: nowrap;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.navbar-desktop-menu a:hover,
.navbar-desktop-menu a:focus,
.navbar-desktop-menu a:active {
    color: var(--baltic-sea);    /* Match FAQ hover tone */
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    font-weight: 600;         /* Stay bold on hover */
    outline: none;
}

.navbar-mobile-menu {
    background: rgba(4, 4, 6, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    padding: 1rem 0;
    border-radius: 0 0 0.75rem 0.75rem;
    z-index: 40;
    transition: all 0.3s ease-in-out;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    /* display: flex;  needed to apply flex-direction */
}

.navbar-mobile-menu a {
    padding: 0.75rem 2rem;
    color: rgba(255,255,255,0.85);            /* Light gray/white for consistency */
    text-decoration: none;     /* No underline */
    display: block;
    text-align: center;
    font-weight: 600;          /* Match desktop weight */
    transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar-mobile-menu a:hover,
.navbar-mobile-menu a:focus,
.navbar-mobile-menu a:active {
    background-color: transparent; /* Remove the light bg on hover */
    color: var(--baltic-sea);                 /* Match FAQ hover tone */
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    outline: none;
}

/* Currency switcher pills */
.currency-pill {
    padding: 0.35rem 0.65rem;
    border-radius: 0.45rem;
    font-size: 0.75rem;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.08);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.currency-pill:hover {
    background: rgba(255,255,255,0.14);
}
.currency-pill.is-active {
    background: var(--rlx-red);
    border-color: var(--rlx-red);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

#mainNavbar .currency-disabled {
    opacity: 0.5;
    filter: grayscale(1);
    cursor: not-allowed;
}

#mainNavbar .currency-disabled .currency-pill {
    pointer-events: none;
    cursor: not-allowed;
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    box-shadow: none;
}

#mainNavbar .language-disabled {
    opacity: 0.5;
    filter: grayscale(1);
}

#mainNavbar .language-disabled #languageGlobeIcon {
    pointer-events: none;
    cursor: not-allowed;
    color: rgba(255,255,255,0.5);
}

#menuToggle i.fas.fa-bars {
    color: white;          /* White icon */
    font-size: 2em;        /* 2 times bigger */
    margin-right: 15px;    /* 15px margin from right */
}

.nav-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(6px);
    color: #ffffff;
}

.nav-chip #languageGlobeIcon {
    font-size: 1.25rem;
    color: #ffffff;
}

.nav-chip #languageGlobeIcon:hover {
    color: #e5e7eb;
}

.nav-chip .currency-pill {
    padding: 0.32rem 0.6rem;
    border-color: rgba(255,255,255,0.35);
    background: transparent;
}

.nav-chip .currency-pill:hover {
    background: rgba(255,255,255,0.16);
}

.price-accent {
    color: var(--baltic-sea);
}

.main-footer a:hover,
.main-footer a:focus {
    color: var(--baltic-sea);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}


@media (max-width: 768px) {
    .navbar .navbar-inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar-desktop-menu {
        display: none;
    }
}

@media (min-width: 768px) {
    .navbar-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 769px) {
    .navbar-mobile-menu {
        display: none !important;
    }
}

/* FAQ Section Styles */
.faq-section {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 18px 40px rgba(12, 40, 44, 0.12);
    padding: 2rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(14, 111, 131, 0.12);
}

.faq-question {
    font-weight: bold;
    color: var(--baltic-forest);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(14, 111, 131, 0.12);
}

.faq-question:hover {
    color: var(--baltic-sea);
}

.faq-answer {
  color: #3c4a46;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 0;
}

.faq-answer.open {
  padding: 0.5rem 0 1rem 0;
  /* max-height is handled by JS */
}

.faq-question .icon {
  transition: transform 0.3s;
}

.faq-question.active .icon {
  transform: rotate(180deg);
}

/* Contact Section Styles */
.contact-section {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 14px 30px rgba(12, 40, 44, 0.1);
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
    border: 1px solid rgba(14, 111, 131, 0.1);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--baltic-forest);
    font-weight: 500;
    transition: color 0.2s;
}

.contact-links a:hover {
    color: var(--rlx-red);
}

.contact-links i {
    font-size: 2rem;
    /* Larger icons */
    margin-bottom: 0.5rem;
}

/* Footer Styles */
.main-footer {
    background: linear-gradient(to top, #0a0a0e 0%, #050509 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 2rem 0 3rem;
    margin-top: 4rem;
    text-align: center;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.main-footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.main-footer a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.main-footer h4,
.main-footer li {
    color: #ffffff;
}

.main-footer a:hover {
    color: var(--baltic-sea);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}
.footer-contact-link {
    color: #ffffff;
}
.footer-contact-link:hover {
    background: #ffffff;
    color: #0b1f24 !important;
    border-color: #ffffff;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.package-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.06),
        0 3px 8px rgba(0, 0, 0, 0.03);
    padding: 18px 18px 20px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.package-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.10),
        0 4px 10px rgba(0, 0, 0, 0.04);
}

.card-header {
    font-size: 1.5rem;
    /* text-2xl base */
    font-weight: bold;
    /* font-bold */
    text-align: center;
    color: var(--baltic-forest);
    min-height: 80px;
    /* Keep minimum height to accommodate two lines */
    display: flex;
    flex-direction: column;
    /* Stack children vertically */
    align-items: center;
    /* Horizontally center contents */
    justify-content: center;
    /* Vertically center contents */
    overflow: hidden;
    /* Hide overflow if text is too long */
    padding-bottom: 0.5rem;
    /* Add some padding at the bottom for separation */
}

.card-header span {
    display: block;
    /* Ensures each span takes its own line */
    line-height: 1.2;
    /* Adjust line height for better spacing */
}

.card-header .text-2xl {
    margin-bottom: 0.25rem;
    /* Small space between the two lines of text in the header */
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-bottom: 0;
}

/* Specific styles for content within card-body to control alignment */
.card-body-content-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    /* Vertically center children */
    align-items: center;
    /* Horizontally center children */
    width: 100%;
    /* Take full width of parent */
}

.card-body p {
    margin-bottom: 0.5rem;
    color: #3c4a46;
}

.package-title {
    font-weight: 600;
    font-size: 15px;
    color: #0b1f24;
}

.package-meta {
    font-size: 13px;
    color: #4b5563;
}

.package-operator-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.package-operator-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    font-size: 12px;
    color: #374151;
    align-self: flex-start;
    width: auto;
}

.package-price {
    margin-top: 8px;
    font-weight: 700;
    font-size: 16px;
    color: #111827;
}

.info-block {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 18px 18px 16px;
    background: #ffffff;
    margin-bottom: 12px;
}

.info-block-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: #0b1f24;
}

.info-block-text {
    font-size: 14px;
    line-height: 1.6;
    color: #111827;
}

.doc-card {
    padding-top: 32px;
    padding-bottom: 32px;
}

.doc-card h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0b1f24;
}

.doc-card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
    color: #0b1f24;
}

.doc-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
    color: #0b1f24;
}

.doc-card p,
.doc-card li {
    font-size: 15px;
    line-height: 1.7;
    color: #111827;
}

.doc-card ul,
.doc-card ol {
    padding-left: 1.4rem;
    margin-top: 4px;
    margin-bottom: 12px;
}

.doc-card a {
    color: #ff4b4b;
    font-weight: 500;
    text-decoration: none;
}

.doc-card a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.card-footer {
    margin-top: 1rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--rlx-red);
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.operator-list {
    list-style: none;
    background-color: var(--rlx-light);
    border: 1px solid var(--rlx-border);
    border-radius: 0.5rem;      /* rounded-lg */
    padding: 1rem;              /* Add spacing inside */
    margin-top: 0.5rem;
    text-align: center;
    width: 100%;
}

.operator-list li {
    font-size: 0.875rem;
    color: var(--rlx-ink);
}

.non-hk-ip-note {
    background-color: rgba(211, 32, 17, 0.08);
    color: var(--rlx-ink);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    border: 1px solid rgba(211, 32, 17, 0.25);
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.load-more-btn {
    margin-top: 0.5rem;
}

.load-more-btn:hover {
    color: #ff4b4b;
}

.error-message {
    background-color: #fee2e2;
    /* red-100 */
    color: #ef4444;
    /* red-500 */
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #fca5a5;
    /* red-300 */
    text-align: center;
}

/* Modal Styles */
.countries-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.countries-modal {
    max-width: 520px;
    width: 100%;
    background: #ffffff;
    border-radius: 28px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.countries-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.countries-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #0b1f24;
}

.countries-modal-close {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #0b1f24;
}

.countries-modal-close:hover {
    background: rgba(15, 23, 42, 0.04);
}

.countries-modal-close:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.6);
}

.countries-modal-body {
    padding: 14px 22px 18px;
    max-height: min(420px, 70vh);
    overflow-y: auto;
}

.countries-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.country-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.country-row:last-child {
    border-bottom: none;
}

.country-flag {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    overflow: hidden;
}

.country-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country-text {
    flex: 1;
}

.country-name-line {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: baseline;
}

.country-name {
    font-weight: 500;
    font-size: 14px;
    color: #0b1f24;
}

.country-code {
    font-size: 13px;
    color: #6b7280;
}

.network-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-top: 4px;
}

.network-value {
    font-size: 13px;
    color: #374151;
}

@media (max-width: 480px) {
    .countries-modal {
        margin: 0 12px;
        border-radius: 24px;
    }

    .countries-modal-header,
    .countries-modal-body {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Form specific styling using Tailwind classes */
.form-group {
    margin-bottom: 1.5rem;
    /* Equivalent to mb-6 */
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    /* py-3 px-4 */
    font-size: 1rem;
    line-height: 1.5;
    color: var(--baltic-ink);
    /* text */
    background-color: #fff;
    /* bg-white */
    background-clip: padding-box;
    border: 1px solid rgba(14, 111, 131, 0.22);
    border-radius: 0.375rem;
    /* rounded-md */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: var(--baltic-ink);
    background-color: #fff;
    border-color: var(--baltic-sea);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(14, 111, 131, 0.18);
}

.btn-primary-custom {
    /* Custom class for submit button */
    background: linear-gradient(135deg, #f7b733, #f4a11a);
    color: #ffffff;
    /* text-white */
    padding: 0.75rem 1.5rem;
    /* py-3 px-6 */
    border-radius: 0.5rem;
    /* rounded-lg */
    font-weight: 600;
    /* font-semibold */
    transition: background-color 0.2s ease;
    width: 100%;
    /* w-full */
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #f8c24f, #f7b733);
}

input[type="radio"] {
    accent-color: var(--baltic-sea);
    /* Accent */
    width: 1.25rem;
    /* w-5 */
    height: 1.25rem;
    /* h-5 */
    margin-right: 0.5rem;
    /* mr-2 */
    vertical-align: middle;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    /* font-medium */
    color: #374151;
    /* gray-700 */
}

/* Floating shopping cart button */
.float-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #059669;
    /* emerald-600 */
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 999;
    transition: background-color 0.3s ease;
}

.float-button:hover {
    background-color: #047857;
    /* emerald-700 */
}

.float-button i {
    font-size: 28px;
    /* Adjusted size to fit 60px circle better */
    margin: 0;
    /* Remove original margins */
}

.package-directory {
    background-color: #ffffff;
}

.package-directory h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--baltic-forest);
    margin: 1.5rem 0 0.75rem 0;
}

.package-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
}

.package-directory-grid a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background-color: rgba(229, 241, 236, 0.6);
    color: var(--baltic-forest);
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.package-directory-grid a:hover {
    background-color: rgba(244, 161, 26, 0.18);
    color: var(--baltic-sea);
}
/* Content specific styling */
.content-section h1 {
    font-size: 2.25rem; /* close to text-4xl on payg */
    font-weight: 600; /* font-semibold to match payg */
    color: var(--baltic-ink);
    margin-bottom: 1rem; /* mb-4 */
    padding-top: 0;
}
.content-section h2 {
    font-size: 1.75rem; /* text-3xl */
    font-weight: 700; /* font-bold */
    color: var(--baltic-ink);
    margin-top: 2.5rem; /* mt-10 */
    margin-bottom: 1rem; /* mb-4 */
}
.content-section p, .content-section ul, .content-section ol {
    font-size: 1rem; /* text-base */
    line-height: 1.6; /* leading-relaxed */
    color: #3c4a46; /* muted Poland body text */
    margin-bottom: 1rem; /* mb-4 */
}
.content-section ul, .content-section ol {
    list-style-position: inside;
    padding-left: 1.5rem; /* pl-6 */
}
.content-section ul li {
    margin-bottom: 0.5rem; /* mb-2 */
}
.content-section strong {
    font-weight: 600; /* font-semibold */
    color: var(--baltic-ink);
}
.content-section a {
    color: var(--baltic-sea);
    text-decoration: none;
    transition: color 0.2s ease;
}
.content-section a:hover {
    color: var(--baltic-forest);
    text-decoration: underline;
}

.legal-panel {
    width: 100%;
    max-width: 100%; /* match PAYG full-width within container */
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem;
}

.legal-flow {
    max-width: 72ch;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .legal-panel {
        padding: 1.75rem;
    }
}

@media (min-width: 768px) {
    .legal-panel {
        padding: 2.5rem;
    }
}

@media (max-width: 640px) {
    .legal-panel {
        margin-left: 0;
        margin-right: 0;
        padding-left: 1.1rem;
        padding-right: 1.1rem;
    }
    .legal-flow {
        max-width: 100%;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}

@media (max-width: 640px) {
    .content-section h1 {
        font-size: 1.9rem;
        margin-bottom: 0.75rem;
    }
    .content-section h2 {
        font-size: 1.35rem;
        margin-top: 1.75rem;
        margin-bottom: 0.75rem;
    }
    .content-section p,
    .content-section ul,
    .content-section ol {
        font-size: 0.98rem;
        padding-left: 0.25rem;
        margin-bottom: 0.85rem;
        word-break: break-word;
    }
    .content-section ul,
    .content-section ol {
        padding-left: 1.1rem;
    }
}
