/* ---------------------------------------------------------
   STEP 1 & STEP 2 — FIELD ROW LAYOUT
--------------------------------------------------------- */

.field-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.field-row input,
.field-row select {
    flex: 1;
    padding: 8px;
    font-size: 15px;
    border: 2px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

/* Valid / Invalid */
.field-row input.valid,
.field-row select.valid {
    border-color: #2ecc71;
}

.field-row input.invalid,
.field-row select.invalid {
    border-color: #e74c3c;
}

/* Error message */
.error-msg {
    min-width: 140px;
    font-size: 14px;
    color: #e74c3c;
    white-space: nowrap;
}

.error-msg:empty {
    display: none;
}

/* Next button */
.eventbar-next,
.eventbar-step[data-step="2"] .eventbar-next {
    margin-top: 20px;
    padding: 10px 18px;
    font-size: 16px;
    border-radius: 4px;
    background: #333;
    color: white;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.eventbar-next[disabled],
.eventbar-step[data-step="2"] .eventbar-next[disabled] {
    background: #ccc !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ---------------------------------------------------------
   STEP 3 — CHECKBOX GROUP
--------------------------------------------------------- */

.checkbox-group {
    display: flex;
    gap: 20px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox-group input.invalid {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

/* Submit button */
.eventbar-step[data-step="3"] .eventbar-submit {
    margin-top: 20px;
    padding: 10px 18px;
    font-size: 16px;
    border-radius: 4px;
    background: #333;
    color: white;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.eventbar-step[data-step="3"] .eventbar-submit[disabled] {
    background: #ccc !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ---------------------------------------------------------
   CONDITIONAL BLOCKS
--------------------------------------------------------- */

#preferred_drinks_block,
#uniform_block {
    display: none;
}

#service_tokens_fields,
#service_cashbar_fields,
#service_masterclass_fields,
#service_island_fields,
#dry_hire_block,
#uniform_block {
    margin-top: 15px;
}

/* ---------------------------------------------------------
   QUOTE PAGE LAYOUT
--------------------------------------------------------- */

.eventbar-quote {
    max-width: 850px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    color: #333;
    padding: 20px;
    padding-top: 5px !important; /* reduce top space */
}

.quote-header {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 25px;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.quote-logo {
    width: 160px;
    margin-right: 25px;
}

.quote-header-info h1 {
    margin: 0;
    font-size: 32px;
    font-weight: bold;
}

.quote-header-info p {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: #666;
}

/* Sections */
.quote-section {
    border: 1px solid #e5e5e5;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 6px;
    background: #fafafa;
}

.quote-section h2 {
    margin-top: 0;
    font-size: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

/* Two-column layout */
.two-col {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.quote-box {
    width: 48%;
}

/* Pricing summary */
.quote-total {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.quote-total td {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.quote-total .grand-total td {
    font-size: 22px;
    font-weight: bold;
    border-top: 2px solid #333;
    padding-top: 14px;
}

/* Print button */
.print-btn {
    margin-top: 20px;
    padding: 12px 20px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
}

.print-btn:hover {
    background: #444;
}

/* ---------------------------------------------------------
   PAYMENT DETAILS
--------------------------------------------------------- */

.quote-section:last-child {
    font-size: 14px;
    color: #555;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.quote-section p {
    margin: 6px 0;
    line-height: 1.4;
}

/* ---------------------------------------------------------
   PRINT STYLES
--------------------------------------------------------- */

@media print {
    .print-btn {
        display: none;
    }

    .quote-footer {
        position: fixed;
        bottom: 20px;
        width: 100%;
        text-align: center;
        font-size: 12px;
        color: #777;
    }
}
/* ============================
   PAYMENT DETAILS GRID
   ============================ */

.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr; /* label, value, label, value */
    gap: 10px 20px;
    margin-top: 10px;
    align-items: center;
}

.payment-row {
    display: contents; /* allows grid to handle layout */
}

.payment-grid .label {
    font-weight: bold;
    color: #333;
}

.payment-grid .value {
    color: #555;
}

.payment-terms {
    margin-top: 20px;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

/* Print adjustments */
@media print {
    .payment-grid {
        gap: 6px 15px;
    }
}
/* Neutral pricing breakdown */
.quote-total {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
}

.quote-total td {
    padding: 6px 0;
    border-bottom: 1px solid #ddd;
    font-size: 14px;      /* same as body text */
    font-weight: normal;  /* remove bold */
    color: #333;          /* same as body */
}

/* Remove bold + large total */
.quote-total .grand-total td {
    font-size: 14px !important;
    font-weight: normal !important;
    border-top: 1px solid #ddd;
    padding-top: 6px;
}
.quote-section h2 {
    font-size: 16px !important;
    border-bottom: none !important;
    margin-bottom: 8px !important;
    padding-bottom: 0 !important;
    color: #333;
}
.quote-section p {
    margin: 6px 0;
    line-height: 1.5;
}
/* ============================
   FINANCIAL SUMMARY (PRICING + PAYMENT)
   ============================ */

.financial-summary {
    padding: 15px 20px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    margin-bottom: 25px;
}

.financial-summary .line {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.financial-summary .line:last-child {
    border-bottom: none;
}

.financial-summary .total span {
    font-weight: bold;
}

.financial-summary .pricing-lines {
    margin-bottom: 12px;
}

.financial-summary .payment-lines {
    margin-top: 5px;
}
/* INCLUDED / SERVICE DESCRIPTION BLOCK */
.included-lines {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.45;
}

.included-line {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.included-pricing {
    margin-top: 10px;
}

.included-pricing .line {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.included-pricing .total span {
    font-weight: bold;
}

/* PAYMENT DETAILS BLOCK */
.payment-details .line {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.payment-details .line:last-child {
    border-bottom: none;
}
/* ============================
   PAYMENT DETAILS — 3 COLUMNS
   ============================ */

.payment-details {
    padding: 15px 20px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
}

.payment-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 25px;
    margin-top: 5px;
}

.payment-grid-3 .cell {
    display: flex;
    flex-direction: column;
}

.payment-grid-3 .label {
    font-size: 13px;
    color: #666;
}

.payment-grid-3 .value {
    font-size: 14px;
    color: #333;
    margin-top: 2px;
}

/* Print adjustments */
@media print {
    .payment-grid-3 {
        gap: 8px 15px;
    }
}
/* PAYMENT OPTIONS BLOCK */
.payment-options h2 {
    margin-top: 0;
    font-size: 18px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.payment-option {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.45;
}

/* 3-COLUMN BANK DETAILS */
.payment-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 25px;
    margin-top: 10px;
}

.payment-grid-3 .cell {
    display: flex;
    flex-direction: column;
}

.payment-grid-3 .label {
    font-size: 13px;
    color: #666;
}

.payment-grid-3 .value {
    font-size: 14px;
    color: #333;
    margin-top: 2px;
}
/* ============================
   TERMS & CONDITIONS — COMPACT
   ============================ */

.quote-terms {
    margin-top: 15px;          /* reduced from 30px */
    padding: 12px 15px;        /* reduced padding */
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.quote-terms h2 {
    margin: 0 0 8px 0;         /* tighter spacing */
    font-size: 15px;           /* smaller title */
    font-weight: bold;
    border-bottom: none;       /* remove divider */
    padding: 0;
}

.terms-text {
    font-size: 12px;           /* smaller text */
    line-height: 1.35;         /* tighter line spacing */
    color: #444;
    white-space: pre-line;
    margin: 0;
}

/* Print adjustments */
@media print {
    .quote-terms {
        page-break-inside: avoid;
        padding: 10px 12px;
        margin-top: 10px;
    }
    .terms-text {
        font-size: 11px;
        line-height: 1.3;
    }
}
.eventbar-quote {
    margin-top: -10px !important;
}
.quote-section {
    margin-bottom: 12px !important; /* was probably 25–30px */
}

.payment-grid-3 {
    margin-top: 10px !important;
    margin-bottom: 12px !important;
}
.quote-box p {
    margin: 2px 0 !important;
}

.included-lines,
.included-pricing .line,
.included-line {
    padding: 2px 0 !important;
}
.quote-terms {
    margin-top: 15px !important; /* was 30–40px */
}
.print-btn {
    margin-top: 10px !important;
}
@media print {
    body {
        margin: 0 !important;
        padding: 0 !important;
    }

    .eventbar-quote {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .quote-section,
    .payment-grid-3,
    .quote-terms {
        margin-bottom: 8px !important;
    }
}
