/* ============================================================
   BOOKINGS PAGE
   ============================================================ */
.bookings-page {
    --brand: #f35525;
    --brand-dark: #d43f15;
    --ink: #1e1e1e;
    --muted: #6b7280;
    --line: #eaeaea;

    background: #fafafa;
    padding: 40px 0 60px;
    font-family: "Poppins", sans-serif;
    min-height: 100vh;
}

/* ============ PAGE HEAD ============ */
.bookings-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 30px;
}
.bookings-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.3px;
    color: var(--brand);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.bookings-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}
.bookings-subtitle {
    font-size: 13.5px;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

/* ============ LIST ============ */
.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

/* ============ BOOKING CARD ============ */
.booking-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.25s ease;
}
.booking-card:hover {
    border-color: rgba(243, 85, 37, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Card head */
.booking-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #fff5f1 0%, #ffffff 100%);
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}
.booking-card-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.booking-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(243, 85, 37, 0.28);
}
.booking-card-icon i {
    color: #fff !important;
    font-size: 18px;
}
.booking-card-id {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 3px 0;
    line-height: 1.3;
}
.booking-card-id span {
    color: var(--brand);
}
.booking-card-date {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.booking-card-date i {
    font-size: 11px;
    color: var(--muted) !important;
}

/* Status pill */
.booking-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #fff !important;
    background: #6b7280;
    flex-shrink: 0;
}
.booking-status-pill i {
    font-size: 6px;
    color: #fff !important;
}
/* Status variants — will be applied via $booking->badge_class */
.booking-status-pill.bg-success,
.booking-status-pill.badge-success {
    background: linear-gradient(135deg, #22c55e, #15803d) !important;
}
.booking-status-pill.bg-warning,
.booking-status-pill.badge-warning {
    background: linear-gradient(135deg, #f59e0b, #b45309) !important;
}
.booking-status-pill.bg-danger,
.booking-status-pill.badge-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
}
.booking-status-pill.bg-info,
.booking-status-pill.badge-info {
    background: linear-gradient(135deg, #0ea5e9, #0369a1) !important;
}
.booking-status-pill.bg-primary,
.booking-status-pill.badge-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
}
.booking-status-pill.bg-secondary,
.booking-status-pill.badge-secondary {
    background: linear-gradient(135deg, #6b7280, #374151) !important;
}
.booking-status-pill.bg-dark,
.booking-status-pill.badge-dark {
    background: linear-gradient(135deg, #1e1e1e, #111) !important;
}

/* Card body */
.booking-card-body {
    padding: 20px 22px;
}
.booking-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
}
.booking-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}
.booking-info-wide {
    grid-column: 1 / -1;
}
.booking-info-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.booking-info-label i {
    color: var(--brand) !important;
    font-size: 11px;
}
.booking-info-value {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.55;
    word-break: break-word;
}
.booking-info-code {
    font-family: "Courier New", monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand) !important;
    letter-spacing: 0.5px;
    background: rgba(243, 85, 37, 0.08);
    padding: 3px 10px;
    border-radius: 8px;
    display: inline-block;
    width: fit-content;
}
.booking-info-total {
    grid-column: 1 / -1;
}
.booking-info-price {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--brand) !important;
    letter-spacing: -0.01em;
}

/* Card foot */
.booking-card-foot {
    padding: 14px 22px;
    background: #fafafa;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
}
.booking-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 22px;
    background: var(--brand);
    color: #fff !important;
    border: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(243, 85, 37, 0.25);
}
.booking-view-btn i {
    color: #fff !important;
    font-size: 12px;
}
.booking-view-btn:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(243, 85, 37, 0.4);
}

/* ============ EMPTY STATE ============ */
.bookings-empty {
    text-align: center;
    max-width: 500px;
    margin: 40px auto;
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: 16px;
    padding: 50px 30px;
}
.bookings-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        rgba(243, 85, 37, 0.1),
        rgba(243, 85, 37, 0.05)
    );
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 18px;
}
.bookings-empty-icon i {
    color: var(--brand) !important;
    font-size: 32px;
}
.bookings-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 8px 0;
}
.bookings-empty-text {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.65;
    margin: 0 0 22px 0;
}
.bookings-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 24px;
    background: var(--brand);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(243, 85, 37, 0.28);
}
.bookings-empty-cta i {
    color: #fff !important;
    font-size: 12px;
}
.bookings-empty-cta:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(243, 85, 37, 0.4);
}

/* ============================================================
   BOOKING DETAILS MODAL
   ============================================================ */
.booking-modal {
    border-radius: 16px;
    border: none;
    overflow: hidden;
    font-family: "Poppins", sans-serif;
}
.booking-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fff5f1 0%, #fff 100%);
    border-bottom: 1px solid var(--line);
}
.booking-modal-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.booking-modal-head-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(243, 85, 37, 0.28);
}
.booking-modal-head-icon i {
    color: #fff !important;
    font-size: 18px;
}
.booking-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    line-height: 1.2;
}
.booking-modal-sub {
    font-size: 11.5px;
    color: var(--muted);
    margin: 2px 0 0 0;
}
.booking-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.booking-modal-close i {
    color: var(--ink) !important;
    font-size: 14px;
}
.booking-modal-close:hover {
    background: #fee2e2;
    border-color: #fecaca;
}
.booking-modal-close:hover i {
    color: #dc2626 !important;
}

.booking-modal-body {
    padding: 22px 24px 26px;
    max-height: calc(100vh - 50px);
    overflow-y: auto;
}

/* Loading */
.booking-modal-loading {
    text-align: center;
    padding: 40px 20px;
}
.booking-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid #f3f4f6;
    border-top-color: var(--brand);
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: bookingSpin 0.7s linear infinite;
}
@keyframes bookingSpin {
    to {
        transform: rotate(360deg);
    }
}
.booking-modal-loading p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

/* Section */
.booking-modal-section {
    margin-bottom: 22px;
}
.booking-modal-section:last-child {
    margin-bottom: 0;
}

.booking-modal-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--line);
}
.booking-modal-section-title i {
    color: var(--brand) !important;
    font-size: 12.5px;
}

/* Overview grid */
.booking-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 20px;
}
.booking-overview-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.booking-overview-label {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.booking-overview-value {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.5;
    word-break: break-word;
}
.booking-modal-status {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #fff !important;
    background: #6b7280;
}
.booking-modal-status.bg-success,
.booking-modal-status.badge-success {
    background: linear-gradient(135deg, #22c55e, #15803d) !important;
}
.booking-modal-status.bg-warning,
.booking-modal-status.badge-warning {
    background: linear-gradient(135deg, #f59e0b, #b45309) !important;
}
.booking-modal-status.bg-danger,
.booking-modal-status.badge-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
}
.booking-modal-status.bg-info,
.booking-modal-status.badge-info {
    background: linear-gradient(135deg, #0ea5e9, #0369a1) !important;
}
.booking-modal-status.bg-primary,
.booking-modal-status.badge-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
}

/* Payment grid */
.booking-payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.booking-payment-item {
    text-align: center;
    padding: 14px 10px;
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.booking-payment-item.booking-payment-final {
    background: linear-gradient(
        135deg,
        rgba(243, 85, 37, 0.08),
        rgba(243, 85, 37, 0.03)
    );
    border-color: rgba(243, 85, 37, 0.25);
}
.booking-payment-label {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}
.booking-payment-value {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}
.booking-payment-save {
    color: #059669 !important;
}
.booking-payment-final .booking-payment-value {
    color: var(--brand) !important;
    font-size: 17px;
}

/* Special requests */
.booking-requests {
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
}
.booking-requests-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}
.booking-requests-label i {
    color: var(--brand) !important;
    font-size: 11px;
}
.booking-requests-text {
    font-size: 13px;
    color: var(--ink);
    line-height: 1.55;
    margin: 0;
}

/* Services list */
.booking-services-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.booking-service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.2s ease;
}
.booking-service-card:hover {
    border-color: rgba(243, 85, 37, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.booking-service-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.booking-service-name i {
    color: var(--brand) !important;
    font-size: 12px;
}
.booking-service-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 12.5px;
    color: var(--muted);
}
.booking-service-prices strong {
    color: var(--ink);
    font-weight: 600;
}
.booking-service-prices .save-price {
    color: #059669;
    font-weight: 700;
}

/* Address + map */
.booking-address-text {
    font-size: 13.5px;
    color: var(--ink);
    line-height: 1.6;
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 0 0 12px 0;
}
.booking-map-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: #f3f4f6;
}
.booking-map-wrap iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767.98px) {
    .bookings-page {
        padding: 24px 0 40px;
    }
    .bookings-title {
        font-size: 22px;
    }
    .bookings-subtitle {
        font-size: 12.5px;
    }

    .booking-card-head {
        padding: 14px 16px;
        gap: 10px;
    }
    .booking-card-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .booking-card-icon i {
        font-size: 16px;
    }
    .booking-card-id {
        font-size: 14px;
    }
    .booking-card-date {
        font-size: 11.5px;
    }
    .booking-status-pill {
        font-size: 10.5px;
        padding: 5px 11px;
    }

    .booking-card-body {
        padding: 16px;
    }
    .booking-info-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .booking-info-value {
        font-size: 13px;
    }
    .booking-info-price {
        font-size: 16px !important;
    }

    .booking-card-foot {
        padding: 12px 16px;
    }
    .booking-view-btn {
        padding: 9px 16px;
        font-size: 12.5px;
        width: 100%;
        justify-content: center;
    }

    /* Modal */
    .booking-modal {
        border-radius: 0;
    }
    .booking-modal-head {
        padding: 16px 18px;
    }
    .booking-modal-head-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .booking-modal-head-icon i {
        font-size: 16px;
    }
    .booking-modal-title {
        font-size: 15px;
    }

    .booking-modal-body {
        padding: 18px;
    }

    .booking-overview-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .booking-overview-value {
        font-size: 13px;
    }

    .booking-payment-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .booking-payment-item {
        padding: 12px;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .booking-payment-label {
        margin-bottom: 0;
    }
    .booking-payment-value {
        font-size: 14px;
    }
    .booking-payment-final .booking-payment-value {
        font-size: 15px;
    }

    .booking-service-card {
        padding: 12px 14px;
    }
    .booking-service-name {
        font-size: 13px;
    }
    .booking-service-prices {
        font-size: 12px;
    }

    .booking-map-wrap iframe {
        height: 220px;
    }
}

@media (max-width: 400px) {
    .bookings-title {
        font-size: 20px;
    }
    .booking-card-id {
        font-size: 13px;
    }
    .booking-info-value {
        font-size: 12.5px;
    }
    .booking-info-price {
        font-size: 15px !important;
    }
}

/* ============================================================
   ADDRESS MODAL — Design only
   ============================================================ */
.address-modal {
    --brand: #f35525;
    --brand-dark: #d43f15;
    --ink: #1e1e1e;
    --muted: #6b7280;
    --line: #eaeaea;
}

.address-modal .modal-content {
    border-radius: 16px;
    border: none;
    overflow: hidden;
    font-family: "Poppins", sans-serif;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

/* Ensure the whole dialog can scroll on small screens */
.address-modal .modal-dialog {
    max-width: 900px;
}

/* ============ HEADER ============ */
.address-modal .address-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #fff5f1 0%, #ffffff 100%);
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 3;
}

.address-modal-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.address-modal-head-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(243, 85, 37, 0.28);
}

.address-modal-head-icon i {
    color: #fff !important;
    font-size: 18px;
}

.address-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    line-height: 1.2;
}

.address-modal-sub {
    font-size: 11.5px;
    color: var(--muted);
    margin: 2px 0 0 0;
}

.address-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.address-modal-close i {
    color: var(--ink) !important;
    font-size: 14px;
}

.address-modal-close:hover {
    background: #fee2e2;
    border-color: #fecaca;
}

.address-modal-close:hover i {
    color: #dc2626 !important;
}

/* ============ BODY (SCROLLABLE) ============ */
.address-modal .address-modal-body {
    padding: 22px;
    background: #fafafa;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

/* Custom scrollbar */
.address-modal .address-modal-body::-webkit-scrollbar {
    width: 8px;
}

.address-modal .address-modal-body::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.address-modal .address-modal-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.address-modal .address-modal-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ============ ADDRESS LIST ============ */
.address-modal .address-list-row {
    margin-left: -8px;
    margin-right: -8px;
    margin-bottom: 20px;
}

/* ============ FORM ============ */
.address-modal .address-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px;
}

.address-modal .address-row {
    margin-bottom: 14px;
}

.address-modal .address-row:last-of-type {
    margin-bottom: 0;
}

.address-modal .address-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.address-modal .address-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0;
    letter-spacing: 0.1px;
}

.address-modal .address-label i {
    color: var(--brand) !important;
    font-size: 11px;
}

.address-modal .address-input {
    width: 100%;
    font-family: "Poppins", sans-serif;
    font-size: 13.5px;
    color: var(--ink);
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 14px;
    line-height: 1.4;
    outline: none;
    transition: all 0.2s ease;
    height: 44px;
    box-shadow: none !important;
}

.address-modal .address-input::placeholder {
    color: #9ca3af;
}

.address-modal .address-input:focus {
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(243, 85, 37, 0.1) !important;
}

/* Select */
.address-modal .address-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 38px;
    cursor: pointer;
}

/* Hint + inline add */
.address-modal .address-hint {
    font-size: 11.5px;
    color: var(--muted);
    margin: 3px 0 0 0;
}

.address-modal .address-link {
    color: var(--brand) !important;
    font-weight: 600;
    text-decoration: none !important;
}

.address-modal .address-link:hover {
    text-decoration: underline !important;
}

.address-modal .address-inline-add {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.address-modal .address-inline-add .address-input {
    flex: 1;
    height: 40px;
    padding: 8px 12px;
    font-size: 13px;
}

.address-modal .address-inline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    height: 40px;
    border-radius: 10px;
    background: var(--brand);
    color: #fff !important;
    border: none;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.address-modal .address-inline-btn:hover {
    background: var(--brand-dark);
}

/* Toggle switch */
.address-modal .address-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
    user-select: none;
}

.address-modal .address-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.address-modal .address-toggle-slider {
    width: 42px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    position: relative;
    transition: background 0.25s ease;
    flex-shrink: 0;
}

.address-modal .address-toggle-slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease;
}

.address-modal .address-toggle input:checked + .address-toggle-slider {
    background: var(--brand);
}

.address-modal .address-toggle input:checked + .address-toggle-slider::after {
    transform: translateX(18px);
}

.address-modal .address-toggle-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
}

/* Location button */
.address-modal .address-location-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 20px;
    border-radius: 22px;
    background: transparent;
    color: var(--brand) !important;
    border: 1.5px dashed rgba(243, 85, 37, 0.5);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
    margin-top: 14px;
    width: 100%;
}

.address-modal .address-location-btn i {
    color: var(--brand) !important;
    font-size: 13px;
}

.address-modal .address-location-btn:hover {
    background: rgba(243, 85, 37, 0.06);
    border-color: var(--brand);
    border-style: solid;
}

/* Map */
.address-modal .address-map-wrap {
    margin-top: 14px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: #f3f4f6;
}

.address-modal .address-map-wrap iframe {
    display: block;
    width: 100%;
    border: 0;
}

/* ============ FOOTER ============ */
.address-modal .address-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px;
    background: #fff;
    border-top: 1px solid var(--line);
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 3;
}

.address-modal .address-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 22px;
    border-radius: 24px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1.5px solid transparent;
    white-space: nowrap;
}

.address-modal .address-btn i {
    font-size: 12px;
}

.address-modal .address-btn-outline {
    background: transparent;
    color: var(--ink) !important;
    border-color: var(--line);
}

.address-modal .address-btn-outline i {
    color: var(--ink) !important;
}

.address-modal .address-btn-outline:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.address-modal .address-btn-primary {
    background: var(--brand);
    color: #fff !important;
    border-color: var(--brand);
    box-shadow: 0 4px 14px rgba(243, 85, 37, 0.28);
}

.address-modal .address-btn-primary i {
    color: #fff !important;
}

.address-modal .address-btn-primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(243, 85, 37, 0.4);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767.98px) {
    .address-modal .modal-dialog {
        margin: 0;
        max-width: 100%;
        min-height: 100vh;
        max-height: 100vh;
    }

    .address-modal .modal-content {
        border-radius: 0;
        min-height: 100vh;
        max-height: 100vh;
    }

    .address-modal .address-modal-header {
        padding: 14px 16px;
    }

    .address-modal-head-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .address-modal-head-icon i {
        font-size: 16px;
    }

    .address-modal-title {
        font-size: 15px;
    }

    .address-modal .address-modal-body {
        padding: 16px;
    }

    .address-modal .address-form {
        padding: 16px;
    }

    .address-modal .address-row {
        margin-bottom: 12px;
    }

    .address-modal .address-input {
        font-size: 13px;
        height: 42px;
    }

    .address-modal .address-location-btn {
        padding: 10px 16px;
        font-size: 12.5px;
    }

    .address-modal .address-modal-footer {
        padding: 12px 16px;
        gap: 8px;
    }

    .address-modal .address-btn {
        flex: 1;
        padding: 11px 14px;
        font-size: 12.5px;
    }
}

@media (max-width: 400px) {
    .address-modal-title {
        font-size: 14px;
    }

    .address-modal .address-label {
        font-size: 11.5px;
    }

    .address-modal .address-input {
        font-size: 12.5px;
        height: 40px;
    }

    .address-modal .address-toggle-text {
        font-size: 12.5px;
    }
}


/* ============================================================
   SELECT2 — Themed to match .address-modal .address-input
   ============================================================ */

/* ---------- The wrapper (replaces the native select) ---------- */
.select2-container {
    width: 100% !important;
    font-family: "Poppins", sans-serif;
}

/* ---------- Closed state ---------- */
.select2-container--default .select2-selection--single {
    height: 44px !important;
    background: #f9fafb !important;
    border: 1px solid #eaeaea !important;
    border-radius: 10px !important;
    padding: 0 14px !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 13.5px !important;
    color: #1e1e1e !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Hover */
.select2-container--default .select2-selection--single:hover {
    border-color: #d1d5db !important;
}

/* Focus / Open state — brand orange ring */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    background: #ffffff !important;
    border-color: #f35525 !important;
    box-shadow: 0 0 0 3px rgba(243, 85, 37, 0.10) !important;
}

/* Rendered text inside the closed box */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1e1e1e !important;
    line-height: 42px !important;
    padding: 0 !important;
    padding-right: 24px !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
}

/* Placeholder */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af !important;
    font-weight: 400 !important;
}

/* Chevron arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
    right: 12px !important;
    top: 0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent !important;
    border-width: 5px 4px 0 4px !important;
    margin-left: -4px !important;
    margin-top: -2px !important;
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #f35525 transparent !important;
    border-width: 0 4px 5px 4px !important;
}

/* Clear (X) button */
.select2-container--default .select2-selection--single .select2-selection__clear {
    color: #9ca3af !important;
    font-size: 15px !important;
    margin-right: 8px !important;
    cursor: pointer !important;
}
.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #dc2626 !important;
}

/* ---------- Dropdown panel ---------- */
.select2-container--default .select2-dropdown {
    background: #ffffff !important;
    border: 1px solid #eaeaea !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14) !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 13.5px !important;
    overflow: hidden !important;
    z-index: 999999 !important;
}

/* Search box at the top of dropdown */
.select2-container--default .select2-search--dropdown {
    padding: 10px !important;
    background: #fff !important;
    border-bottom: 1px solid #eaeaea !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    height: 38px !important;
    border: 1px solid #eaeaea !important;
    border-radius: 8px !important;
    padding: 0 12px !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 13px !important;
    color: #1e1e1e !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field::placeholder {
    color: #9ca3af !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #f35525 !important;
    box-shadow: 0 0 0 3px rgba(243, 85, 37, 0.10) !important;
}

/* Options list */
.select2-container--default .select2-results__options {
    max-height: 240px !important;
    padding: 6px !important;
    list-style: none !important;
    margin: 0 !important;
}
.select2-container--default .select2-results__option {
    padding: 9px 12px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    color: #1e1e1e !important;
    font-weight: 500 !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
    margin-bottom: 2px !important;
}

/* Hover highlight */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #f35525 !important;
    color: #ffffff !important;
}

/* Currently selected option */
.select2-container--default .select2-results__option[aria-selected="true"] {
    background: rgba(243, 85, 37, 0.08) !important;
    color: #f35525 !important;
    font-weight: 600 !important;
}
/* Selected + highlighted (hovering over the selected one) */
.select2-container--default .select2-results__option--highlighted[aria-selected="true"] {
    background: #f35525 !important;
    color: #ffffff !important;
}

/* "No results found" */
.select2-container--default .select2-results__message {
    padding: 12px !important;
    font-size: 12.5px !important;
    color: #6b7280 !important;
    text-align: center !important;
}

/* Loading dots */
.select2-container--default .select2-results__option--load-more,
.select2-container--default .select2-results__option.loading-results {
    text-align: center !important;
    color: #6b7280 !important;
    font-size: 12.5px !important;
}

/* Option group headers (optgroups) */
.select2-container--default .select2-results__group {
    padding: 8px 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
}

/* ---------- Multi-select (if you ever use it) ---------- */
.select2-container--default .select2-selection--multiple {
    min-height: 44px !important;
    background: #f9fafb !important;
    border: 1px solid #eaeaea !important;
    border-radius: 10px !important;
    padding: 4px 8px !important;
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
    background: #fff !important;
    border-color: #f35525 !important;
    box-shadow: 0 0 0 3px rgba(243, 85, 37, 0.10) !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: rgba(243, 85, 37, 0.1) !important;
    color: #f35525 !important;
    border: 1px solid rgba(243, 85, 37, 0.25) !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    padding: 3px 8px !important;
    margin: 3px 4px 3px 0 !important;
}

/* ============================================================
   RESPONSIVE — Mobile tweaks
   ============================================================ */
@media (max-width: 767.98px) {
    .select2-container--default .select2-selection--single {
        height: 42px !important;
        font-size: 13px !important;
        padding: 0 12px !important;
    }
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 40px !important;
        font-size: 13px !important;
    }
    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 40px !important;
    }
    .select2-container--default .select2-search--dropdown .select2-search__field {
        height: 36px !important;
        font-size: 12.5px !important;
    }
    .select2-container--default .select2-results__option {
        font-size: 12.5px !important;
        padding: 8px 11px !important;
    }
}

@media (max-width: 400px) {
    .select2-container--default .select2-selection--single {
        height: 40px !important;
        font-size: 12.5px !important;
    }
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 38px !important;
        font-size: 12.5px !important;
    }
    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 38px !important;
    }
}

/* ============================================================
   DROPDOWN OUTSIDE MODAL — z-index safety
   ============================================================ */
.select2-container--open {
    z-index: 1000000 !important;
}
body > .select2-container {
    z-index: 1000000 !important;
}




/* ============================================================
   AUTH MODAL
   ============================================================ */
.auth-modal {
    --brand: #f35525;
    --brand-dark: #d43f15;
    --ink: #1e1e1e;
    --muted: #6b7280;
    --line: #eaeaea;
}

.auth-modal .modal-dialog {
    max-width: 480px;
}

.auth-modal .modal-content {
    border-radius: 18px;
    border: none;
    overflow: hidden;
    font-family: "Poppins", sans-serif;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

/* ============ HEADER ============ */
.auth-modal .auth-modal-header {
    padding: 18px 22px;
    background: linear-gradient(135deg, #fff5f1 0%, #ffffff 100%);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.auth-modal .auth-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    line-height: 1.2;
}
.auth-modal .auth-modal-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--brand);
    border-radius: 2px;
    margin-right: 10px;
    vertical-align: middle;
}
.auth-modal .auth-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.auth-modal .auth-modal-close i {
    color: var(--ink) !important;
    font-size: 13px;
}
.auth-modal .auth-modal-close:hover {
    background: #fee2e2;
    border-color: #fecaca;
}
.auth-modal .auth-modal-close:hover i {
    color: #dc2626 !important;
}

/* ============ BODY ============ */
.auth-modal .auth-modal-body {
    padding: 24px 22px;
    background: #ffffff;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}
.auth-modal .auth-modal-body::-webkit-scrollbar { width: 6px; }
.auth-modal .auth-modal-body::-webkit-scrollbar-track { background: transparent; }
.auth-modal .auth-modal-body::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 3px;
}
.auth-modal .auth-modal-body::-webkit-scrollbar-thumb:hover { background: #d1d5db; }

/* ============ FORM FIELDS ============ */
.auth-modal .form-group label,
.auth-modal .form-label,
.auth-modal label:not(.form-check-label) {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
    display: block;
}

.auth-modal .form-control {
    width: 100%;
    font-family: "Poppins", sans-serif !important;
    font-size: 13.5px !important;
    color: var(--ink) !important;
    background: #f9fafb !important;
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
    padding: 11px 14px !important;
    line-height: 1.4 !important;
    height: 44px !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}
.auth-modal .form-control::placeholder {
    color: #9ca3af !important;
}
.auth-modal .form-control:focus {
    background: #fff !important;
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px rgba(243, 85, 37, 0.10) !important;
}

/* OTP input — monospace */
.auth-modal #otp,
.auth-modal #forgotOtp {
    font-family: "Courier New", monospace !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    text-align: center !important;
}

/* ============ CHECKBOXES ============ */
.auth-modal .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 0;
    margin-bottom: 8px;
}
.auth-modal .form-check-input {
    width: 18px;
    height: 18px;
    margin: 0 !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 5px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    float: none !important;
}
.auth-modal .form-check-input[type="radio"] {
    border-radius: 50% !important;
}
.auth-modal .form-check-input:checked {
    background-color: var(--brand) !important;
    border-color: var(--brand) !important;
}
.auth-modal .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(243, 85, 37, 0.15) !important;
    outline: none !important;
}
.auth-modal .form-check-label {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
}
.auth-modal .form-check-label a {
    color: var(--brand) !important;
    font-weight: 600;
    text-decoration: none !important;
}
.auth-modal .form-check-label a:hover {
    text-decoration: underline !important;
}

/* ============ BUTTONS ============ */
.auth-modal .btn,
.auth-modal button[type="submit"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: "Poppins", sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    padding: 11px 22px !important;
    border-radius: 24px !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.22s ease !important;
    line-height: 1.2 !important;
    letter-spacing: 0.2px;
    width: auto;
}

/* Primary buttons */
.auth-modal .btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark)) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(243, 85, 37, 0.28) !important;
}
.auth-modal .btn-primary:hover,
.auth-modal .btn-primary:focus {
    background: var(--brand-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(243, 85, 37, 0.4) !important;
    color: #fff !important;
}
.auth-modal .btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Make submit buttons full width inside forms */
.auth-modal form > .btn-primary,
.auth-modal form > button[type="submit"] {
    width: 100% !important;
    padding: 12px 22px !important;
    font-size: 14px !important;
}

/* Secondary button */
.auth-modal .btn-secondary {
    background: transparent !important;
    color: var(--ink) !important;
    border: 1.5px solid var(--line) !important;
    box-shadow: none !important;
}
.auth-modal .btn-secondary:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: var(--ink) !important;
}
.auth-modal .btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Reset old Bootstrap button colors */
.auth-modal .btn-dark {
    background: #1e1e1e !important;
    color: #fff !important;
    border: none !important;
}

/* ============ LINKS / PARAGRAPHS ============ */
.auth-modal p {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 8px;
    line-height: 1.5;
}
.auth-modal p.mt-3 {
    margin-top: 14px !important;
    text-align: center;
    font-size: 13px;
}
.auth-modal a {
    color: var(--brand) !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.auth-modal a:hover {
    color: var(--brand-dark) !important;
    text-decoration: underline !important;
}

/* Resend OTP link */
.auth-modal #resendOtp,
.auth-modal #resendOtpForForgot {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px !important;
    color: var(--brand) !important;
    font-weight: 600 !important;
    margin-top: 8px;
    text-decoration: none !important;
}
.auth-modal #resendOtp[disabled],
.auth-modal #resendOtpForForgot[disabled] {
    opacity: 0.5;
    pointer-events: none;
}

/* ============ OTP HELPER TEXT ============ */
.auth-modal #otpSection label span {
    color: var(--muted) !important;
    font-size: 11.5px !important;
    font-weight: 400 !important;
    margin-left: 4px;
}

/* ============ FORGOT PASSWORD BUTTON ROW ============ */
.auth-modal #otpForgotPasswordSection {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.auth-modal #otpForgotPasswordSection #submitOtpForForgot,
.auth-modal #otpForgotPasswordSection #resendOtpForForgot {
    width: 100% !important;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 575.98px) {
    .auth-modal .modal-dialog {
        margin: 0;
        max-width: 100%;
        min-height: 100vh;
        max-height: 100vh;
    }
    .auth-modal .modal-content {
        border-radius: 0;
        min-height: 100vh;
        max-height: 100vh;
    }
    .auth-modal .auth-modal-header {
        padding: 14px 18px;
    }
    .auth-modal .auth-modal-title {
        font-size: 15px;
    }
    .auth-modal .auth-modal-title::before {
        height: 14px;
    }
    .auth-modal .auth-modal-body {
        padding: 18px 16px;
    }
    .auth-modal .form-control {
        font-size: 13px !important;
        height: 42px !important;
    }
    .auth-modal #otp,
    .auth-modal #forgotOtp {
        font-size: 14px !important;
        letter-spacing: 2px !important;
    }
    .auth-modal .btn {
        font-size: 13px !important;
        padding: 10px 20px !important;
    }
}
