/* =================================================================
   Book Quotation Calculator - Premium Corporate Stylesheet
   Design language: refined, editorial, high-contrast, print-inspired.
   Works on desktop, tablet and mobile. Used by both calculators.
   ================================================================= */

:root {
    /* Ink palette */
    --ink-900: #0B1020;
    --ink-800: #141A30;
    --ink-700: #1E2642;
    --ink-500: #4B5675;
    --ink-400: #6B7593;
    --ink-300: #94A0C1;

    /* Paper */
    --paper: #F7F4EC;
    --paper-soft: #FBF9F3;
    --paper-edge: #E9E2CF;
    --card: #FFFFFF;

    /* Accent - deep book-leather gold */
    --accent: #B8893A;
    --accent-dark: #8A6321;
    --accent-glow: #E5C680;
    --gold-soft: #FCF7EB;
    --gold-edge: #D6B77E;

    /* System */
    --success: #2F7D4E;
    --danger: #B23A3A;
    --warning: #B8893A;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(11, 16, 32, .06), 0 1px 1px rgba(11, 16, 32, .04);
    --shadow-md: 0 6px 18px rgba(11, 16, 32, .08), 0 2px 4px rgba(11, 16, 32, .04);
    --shadow-lg: 0 24px 60px -20px rgba(11, 16, 32, .25), 0 8px 20px rgba(11, 16, 32, .06);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Type */
    --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
    --font-body: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ---------- Reset-ish ---------- */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--ink-800);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(184, 137, 58, .10), transparent 60%),
        radial-gradient(900px 500px at 110% 10%, rgba(30, 38, 66, .06), transparent 60%),
        var(--paper);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* subtle paper grain */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    pointer-events: none;
    z-index: 0;
    opacity: .6;
}

a {
    color: var(--accent-dark);
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

/* ---------- Top Bar ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(150%) blur(14px);
    background: rgba(247, 244, 236, .78);
    border-bottom: 1px solid var(--paper-edge);
}

.topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    /*background: linear-gradient(135deg, var(--ink-900), var(--ink-700));*/
    color: var(--accent-glow);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .3), 0 4px 12px rgba(11, 16, 32, .18);
    font-family: var(--font-display);
}

.brand-title {
    font-weight: 600;
    font-size: 18px;
    color: var(--ink-900);
    line-height: 1;
}

.brand-sub {
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-400);
    margin-top: 4px;
}

.calc-switcher {
    display: flex;
    background: var(--ink-900);
    border-radius: 999px;
    padding: 4px;
    box-shadow: var(--shadow-sm);
}

.calc-switcher a {
    color: rgba(255, 255, 255, .65);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 999px;
    letter-spacing: .01em;
    transition: all .25s ease;
    white-space: nowrap;
}

.calc-switcher a.active {
    background: #f5561a;
    color: #fff;
    box-shadow: 0 2px 8px rgba(184, 137, 58, .4);
}

.calc-switcher a:hover:not(.active) {
    color: #fff;
}

/* ---------- Main layout ---------- */
.page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 22px 80px;
    position: relative;
    z-index: 1;
}

.page-intro {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
    align-items: end;
    margin-bottom: 28px;
}

.intro-kicker {
    font-size: 11px;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: #f5561a;
    font-weight: 600;
    margin-bottom: 12px;
}

.intro-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(30px, 4.5vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink-900);
    margin: 0 0 14px;
}

.intro-title em {
    font-style: italic;
    color: #f5561a;
    font-weight: 400;
}

.intro-brief {
    color: var(--ink-500);
    font-size: 15px;
    max-width: 58ch;
    line-height: 1.6;
}

.intro-meta {
    border-left: 1px solid var(--paper-edge);
    padding-left: 22px;
    font-size: 13px;
    color: var(--ink-500);
}

.intro-meta dt {
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ink-400);
    margin-top: 10px;
}

.intro-meta dd {
    margin: 2px 0 0;
    color: var(--ink-800);
    font-weight: 500;
}

/* ---------- Card ---------- */
.card {
    background: var(--card);
    border: 1px solid var(--paper-edge);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--paper-edge);
    background: linear-gradient(180deg, var(--paper-soft), #fff);
}

.card-head h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.01em;
    font-size: 20px;
    color: var(--ink-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-head .step {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ink-900);
    color: var(--accent-glow);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-mono);
}

.card-body {
    padding: 24px;
}

/* ---------- Forms ---------- */
.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-500);
    margin-bottom: 8px;
}

.field .hint {
    font-size: 11px;
    color: var(--ink-400);
    margin-top: 6px;
    letter-spacing: normal;
    text-transform: none;
}

.input,
.textarea,
.select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--paper-edge);
    background: #fff;
    border-radius: var(--radius-md);
    font: inherit;
    color: var(--ink-900);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.input:focus,
.textarea:focus,
.select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(184, 137, 58, .12);
}

.textarea {
    min-height: 90px;
    resize: vertical;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* ---------- Pill-button selectors (premium segmented control) ---------- */
.opts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.opt {
    --opt-bg: #fff;
    --opt-bd: var(--paper-edge);
    --opt-fg: var(--ink-700);
    position: relative;
    padding: 12px 16px;
    border: 1.5px solid var(--opt-bd);
    background: var(--opt-bg);
    color: var(--opt-fg);
    border-radius: var(--radius-md);
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    transition: all .18s ease;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    line-height: 1.2;
}

.opt small {
    display: block;
    font-size: 11px;
    color: var(--ink-400);
    font-weight: 400;
    margin-top: 2px;
    letter-spacing: 0;
    text-transform: none;
}

.opt .opt-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink-900);
}

.opt:hover {
    border-color: var(--ink-300);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.opt.active {
    background: var(--ink-900);
    border-color: var(--ink-900);
    color: #fff;
    box-shadow: 0 8px 24px -8px rgba(11, 16, 32, .4);
}

.opt.active .opt-title {
    color: #fff;
}

.opt.active small {
    color: rgba(255, 255, 255, .7);
}

.opt.active::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent-glow);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(229, 198, 128, .25);
}

/* color variant - gold accent for important selections */
.opt.active.gold {
    background: var(--accent);
    border-color: var(--accent);
}

/* ---------- Book block ---------- */
.book-block {
    border: 1px solid var(--paper-edge);
    border-radius: var(--radius-lg);
    padding: 0;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #fff, var(--paper-soft));
    overflow: hidden;
    transition: box-shadow .2s ease;
}

.book-block:hover {
    box-shadow: var(--shadow-md);
}

.book-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #fff;
    border-bottom: 1px dashed var(--paper-edge);
}

.book-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--ink-900);
    font-weight: 500;
}

.book-tag .num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f5561a;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
}

.book-block-body {
    padding: 22px;
}

/* Subtle highlights for alternating sections */
.book-block-body .field:nth-child(2),
.book-block-body .field:nth-child(4) {
    background: #f9f7f0;
    padding: 18px;
    margin-left: -4px;
    margin-right: -4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--paper-edge);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.remove-btn {
    border: none;
    background: transparent;
    color: var(--danger);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all .15s;
}

.remove-btn:hover {
    background: rgba(178, 58, 58, .08);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font: inherit;
    font-weight: 600;
    letter-spacing: .01em;
    cursor: pointer;
    transition: all .18s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--ink-900);
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(11, 16, 32, .4);
}

.btn-primary:hover {
    background: var(--ink-700);
    transform: translateY(-1px);
}

.btn-gold {
    background: linear-gradient(180deg, #C79A4A, var(--accent));
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(184, 137, 58, .5);
}

.btn-gold:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    border-color: var(--paper-edge);
    color: var(--ink-800);
}

.btn-ghost:hover {
    background: var(--paper-soft);
    border-color: var(--ink-300);
}

.btn-link {
    background: transparent;
    color: var(--ink-700);
    padding: 8px 10px;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 15px 28px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
    transform: none !important;
}

.action-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* ---------- Quotation output ---------- */
.quote-wrap {
    background: #fff;
    border: 1px solid var(--paper-edge);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.quote-header {
    padding: 24px 32px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.quote-header::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(148, 163, 184, 0.15) 0%, transparent 70%);
    filter: blur(20px);
}

.quote-header h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 26px;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
    color: #f8fafc;
}

.quote-header .ref {
    font-family: var(--font-mono);
    color: #e2e8f0;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.8;
}

.quote-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 24px 32px;
    background: #fdfbf7;
    border-bottom: 1px solid #f1f5f9;
}

.quote-meta dt {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 6px;
    font-weight: 600;
}

.quote-meta dd {
    margin: 0;
    font-weight: 600;
    color: #1e293b;
    font-size: 13px;
}

.q-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.q-table thead th {
    text-align: left;
    padding: 12px 12px;
    background: #fdfbf7;
    border-bottom: 2px solid #edeff2;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}

.q-table tbody td {
    padding: 16px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    color: #334155;
    background: #fdfbf7;
}

.q-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 12.5px;
}

.q-table td:first-child,
.q-table th:first-child {
    padding-left: 32px;
}

.q-table td:last-child,
.q-table th:last-child {
    padding-right: 32px;
}

.q-spec {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 5px;
    line-height: 1.5;
}

.q-book-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 14px;
}

.q-totals {
    padding: 32px;
    background: #fdfbf7;
    border-top: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.q-words {
    font-size: 13px;
    color: #475569;
    border-left: 2px solid #b8893a;
    padding: 4px 0 4px 16px;
    align-self: center;
}

.q-words div {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 6px;
    font-weight: 700;
    font-style: normal;
}

.q-words strong {
    color: #1e293b;
    font-style: normal;
    font-weight: 600;
    line-height: 1.4;
    display: block;
}

.q-sum {
    text-align: right;
}

.q-sum .row {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    font-size: 13px;
    color: #64748b;
    padding: 2px 0;
}

.q-sum .row .val {
    min-width: 100px;
    text-align: right;
    font-weight: 600;
    color: #475569;
}

.q-sum .row.total {
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    color: #0f172a;
}

.q-sum .row.total .lbl {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 700;
}

.q-sum .row.total .val {
    font-size: 28px;
    color: #0f172a;
    font-weight: 800;
    font-family: var(--font-body);
}

.q-sum .row .lbl {
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 10px;
    font-weight: 700;
}

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--ink-900);
    color: #fff;
    padding: 14px 22px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    opacity: 0;
    transition: all .25s ease;
    z-index: 100;
    pointer-events: none;
    max-width: 90vw;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: #1E4A2C;
}

.toast.error {
    background: #5A1E1E;
}

/* ---------- Floating cross-link ---------- */
.cross-link {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--ink-900);
    color: #fff;
    padding: 12px 18px 12px 14px;
    border-radius: 999px;
    box-shadow: var(--shadow-lg);
    font-size: 13px;
    text-decoration: none;
    transition: all .2s;
    border: 1px solid rgba(255, 255, 255, .08);
}

.cross-link:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
}

.cross-link .icon {
    width: 32px;
    height: 32px;
    background: #f5561a;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
}

.cross-link .txt small {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, .55);
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.cross-link .txt strong {
    font-weight: 600;
}

/* ---------- Error state ---------- */
.field.error .input,
.field.error .select,
.field.error .textarea {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(178, 58, 58, .1);
}

.err-msg {
    color: var(--danger);
    font-size: 12px;
    margin-top: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .page-intro {
        grid-template-columns: 1fr;
    }

    .intro-meta {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--paper-edge);
        padding-top: 18px;
    }

    .quote-meta {
        grid-template-columns: 1fr 1fr;
    }

    .q-totals {
        grid-template-columns: 1fr;
    }

    .q-sum {
        text-align: left;
    }

    .q-table td:first-child,
    .q-table th:first-child {
        padding-left: 20px;
    }

    .q-table td:last-child,
    .q-table th:last-child {
        padding-right: 20px;
    }

    .quote-header,
    .quote-meta,
    .q-totals {
        padding-left: 22px;
        padding-right: 22px;
    }
}

@media (max-width: 600px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .topbar-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px;
    }

    .calc-switcher {
        justify-content: center;
    }

    .page {
        padding: 20px 14px 120px;
    }

    .quote-meta {
        grid-template-columns: 1fr;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .quote-wrap > div[style*="overflow-x:auto"] {
        overflow-x: visible !important;
    }

    .card-body,
    .book-block-body {
        padding: 18px;
    }

    .card-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px 18px;
    }

    .card-head h3 {
        width: 100%;
        font-size: 18px;
    }

    #btn-add {
        width: 100%;
        justify-content: center;
    }

    .quote-header h2 {
        font-size: 22px;
    }

    .cross-link {
        bottom: 16px;
        right: 16px;
        left: 16px;
        justify-content: center;
    }

    .action-row .btn {
        flex: 1 1 calc(50% - 6px);
    }

    .opt {
        flex: 1 1 100%;
    }

    /* Table to Cards */
    .q-table thead {
        display: none;
    }

    .q-table tbody tr {
        display: block;
        margin-bottom: 24px;
        border: 1px solid var(--paper-edge);
        border-radius: var(--radius-md);
        background: #fff;
        overflow: hidden;
        box-shadow: var(--shadow-sm);
    }

    .q-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        border-bottom: 1px solid #f8fafc;
        text-align: right;
    }

    .q-table tbody td:last-child {
        border-bottom: none;
        background: var(--paper-soft);
    }

    .q-table tbody td:first-child {
        display: block;
        text-align: left;
        background: var(--ink-900);
        color: #fff;
        padding: 15px;
    }

    .q-table tbody td:first-child .q-book-title {
        color: #fff;
    }

    .q-table tbody td:first-child .q-spec {
        color: rgba(255, 255, 255, 0.7);
    }

    .q-table tbody td[data-label]:not(:first-child)::before {
        content: attr(data-label);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 10px;
        letter-spacing: 0.1em;
        color: var(--ink-400);
        text-align: left;
        margin-right: 12px;
    }

    .q-table td:first-child, .q-table th:first-child,
    .q-table td:last-child, .q-table th:last-child {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ---------- Print / PDF capture look ---------- */
.quote-wrap.for-export .quote-header {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* Ensure the logo image fits perfectly in the brand-mark box */
.brand-mark img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    display: block;
}

/* ---------- Premium Checkout / Payment Prompt Block ---------- */
.q-payment-prompt {
    margin-top: 40px;
    padding: 35px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF8F2 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--paper-edge);
    box-shadow: var(--shadow-md), 0 10px 30px -10px rgba(184, 137, 58, 0.12);
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 35px;
    text-align: left;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.q-payment-prompt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-glow), var(--accent));
}

.q-payment-prompt-info h3 {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--ink-900);
    margin: 0 0 8px 0;
    font-weight: 500;
}

.q-payment-prompt-info p {
    font-size: 14px;
    color: var(--ink-500);
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.coupon-box-premium {
    background: linear-gradient(135deg, #FFFDF9 0%, #FFF8EA 100%);
    border: 2px dashed rgba(184, 137, 58, 0.4);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(184, 137, 58, 0.05);
}

.coupon-box-premium label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    background: rgba(184, 137, 58, 0.12);
    padding: 4px 8px;
    border-radius: 4px;
}

.coupon-input-group {
    display: flex;
    gap: 8px;
}

.coupon-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--paper-edge);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #FFFFFF;
    color: var(--ink-900);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.coupon-input-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184, 137, 58, 0.15);
}

.coupon-input-group button {
    background: var(--accent) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 4px 12px rgba(184, 137, 58, 0.25) !important;
    transition: all 0.2s ease !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer;
}

.coupon-input-group button:hover {
    background: var(--accent-dark) !important;
    box-shadow: 0 6px 16px rgba(184, 137, 58, 0.4) !important;
    transform: translateY(-1px) !important;
}

.coupon-feedback {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    min-height: 16px;
}

.q-payment-prompt-action {
    background: #FFFFFF;
    border: 1px solid var(--paper-edge);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.q-payment-prompt-action .price-label {
    font-size: 12px;
    color: var(--ink-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.q-payment-prompt-action .price-val {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--ink-900);
    line-height: 1;
}

.q-payment-prompt-action .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    padding: 14px;
    width: 100%;
}

.q-payment-prompt-action .secure-badge {
    font-size: 11px;
    color: var(--ink-400);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .q-payment-prompt {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .coupon-input-group {
        flex-direction: column;
        gap: 10px;
    }
    .coupon-input-group button {
        width: 100% !important;
        padding: 12px !important;
    }
}

/* Hide payment prompt during print or PDF/JPG export */
@media print {
    .q-payment-prompt {
        display: none !important;
    }
}
.quote-wrap.for-export .q-payment-prompt {
    display: none !important;
}