/* ═══════════════════════════════════════════════════
   C2C Parcel Locker – Design System
   Color palette: Navy #1a2e5a · Green #3aab47 · Light-green bg #f0faf1
   ═══════════════════════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f5f5;
    color: #1a2e5a;
    min-height: 100vh;
}

/* ── Global AJAX Loader ─────────────────────────── */
.global-ajax-loader {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
}

.global-ajax-loader.is-visible {
    display: flex;
}

.global-ajax-loader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(1px);
}

.global-ajax-loader-content {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.global-ajax-loader-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #c8e6cb;
    border-top-color: #3aab47;
    border-radius: 50%;
    animation: global-ajax-loader-spin 0.7s linear infinite;
}

@keyframes global-ajax-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Page wrapper ────────────────────────────────── */
.page-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: #f0faf1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .page-wrapper::-webkit-scrollbar {
        display: none;
    }

.card-container {
    width: 100%;
    max-width: 700px;
}

    .card-container.card-wide {
        max-width: 900px;
    }

/* ── Main card ───────────────────────────────────── */
.landing-card,
.step-card {
    background: #edf9ee;
    border-radius: 20px;
    padding: 1rem 2.5rem;
    box-shadow: 0 4px 32px rgba(0,0,0,0.07);
    text-align: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .step-card::-webkit-scrollbar {
        display: none;
    }

/* ── Landing page ────────────────────────────────── */
.landing-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a2e5a;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.landing-description {
    font-size: 1.05rem;
    color: #3aab47;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 2.5rem;
}

.landing-logo-topleft {
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
}

.landing-logo-img {
    max-width: 130px;
    height: auto;
    display: block;
}

.landing-desc-primary {
    font-weight: 700;
    font-size: 0.97rem;
    color: #1a2e5a;
    margin-bottom: 0.35rem;
}

.landing-desc-secondary {
    font-size: 0.88rem;
    color: #555e6e;
    line-height: 1.55;
    margin: 0;
}
[dir="rtl"] .landing-logo-topleft {
    left: unset;
    right: 1.5rem;
}

[dir="rtl"] .landing-description {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* ── Buttons ─────────────────────────────────────── */
.btn-primary {
    display: inline-block;
    background: #3aab47 !important;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px !important;
    padding: 0.85rem 2.5rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s, transform 0.12s;
}

    .btn-primary:hover {
        background: #2e9239;
        transform: translateY(-1px);
    }

    .btn-primary:disabled,
    .btn-primary.loading {
        background: #7ecb87;
        cursor: not-allowed;
        transform: none;
        pointer-events: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-primary.btn-lg {
    padding: 1rem 3.5rem;
    font-size: 1.2rem;
}

.btn-primary.btn-full {
    width: 100%;
    text-align: center;
}

@media print {
    /* Hide everything by default */
    body * {
        visibility: hidden;
    }

    /* Show only the confirmation card */
    .step-card.confirmation-card,
    .step-card.confirmation-card * {
        visibility: visible;
    }

    /* Position it at the top of the page */
    .step-card.confirmation-card {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        box-shadow: none;
        border: none;
    }

    /* Hide the action buttons in the printed PDF */
    .directions-btn,
    .btn-outline,
    .location-actions {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .btn-primary {
        font-size: 1rem;
        padding: 0.8rem 2rem;
    }

        .btn-primary.btn-lg {
            padding: 0.9rem 2.5rem;
            font-size: 1.1rem;
        }
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: #3aab47;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid #3aab47;
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s;
}

    .btn-outline:hover {
        background: #3aab47;
        color: #fff;
    }

    .btn-outline.btn-full {
        width: 100%;
        text-align: center;
    }

.mt-4 {
    margin-top: 1.5rem;
}

/* ── Stepper ─────────────────────────────────────── */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

a.step {
    text-decoration: none;
    cursor: pointer;
}

    a.step:hover .step-label {
        text-decoration: underline;
    }

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #c8e6cb;
    border: 2px solid #c8e6cb;
    display: inline-block;
}

    .step-dot.active {
        background: #3aab47;
        border-color: #3aab47;
    }

    .step-dot.done {
        background: #3aab47;
        border-color: #3aab47;
    }

.step-label {
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
}

.step.active .step-label {
    color: #1a2e5a;
    font-weight: 700;
}

.step.done .step-label {
    color: #3aab47;
}

.step-arrow {
    color: #3aab47;
    font-size: 1.3rem;
    line-height: 1;
}

/* ── Section titles ──────────────────────────────── */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2e5a;
    margin-bottom: 0.4rem;
}

.section-sub {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* ── Map ─────────────────────────────────────────── */
#map {
    height: 380px;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    margin-top: 1rem;
    border: 2px solid #c8e6cb;
}

.map-marker {
    font-size: 28px;
    cursor: pointer;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* ── Station Dialog ──────────────────────────────── */
.dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

    .dialog-overlay.hidden {
        display: none;
    }

.dialog-box {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 12px 48px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .dialog-box {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .dialog-box {
        width: 100%;
        margin: 0.5rem;
        padding: 1rem;
        max-height: 95vh;
        max-width: 95vw;
    }
}

.dialog-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
}

.station-info {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.station-info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    overflow: visible;   
}
.station-info:last-of-type .station-info-row {
    align-items: flex-start;
}

.station-info:last-of-type .info-icon {
    padding-top: 8px;
}
@media (max-width: 480px) {
    .station-info {
        margin-bottom: 1rem;
    }

    .station-info-row {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0.8rem;
        align-items: start;
        margin-bottom: 0.8rem;
    }

        .station-info-row .info-icon {
            justify-self: center;
        }

            .station-info-row .info-icon img {
                width: 32px !important;
            }

                .station-info-row .info-icon img[src*="box.png"] {
                    width: 40px !important;
                    position: static !important;
                    bottom: auto !important;
                    margin-right: 0 !important;
                }
}

.info-icon {
    font-size: 1.2rem;
}

.station-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1a2e5a;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    flex: 1;
}

@media (max-width: 768px) {
    .station-name {
        font-size: 1.1rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .station-name {
        font-size: 1rem;
        font-weight: 600;
        color: #1a2e5a;
        text-align: left;
    }
}

.station-hours {
    font-size: 0.9rem;
    color: #666;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    flex: 1;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .station-hours {
        font-size: 0.9rem;
        color: #666;
        text-align: left;
    }
}

.locker-sizes {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.locker-size-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.locker-size-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a2e5a;
}

.locker-size-count {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3aab47;
}

.locker-size-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .locker-size-icon svg {
        width: 100%;
        height: 100%;
    }

.locker-size-dim {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
}

.btn-choose-location {
    width: 100%;
    background: #3aab47;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    padding: 0.9rem;
    cursor: pointer;
    transition: background 0.18s;
}

    .btn-choose-location:hover {
        background: #2e9239;
    }

@media (max-width: 480px) {
    .btn-choose-location {
        font-size: 0.95rem;
        padding: 0.8rem;
        margin-top: 1.5rem;
        border-radius: 10px;
    }
}

.location-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}

    .location-actions .directions-btn {
        flex: 1;
        text-align: center;
    }
/* ── Locker container ─────────────────────────────── */
    .locker-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.locker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.locker-label {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
    color: #1a2e5a;
}

.locker-count {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.locker-image {
    margin-bottom: 5px;
}

.locker-dimensions {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .locker-container {
        padding: 15px 10px;
        gap: 15px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .locker-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 12px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 12px;
        margin-top: 10px;
        border: 1px solid #e9ecef;
    }

    .locker-item {
        background: white;
        padding: 15px 10px;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        border: 1px solid #e9ecef;
        transition: transform 0.2s, box-shadow 0.2s;
    }

        .locker-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.12);
        }

    .locker-label {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 6px;
        color: #1a2e5a;
    }

    .locker-count {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .locker-image img {
        width: 40px !important;
        height: 50px !important;
        object-fit: contain;
    }

    .locker-dimensions {
        font-size: 10px;
        margin-top: 6px;
        line-height: 1.3;
        color: #666;
    }
}

/* ── Forms ───────────────────────────────────────── */
.step-card {
    text-align: left;
}

.form-section-title {
    text-align: start;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2e5a;
    margin: 1.5rem 0 1rem;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

@media (max-width: 580px) {
    .contact-row {
        grid-template-columns: 1fr;
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 580px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

    .form-group label {
        text-align: start;
        font-size: 0.9rem;
        font-weight: 600;
        color: #1a2e5a;
    }

/* ── Unified form input height ───────────────────── */
.form-input {
    border: 2px solid #c8e6cb;
    border-radius: 10px;
    padding: 0 1rem;
    height: 44px;
    font-size: 0.95rem;
    color: #1a2e5a;
    background: #fff;
    transition: border-color 0.15s;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    width: 100%;
}

    .form-input:focus {
        border-color: #3aab47;
    }

/* ── Mobile number row ───────────────────────────── */
.mobile-input-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    height: 44px;
}

.mobile-input-group {
    display: flex;
    align-items: center;
    border: 2px solid #c8e6cb;
    border-radius: 10px;
    padding: 0 10px;
    background: #fff;
    flex: 1;
    height: 44px;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

    .mobile-input-group:focus-within {
        border-color: #3aab47;
    }

.country-flag img {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    margin-right: 6px;
    flex-shrink: 0;
}

.country-code {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a2e5a;
    white-space: nowrap;
    margin-right: 6px;
    border-right: 1px solid #c8e6cb;
    padding-right: 8px;
    flex-shrink: 0;
}

.mobile-input {
    border: none !important;
    outline: none;
    flex: 1;
    min-width: 0;
    padding: 0 8px;
    font-size: 0.95rem;
    background: transparent;
    height: 100%;
    box-sizing: border-box;
    color: #1a2e5a;
    font-family: inherit;
}

    .mobile-input:focus {
        border: none;
    }

.btn-get-otp {
    background: #1a2e5a;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    height: 28px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s;
    flex-shrink: 0;
    align-self: center;
}

    .btn-get-otp:hover {
        background: #0f1d3a;
    }

.pickup-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.3rem;
}

.mobile-row {
    display: flex;
    gap: 0.7rem;
    align-items: stretch;
}

    .mobile-row .form-input {
        flex: 1;
    }

/* ── OTP ─────────────────────────────────────────── */
.otp-section {
    margin: 0.5rem 0 0.8rem;
}

    .otp-section label {
        font-size: 0.9rem;
        font-weight: 600;
        color: #1a2e5a;
        margin-bottom: 0.5rem;
        display: block;
    }

.otp-input {
    width: 100%;
    letter-spacing: 0.2rem;
    font-size: 1rem;
}

.otp-row {
    display: flex;
    gap: 0.7rem;
    align-items: stretch;
    margin-top: 0.3rem;
}

.otp-msg {
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

    .otp-msg.success {
        color: #3aab47;
    }

    .otp-msg.error {
        color: #e53e3e;
    }

.verified-badge {
    background: #e6f9e8;
    color: #3aab47;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

/* ── Checkbox ────────────────────────────────────── */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1.5rem 0 1rem;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.92rem;
    color: #1a2e5a;
    cursor: pointer;
    font-weight: 500;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3aab47;
    cursor: pointer;
}

.field-error {
    color: #e53e3e;
    font-size: 0.82rem;
}

.hidden {
    display: none !important;
}

/* ── Package step ────────────────────────────────── */
.pkg-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin: 1.5rem 0;
    overflow: visible;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .pkg-options {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem 0;
    }
}

@media (max-width: 580px) {
    .pkg-options {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

.pkg-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    overflow: visible; 
    position: relative;
}

    .pkg-option:hover {
        border-color: #3aab47;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(58,171,71,0.15);
    }

    .pkg-option:has(#sizeOptions.open) {
        z-index: 100;
    }

@media (max-width: 768px) {
    .pkg-option {
        flex-direction: row;
        text-align: left;
        padding: 1rem;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .pkg-option {
        padding: 0.8rem;
        gap: 0.8rem;
    }
}

.pkg-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .pkg-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .pkg-icon {
        font-size: 1.8rem;
    }
}

.pkg-icon img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .pkg-icon img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .pkg-icon img {
        width: 40px;
        height: 40px;
    }
}

.pkg-select-wrap {
    width: 100%;
    flex: 1;
    position: relative; 
}

@media (max-width: 768px) {
    .pkg-select-wrap {
        text-align: left;
    }
}

.pkg-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    display: block;
    margin-bottom: 0.3rem;
    text-align: center;
}

@media (max-width: 768px) {
    .pkg-label {
        text-align: left;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .pkg-label {
        font-size: 0.85rem;
    }
}
#sizeOptions {
    display: none;
    position: absolute;
    background: #fff;
    border: 2px solid #c8e6cb;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    z-index: 9999;
    width: 100%;
    margin-top: 4px;
    overflow: hidden;
    top: 100%; 
    left: 0;
}

    #sizeOptions.open {
        display: block;
    }

.custom-size-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f0f0f0;
}

    .custom-size-option:last-child {
        border-bottom: none;
    }

    .custom-size-option:hover {
        background: #f0faf1;
    }

    .custom-size-option.selected {
        background: #f0faf1;
    }

.option-size-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a2e5a;
}

.option-size-dim {
    font-size: 11px;
    color: #999;
}
#sizeDropdown span {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a2e5a;
}

#typeOptions, #durationOptions {
    display: none;
    position: absolute;
    background: #fff;
    border: 2px solid #c8e6cb;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    z-index: 9999;
    width: 100%;
    margin-top: 4px;
    overflow: hidden;
    top: 100%;
    left: 0;
}
    #typeOptions.open, #durationOptions.open {
        display: block;
    }

.pkg-option:has(#typeOptions.open) {
    z-index: 100;
}

.pkg-option:has(#durationOptions.open) {
    z-index: 100;
}
.pkg-select {
    width: 100%;
    border: 2px solid #1a2e5a;
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a2e5a;
    appearance: none;
    cursor: pointer;
    outline: none;
    font-family: inherit;
    transition: border-color 0.3s ease;
}
.direction-ltr {
    direction: ltr !important;
}
.direction-rtl {
    direction: rtl !important;
}
.height-100 {
    height: 100% !important;
}

[dir="rtl"] .pkg-select {
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233aab47' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0.9rem center;
}
[dir="ltr"] .pkg-select {
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233aab47' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
}
.text-align-left {
    text-align: left !important;
}
.text-align-right {
    text-align: right !important;
}
.pkg-select:focus {
    border-color: #3aab47;
    box-shadow: 0 0 0 3px rgba(58,171,71,0.1);
}

@media (max-width: 480px) {
    .pkg-select {
        padding: 0.6rem 0.7rem;
        font-size: 0.9rem;
    }
}

.price-row {
    margin: 0.5rem 0 1rem;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #c8e6cb;
}

@media (max-width: 480px) {
    .price-row {
        padding: 0.8rem;
        margin: 1rem 0;
    }
}

.price-icon {
    font-size: 1rem;
    color: #1a2e5a;
}

.price-value {
    font-size: 2rem;
    font-weight: 800;
    color: #1a2e5a;
}

.price-label {
    font-size: 0.9rem;
    color: #666;
}

.price-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #3aab47;
}

@media (max-width: 480px) {
    .price-total {
        font-size: 1.1rem;
    }
}

.terms-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 1.2rem 0 0.2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

@media (max-width: 480px) {
    .terms-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.8rem;
        text-align: left;
    }

        .terms-row input[type="checkbox"] {
            align-self: flex-start;
        }
}

.terms-label {
    font-size: 0.95rem;
    color: #444;
    cursor: pointer;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .terms-label {
        font-size: 0.9rem;
    }
}

.terms-link {
    color: #3aab47;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .terms-link:hover {
        text-decoration: underline;
        color: #2e9239;
    }

/* ── Payment page ────────────────────────────────── */
.payment-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.payment-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a2e5a;
    letter-spacing: -0.5px;
}

.payment-lang {
    font-size: 0.88rem;
    color: #555;
    cursor: pointer;
}

.payment-divider {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin-bottom: 1.2rem;
}

.shipment-summary {
    background: linear-gradient(135deg, #c8d8e8, #d8e8f5);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.shipment-row {
    font-size: 0.92rem;
    color: #1a2e5a;
    margin-bottom: 0.3rem;
}

.shipment-amount {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a2e5a;
    text-align: right;
    margin-top: 0.6rem;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s;
    font-size: 0.95rem;
    color: #1a2e5a;
}

    .payment-method.selected,
    .payment-method:hover {
        border-color: #3aab47;
        background: #f0faf1;
    }

    .payment-method input[type="radio"] {
        accent-color: #3aab47;
    }

.pm-logo {
    height: 22px;
    object-fit: contain;
}

.apple-pay-icon {
    background: #000;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ── Confirmation page ───────────────────────────── */
.confirmation-card {
    text-align: center;
}

.confirm-icon {
    font-size: 3.5rem;
    margin-bottom: 0.8rem;
}

.confirm-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a2e5a;
    margin-bottom: 0.3rem;
}

.confirm-sub {
    color: #3aab47;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.confirm-grid {
    background: #fff;
    border-radius: 12px;
    border: 2px solid #c8e6cb;
    overflow: hidden;
    text-align: left;
    margin-bottom: 1.5rem;
}

.confirm-row {
    display: flex;
    padding: 0.75rem 1.2rem;
    border-bottom: 1px solid #e8f5e9;
    gap: 1rem;
}

    .confirm-row:last-child {
        border-bottom: none;
    }

.confirm-key {
    font-weight: bold;
    color: #000;
    font-size: 0.9rem;
    min-width: 150px;
    flex-shrink: 0;
}

.confirm-val {
    color: #1a2e5a;
    font-size: 0.9rem;
}

.confirm-price {
    font-weight: 700;
    font-size: 1rem;
    color: #3aab47;
}

.directions-btn {
    display: inline-block;
    background: #fff;
    color: #3aab47;
    border: 2px solid #3aab47;
    border-radius: 10px;
    padding: 0.7rem 2rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.18s;
    margin-bottom: 0.5rem;
}

    .directions-btn:hover {
        background: #3aab47;
        color: #fff;
    }

.pkg-input {
    width: 100%;
    border: 2px solid #1a2e5a;
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: #1a2e5a;
    background: #fff;
    outline: none;
    font-family: inherit;
    margin-top: 0.5rem;
    box-sizing: border-box; /* ← fixes width overflow */
    display: block; /* ← ensures proper block layout */
    height: auto; /* ← overrides any inherited height */
}

    .pkg-input:focus {
        border-color: #3aab47;
        box-shadow: 0 0 0 3px rgba(58,171,71,0.1);
    }

    .pkg-input::placeholder {
        font-weight: 400;
        color: #999;
        font-size: 0.85rem;
    }

/* ── Toast Notifications ─────────────────────────── */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-left: 4px solid #3aab47;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .toast.show {
        transform: translateX(0);
        opacity: 1;
    }

    .toast.error {
        border-left-color: #e53e3e;
    }

    .toast.success {
        border-left-color: #3aab47;
    }

    .toast.warning {
        border-left-color: #f59e0b;
    }

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #3aab47;
}

.toast.error .toast-icon {
    color: #e53e3e;
}

.toast.warning .toast-icon {
    color: #f59e0b;
}

.toast-content {
    flex: 1;
    font-size: 14px;
    color: #1a2e5a;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

    .toast-close:hover {
        color: #666;
    }

@media (max-width: 480px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }
}

/* ── Location Page ───────────────────────────────── */
body.location-page {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    body.location-page::-webkit-scrollbar {
        display: none;
    }

/* City Tabs */
.city-tabs-container {
    display: flex;
    gap: 3px;
    margin-bottom: 15px;
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .city-tabs-container::-webkit-scrollbar {
        display: none;
    }

.city-tab {
    padding: 5px 6px;
    border: 2px solid #c8e6cb;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #1a2e5a;
    white-space: nowrap;
    min-width: 70px;
    text-align: center;
    flex-shrink: 0;
}

    .city-tab:hover {
        background: #f0faf1;
        border-color: #3aab47;
        transform: translateY(-1px);
    }

    .city-tab.active {
        background: #3aab47;
        color: white;
        border-color: #3aab47;
        box-shadow: 0 2px 8px rgba(58,171,71,0.3);
    }

/* Map Container */
.map-container {
    position: relative;
    margin: 20px 0;
}

    .map-container #map {
        height: 450px;
        width: 100%;
        border-radius: 14px;
        overflow: hidden;
        border: 2px solid #c8e6cb;
    }

/* Search Box */
.map-search-container {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 50%; /* adjust width as needed */
}

.map-search-box {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    outline: none;
    font-family: 'Inter', sans-serif;
    background: white;
}

.map-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: #666;
}

/* ── Responsive: Tablet ──────────────────────────── */
@media (max-width: 768px) {
    .city-tabs-container {
        gap: 2px;
        margin-bottom: 12px;
    }

    .city-tab {
        padding: 4px 5px;
        font-size: 9px;
        min-width: 40px;
    }

    .map-container #map {
        height: 400px;
        border-radius: 12px;
    }

    .map-search-container {
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
    }

    .map-search-box {
        padding: 10px 40px 10px 12px;
        font-size: 13px;
        border-radius: 6px;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }

    .section-sub {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .station-info-row {
        margin-bottom: 1rem;
    }  
}

/* ── Responsive: Mobile ──────────────────────────── */
@media (max-width: 480px) {
    .city-tabs-container {
        gap: 2px;
        margin-bottom: 10px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .city-tab {
        padding: 4px 5px;
        font-size: 8px;
        min-width: 35px;
    }

    .map-container #map {
        height: 350px;
        border-radius: 10px;
        margin: 15px 0;
    }

    .map-search-container {
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 70%;
    }

    .map-search-box {
        padding: 8px 35px 8px 10px;
        font-size: 12px;
        border-radius: 6px;
    }

    .map-search-icon {
        right: 12px;
        font-size: 14px;
    }

    .section-title {
        font-size: 1.2rem;
        text-align: center;
    }

    .section-sub {
        font-size: 0.85rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .step-card {
        padding: 1rem 1.5rem;
    }

    .stepper {
        gap: 0.3rem;
        margin-bottom: 1.5rem;
    }

    .step-label {
        font-size: 0.8rem;
    }

    .step-arrow {
        font-size: 1.1rem;
    }
}

/* ── Responsive: Extra Small ─────────────────────── */
@media (max-width: 360px) {
    .city-tab {
        padding: 3px 4px;
        font-size: 7px;
        min-width: 30px;
    }

    .map-container #map {
        height: 300px;
    }

    .map-search-box {
        padding: 6px 30px 6px 8px;
        font-size: 11px;
    }

    .step-card {
        padding: 1.5rem 1rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .section-sub {
        font-size: 0.8rem;
    }
}

/* Version footer */
.app-version {
    position: fixed;
    bottom: 0;
    right: 0;
    font-size: 0.75rem;
    color: #999;
    padding: 0.25rem 0.5rem;
    pointer-events: none;
    z-index: 1;
}
