/* ============================================
       Voucher Book Order Page
       ============================================ */

    .voucher-page {
        background-color: #E8E1D9;
        padding: 60px 0;
        min-height: 70vh;
    }

    .voucher-page-title {
        font-size: 48px;
        line-height: 1;
        color: #18988B;
        font-family: "DarkerGrotesque-semibold";
        margin-bottom: 10px;
    }

    .voucher-page-subtitle {
        font-family: "Roboto-Regular";
        font-size: 16px;
        color: #4E4B44;
        margin-bottom: 40px;
    }

    .voucher-card {
        background: #E1D8CE;
        border-radius: 12px;
        padding: 40px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }

    /* --- Auth Prompt --- */
    .auth-prompt {
        background: #003057;
        border-radius: 10px;
        padding: 20px 24px;
        margin-bottom: 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }

    .auth-prompt p {
        color: rgba(255, 255, 255, 0.85);
        font-family: "Roboto-Regular";
        font-size: 14px;
        margin: 0;
    }

    .auth-prompt .auth-links {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .auth-prompt .auth-links a {
        display: inline-block;
        padding: 8px 20px;
        background-color: #18988B;
        color: #ffffff;
        font-size: 13px;
        font-weight: 600;
        border-radius: 20px;
        text-decoration: none;
        transition: all 0.3s ease-in-out;
    }

    .auth-prompt .auth-links a:hover {
        background-color: #147a70;
        color: #ffffff;
    }

    .auth-prompt .auth-links a.btn-outline-light {
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.4);
        color: #ffffff;
    }

    .auth-prompt .auth-links a.btn-outline-light:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: #ffffff;
    }

    /* --- Balance Box --- */
    .balance-box {
        background: #003057;
        border-radius: 10px;
        padding: 20px 24px;
        margin-bottom: 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .balance-box .balance-label {
        font-family: "Roboto-Regular";
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7);
        margin-bottom: 2px;
    }

    .balance-box .balance-amount {
        font-family: "DarkerGrotesque-bold";
        font-size: 32px;
        color: #ffffff;
        line-height: 1;
    }

    .balance-box .balance-currency {
        font-family: "Roboto-Regular";
        font-size: 14px;
        color: rgba(255, 255, 255, 0.6);
        margin-left: 4px;
    }

    /* --- Section Divider --- */
    .section-divider {
        font-family: "DarkerGrotesque-semibold";
        font-size: 18px;
        color: #003057;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid rgba(0, 48, 87, 0.15);
    }

    /* --- Full-width section spacing --- */
    .full-section {
        margin-bottom: 40px;
    }

    .full-section:last-child {
        margin-bottom: 0;
    }

    /* --- Form Labels --- */
    .voucher-card label.form-label-custom {
        font-family: "Roboto-Regular";
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #4E4B44;
        margin-bottom: 6px;
        display: block;
    }

    /* --- Form Controls --- */
    .voucher-card .form-control,
    .voucher-card .form-select {
        border: 1px solid rgba(0, 48, 87, 0.15);
        border-radius: 8px;
        padding: 10px 14px;
        font-size: 14px;
        font-family: "Roboto-Regular";
        color: #003057;
        background-color: #E8E1D9;
        transition: all 0.3s ease-in-out;
        height: 44px;
    }

    .voucher-card .form-control:focus,
    .voucher-card .form-select:focus {
        border-color: #18988B;
        box-shadow: 0 0 0 3px rgba(24, 152, 139, 0.15);
        background-color: #ffffff;
        outline: none;
    }

    .voucher-card .form-control::placeholder {
        color: #9e978d;
    }

    .voucher-card .form-control[readonly] {
        background-color: rgba(0, 48, 87, 0.04);
        cursor: default;
    }

    /* --- Donor Info Grid --- */
    .donor-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0 20px;
    }

    .donor-grid .span-3 {
        grid-column: span 3;
    }

    /* ============================================
       VOUCHER BOOK CARD DESIGN
       ============================================ */

    .voucher-book-col {
        margin-bottom: 36px;
    }

    .voucher-book-wrapper {
        position: relative;
        cursor: pointer;
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .voucher-book-wrapper:hover {
        transform: translateY(-8px);
    }

    /* --- Stack effect (2 vouchers behind) --- */
    .voucher-book-wrapper::before,
    .voucher-book-wrapper::after {
        content: '';
        position: absolute;
        left: 4px;
        right: 4px;
        top: 0;
        height: 100%;
        border-radius: 6px;
        background: #f5f0e8;
        z-index: 0;
        pointer-events: none;
    }

    .voucher-book-wrapper::before {
        bottom: -8px;
        top: auto;
        height: 100%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .voucher-book-wrapper::after {
        bottom: -16px;
        top: auto;
        height: 100%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    /* --- The actual voucher face --- */
    .voucher-face {
        position: relative;
        z-index: 1;
        background: #faf7f1;
        border-radius: 6px;
        padding: 20px 22px 16px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 48, 87, 0.06);
        overflow: hidden;
        transition: box-shadow 0.3s ease-in-out;
    }

    .voucher-book-wrapper:hover .voucher-face {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }

    /* --- Voucher top dashed line --- */
    .voucher-face::before {
        content: '';
        position: absolute;
        top: 42px;
        left: 0;
        right: 0;
        border-top: 1.5px dashed rgba(0, 48, 87, 0.15);
    }

    /* --- Voucher bottom dashed line --- */
    .voucher-face::after {
        content: '';
        position: absolute;
        bottom: 52px;
        left: 0;
        right: 0;
        border-top: 1.5px dashed rgba(0, 48, 87, 0.15);
    }

    /* --- Voucher header row --- */
    .voucher-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 10px;
    }

    .voucher-number {
        font-family: 'Courier New', Courier, monospace;
        font-size: 11px;
        color: #6A757C;
        letter-spacing: 0.5px;
    }

    .voucher-charity-label {
        text-align: right;
    }

    .voucher-charity-label .reg-text {
        font-family: "Roboto-Regular";
        font-size: 8px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #9e978d;
        display: block;
        line-height: 1.2;
    }

    .voucher-charity-label .reg-number {
        font-family: 'Courier New', Courier, monospace;
        font-size: 10px;
        color: #6A757C;
    }

    /* --- Voucher address --- */
    .voucher-address {
        font-family: "Roboto-Regular";
        font-size: 9px;
        color: #9e978d;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    /* --- Voucher body --- */
    .voucher-body {
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 80px;
        padding: 8px 0;
    }

    .voucher-pay-section {
        flex: 1;
        padding-right: 12px;
    }

    .voucher-pay-label {
        font-family: "Roboto-Regular";
        font-size: 12px;
        color: #003057;
        margin-bottom: 6px;
    }

    .voucher-amount-words {
        font-family: "Roboto-Regular";
        font-size: 13px;
        color: #4E4B44;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        line-height: 1.3;
    }

    /* --- Green amount box --- */
    .voucher-amount-box {
        background: #18988B;
        color: #ffffff;
        padding: 10px 18px;
        border-radius: 4px;
        text-align: center;
        min-width: 80px;
        box-shadow: 0 2px 8px rgba(24, 152, 139, 0.3);
        flex-shrink: 0;
    }

    .voucher-amount-box .amount-value {
        font-family: "DarkerGrotesque-bold";
        font-size: 26px;
        line-height: 1;
    }

    .voucher-amount-box .amount-currency {
        font-family: "Roboto-Regular";
        font-size: 10px;
        opacity: 0.8;
        margin-top: 2px;
    }

    /* --- Voucher footer --- */
    .voucher-footer {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        padding-top: 8px;
    }

    /* --- Barcode --- */
    .voucher-barcode {
        display: flex;
        align-items: flex-end;
        gap: 1px;
        height: 28px;
    }

    .voucher-barcode .bar {
        background: #003057;
        border-radius: 0.5px;
    }

    /* --- Signature line --- */
    .voucher-signature {
        text-align: right;
    }

    .voucher-signature .sig-line {
        width: 80px;
        height: 1px;
        background: rgba(0, 48, 87, 0.3);
        margin-bottom: 3px;
    }

    .voucher-signature .sig-label {
        font-family: "Roboto-Regular";
        font-size: 8px;
        color: #9e978d;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* --- Tevini brand mark --- */
    .voucher-brand {
        position: absolute;
        bottom: 8px;
        left: 22px;
        font-family: "DarkerGrotesque-bold";
        font-size: 10px;
        color: #18988B;
        letter-spacing: 2px;
        text-transform: uppercase;
        opacity: 0.5;
    }

    /* --- Add button overlay --- */
    .voucher-add-btn {
        position: absolute;
        bottom: -14px;
        right: 18px;
        z-index: 5;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        border: 3px solid #E1D8CE;
        background: #18988B;
        color: #ffffff;
        font-size: 22px;
        font-weight: 700;
        font-family: "DarkerGrotesque-bold";
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 3px 10px rgba(24, 152, 139, 0.3);
        line-height: 1;
    }

    .voucher-add-btn:hover {
        background: #147a70;
        transform: scale(1.15);
        box-shadow: 0 5px 18px rgba(24, 152, 139, 0.4);
    }

    .voucher-add-btn:active {
        transform: scale(1.05);
    }

    /* --- Voucher note tag below card --- */
    .voucher-note-tag {
        text-align: center;
        margin-top: 28px;
        font-family: "Roboto-Regular";
        font-size: 12px;
        color: #6A757C;
        line-height: 1.4;
    }

    .voucher-note-tag .note-count {
        font-weight: 600;
        color: #003057;
    }

    /* --- Blank cheque variant --- */
    .voucher-face.blank-cheque .voucher-amount-box {
        background: #003057;
        box-shadow: 0 2px 8px rgba(0, 48, 87, 0.3);
    }

    .voucher-face.blank-cheque .voucher-amount-box .amount-value {
        font-size: 11px;
        font-family: "Roboto-Regular";
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* ============================================
       BASKET TABLE
       ============================================ */

    .basket-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 6px;
    }

    .basket-table thead th {
        font-family: "Roboto-Regular";
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #6A757C;
        padding: 8px 12px;
        border: none;
    }

    .basket-table tbody td {
        background: #E8E1D9;
        padding: 12px;
        vertical-align: middle;
        border: none;
    }

    .basket-table tbody tr td:first-child {
        border-radius: 8px 0 0 8px;
    }

    .basket-table tbody tr td:last-child {
        border-radius: 0 8px 8px 0;
    }

    .basket-table .remove-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        border-radius: 6px;
        border: none;
        background: #d45273;
        color: #ffffff;
        font-size: 14px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease-in-out;
    }

    .basket-table .remove-btn:hover {
        background: #b33d57;
        transform: scale(1.1);
    }

    .basket-table .qty-input {
        width: 60px;
        text-align: center;
        padding: 8px;
        border: 1px solid rgba(0, 48, 87, 0.15);
        border-radius: 6px;
        background: #E1D8CE;
        font-family: "Roboto-Regular";
        font-size: 14px;
        color: #003057;
        height: 38px;
    }

    .basket-table .qty-input:focus {
        border-color: #18988B;
        outline: none;
        background: #ffffff;
    }

    .basket-table .basket-voucher-name {
        font-family: "DarkerGrotesque-bold";
        font-size: 14px;
        color: #003057;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .basket-table .basket-voucher-note {
        font-family: "Roboto-Regular";
        font-size: 12px;
        color: #6A757C;
        margin-top: 2px;
    }

    .voucher-badge {
        display: inline-block;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 3px 10px;
        border-radius: 20px;
        font-family: "Roboto-Regular";
    }

    .voucher-badge.prepaid {
        background-color: rgba(24, 152, 139, 0.12);
        color: #18988B;
    }

    .basket-empty {
        text-align: center;
        padding: 30px 20px;
        font-family: "Roboto-Regular";
        font-size: 14px;
        color: #9e978d;
    }

    /* ============================================
       DELIVERY
       ============================================ */

    .delivery-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .delivery-option {
        background: #E8E1D9;
        border-radius: 10px;
        padding: 18px;
        display: flex;
        align-items: flex-start;
        gap: 14px;
        cursor: pointer;
        transition: all 0.3s ease-in-out;
        border: 2px solid transparent;
    }

    .delivery-option:hover {
        border-color: rgba(24, 152, 139, 0.2);
    }

    .delivery-option.selected {
        border-color: #18988B;
        background: rgba(24, 152, 139, 0.06);
    }

    .delivery-option input[type="checkbox"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
        margin-top: 2px;
        accent-color: #18988B;
        cursor: pointer;
    }

    .delivery-option .delivery-title {
        font-family: "DarkerGrotesque-bold";
        font-size: 15px;
        color: #003057;
        margin-bottom: 2px;
    }

    .delivery-option .delivery-desc {
        font-family: "Roboto-Regular";
        font-size: 12px;
        color: #6A757C;
        line-height: 1.5;
    }

    .delivery-warning {
        display: none;
        background: rgba(212, 82, 115, 0.08);
        border: 1px solid rgba(212, 82, 115, 0.25);
        border-radius: 8px;
        padding: 10px 16px;
        margin-bottom: 14px;
        font-family: "Roboto-Regular";
        font-size: 13px;
        color: #b33d57;
    }

    .delivery-warning.show {
        display: block;
    }

    /* ============================================
       ORDER TOTAL BAR
       ============================================ */

    .order-total-bar {
        background: #003057;
        border-radius: 10px;
        padding: 20px 24px;
        margin-top: 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 16px;
    }

    .order-total-bar .address-info {
        font-family: "Roboto-Regular";
        font-size: 12px;
        color: rgba(255, 255, 255, 0.7);
        line-height: 1.6;
        flex: 1;
        min-width: 200px;
    }

    .order-total-bar .total-area {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .order-total-bar .total-label {
        font-family: "Roboto-Regular";
        font-size: 14px;
        color: rgba(255, 255, 255, 0.8);
    }

    .order-total-bar .total-input {
        width: 120px;
        text-align: center;
        padding: 10px;
        border: none;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
        font-family: "DarkerGrotesque-bold";
        font-size: 18px;
        height: 44px;
    }

    .order-total-bar .total-input:focus {
        outline: none;
    }

    .order-total-bar .total-input::placeholder {
        color: rgba(255, 255, 255, 0.4);
    }

    .btn-place-order {
        display: inline-block;
        padding: 12px 36px;
        background-color: #18988B;
        color: #ffffff;
        font-family: "DarkerGrotesque-bold";
        font-size: 15px;
        border-radius: 25px;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease-in-out;
        text-decoration: none;
    }

    .btn-place-order:hover {
        background-color: #147a70;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(24, 152, 139, 0.3);
        color: #ffffff;
    }

    .btn-place-order:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    .required-star {
        color: #d45273;
        margin-left: 2px;
    }

    .voucher-card .form-group {
        margin-bottom: 16px;
    }

    .voucher-page .alert {
        border-radius: 8px;
        font-family: "Roboto-Regular";
        font-size: 14px;
        padding: 12px 18px;
        margin-bottom: 20px;
    }

    .voucher-page .alert-success {
        background: rgba(24, 152, 139, 0.1);
        border: 1px solid rgba(24, 152, 139, 0.3);
        color: #147a70;
    }

    .voucher-page .alert-danger {
        background: rgba(212, 82, 115, 0.1);
        border: 1px solid rgba(212, 82, 115, 0.3);
        color: #b33d57;
    }

    .ermsg .alert {
        border-radius: 8px;
        font-family: "Roboto-Regular";
        font-size: 14px;
        padding: 12px 18px;
        margin-bottom: 0;
    }

    .page-loader {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 9999;
    }

    .page-loader .spinner-box {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* ============================================
       Responsive
       ============================================ */

    @media (max-width: 991px) {
        .voucher-page-title {
            font-size: 36px;
            margin-bottom: 8px;
        }

        .voucher-page-subtitle {
            margin-bottom: 30px;
        }

        .voucher-card {
            padding: 30px;
        }

        .balance-box .balance-amount {
            font-size: 26px;
        }

        .donor-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .donor-grid .span-3 {
            grid-column: span 2;
        }
    }

    @media (max-width: 767px) {
        .voucher-page {
            padding: 40px 0;
        }

        .voucher-page-title {
            font-size: 28px;
            margin-bottom: 6px;
        }

        .voucher-page-subtitle {
            font-size: 14px;
            margin-bottom: 24px;
        }

        .voucher-card {
            padding: 20px;
        }

        .balance-box,
        .auth-prompt {
            flex-direction: column;
            align-items: flex-start;
            gap: 12px;
            padding: 16px;
        }

        .balance-box .balance-amount {
            font-size: 24px;
        }

        .auth-prompt .auth-links {
            width: 100%;
        }

        .auth-prompt .auth-links a {
            flex: 1;
            text-align: center;
        }

        .donor-grid {
            grid-template-columns: 1fr;
        }

        .donor-grid .span-3 {
            grid-column: span 1;
        }

        .voucher-face {
            padding: 14px 16px 12px;
        }

        .voucher-amount-box {
            padding: 8px 14px;
            min-width: 65px;
        }

        .voucher-amount-box .amount-value {
            font-size: 22px;
        }

        .delivery-grid {
            grid-template-columns: 1fr;
        }

        .order-total-bar {
            flex-direction: column;
            align-items: stretch;
            text-align: center;
        }

        .order-total-bar .total-area {
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn-place-order {
            width: 100%;
            text-align: center;
        }

        .section-divider {
            font-size: 16px;
        }
    }

    @media (max-width: 480px) {
        .voucher-page-title {
            font-size: 24px;
        }

        .voucher-face {
            padding: 16px 14px 14px;
        }

        .voucher-amount-box .amount-value {
            font-size: 20px;
        }

        .voucher-amount-box {
            padding: 8px 12px;
            min-width: 58px;
        }

        .voucher-barcode {
            height: 22px;
        }

        .basket-table .qty-input {
            width: 50px;
        }
    }
    