/* ─────────────────────────────────────────────────────────────────
   BDTH Book Order Form — Front-end Styles
   ───────────────────────────────────────────────────────────────── */

.bdth-wrap {
    max-width: 720px;
    margin: 0 auto;
    font-family: inherit;
    font-size: 19px;
    font-size: 19px;
}

.bdth-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e2d9ce;
}

.bdth-header h2 {
    font-size: 1.7rem;
    margin-bottom: 0.4rem;
}

.bdth-book-title {
    font-size: 1.05rem;
    color: #333;
    margin: 0.25rem 0;
}

.bdth-byline {
    color: #666;
    margin: 0.2rem 0 0.8rem;
}

.bdth-pricing {
    display: inline-block;
    background: #f7f3ef;
    border: 1px solid #e2d9ce;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 19px;
    color: #444;
}

/* ── Notice ─────────────────────────────────────────────────────── */
.bdth-notice {
    padding: 0.85rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    font-size: 19px;
}

.bdth-notice-error {
    background: #fdf2f2;
    border: 1px solid #e8b4b4;
    color: #b91c1c;
}

.bdth-notice-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #15803d;
}

/* ── Pre-Order Notice Banner ────────────────────────────────────── */
.bdth-preorder-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #fffbeb;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    font-size: 19px;
    color: #44301a;
}

.bdth-preorder-icon {
    font-size: 1.5rem;
    line-height: 1.3;
    flex-shrink: 0;
}

.bdth-preorder-text {
    line-height: 1.5;
}

.bdth-preorder-text strong:first-child {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: #92400e;
}

/* ── Pre-Order Confirmation Note ────────────────────────────────── */
.bdth-preorder-confirm-note {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    padding: 0.65rem 1rem;
    color: #78350f !important;
    font-size: 0.95rem;
}

/* ── Fieldsets ──────────────────────────────────────────────────── */
.bdth-fieldset {
    border: 1px solid #e2d9ce;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    background: #fdfaf7;
}

.bdth-fieldset legend {
    font-weight: 600;
    font-size: 19px;
    padding: 0 0.5rem;
    color: #333;
}

.bdth-fieldset .bdth-note {
    font-weight: normal;
    font-size: 19px;
    color: #777;
}

/* ── Form Rows ──────────────────────────────────────────────────── */
.bdth-row {
    margin-bottom: 1rem;
}

.bdth-row:last-child {
    margin-bottom: 0;
}

.bdth-row label {
    display: block;
    font-weight: 600;
    font-size: 19px;
    margin-bottom: 0.35rem;
    color: #333;
}

.bdth-row input[type="text"],
.bdth-row input[type="email"],
.bdth-row input[type="number"],
.bdth-row select,
.bdth-row textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 19px;
    font-family: inherit;
    font-size: 19px;
    background: #fff;
    transition: border-color 0.15s;
}

.bdth-row input[type="number"] {
    max-width: 120px;
}

.bdth-row input:focus,
.bdth-row select:focus,
.bdth-row textarea:focus {
    border-color: #7c5c3e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 92, 62, 0.12);
}

.bdth-hint, .bdth-optional {
    color: #888;
    margin: 0.2rem 0 0;
}

.bdth-optional {
    font-weight: normal;
    font-style: italic;
}

/* ── 3-column city/state/zip row ──────────────────────────────── */
.bdth-row-3col {
    display: flex;
    gap: 0.75rem;
}

.bdth-row-3col .bdth-col {
    flex: 1;
}

.bdth-row-3col .bdth-col:first-child {
    flex: 2;
}

/* ── Required star ──────────────────────────────────────────────── */
.bdth-req {
    color: #c0392b;
}

/* ── Inscription fields ─────────────────────────────────────────── */
.bdth-inscription-heading {
    font-size: 19px;
    font-weight: 600;
    margin: 1rem 0 0.25rem;
    color: #333;
}

.bdth-inscription-note {
    font-size: 19px;
    color: #777;
    margin: 0 0 0.75rem;
}

.bdth-inscription-row {
    margin-bottom: 1rem;
    padding: 0.85rem;
    background: #fff;
    border: 1px solid #e2d9ce;
    border-radius: 6px;
}

.bdth-word-counter {
    color: #888;
    text-align: right;
    margin: 0.25rem 0 0;
}

.bdth-over-limit {
    color: #c0392b !important;
    font-weight: bold;
}

/* ── Order Summary ──────────────────────────────────────────────── */
.bdth-summary {
    background: #f7f3ef;
    border: 1px solid #e2d9ce;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.bdth-summary-line {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 19px;
    color: #555;
    border-bottom: 1px solid #e8e0d8;
}

.bdth-summary-line:last-of-type {
    border-bottom: none;
}

.bdth-summary-total {
    font-weight: 700;
    font-size: 1.05rem;
    color: #222;
    padding-top: 0.6rem;
    margin-top: 0.2rem;
    border-top: 2px solid #c5b49a;
    border-bottom: none;
}

.bdth-paypal-note {
    color: #888;
    margin: 0.75rem 0 0;
}

/* ── Submit Button ──────────────────────────────────────────────── */
.bdth-submit-row {
    text-align: center;
}

.bdth-btn-submit {
    background: #003087;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.85rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.01em;
}

.bdth-btn-submit:hover {
    background: #001f5e;
}

.bdth-btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ── Confirmation Screen ────────────────────────────────────────── */
.bdth-confirm {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 10px;
}

.bdth-confirm-icon {
    font-size: 3rem;
    color: #16a34a;
    margin-bottom: 0.5rem;
}

.bdth-confirm h3 {
    font-size: 1.5rem;
    color: #15803d;
    margin-bottom: 0.75rem;
}

.bdth-confirm p {
    color: #444;
    max-width: 500px;
    margin: 0 auto 0.75rem;
}

.bdth-confirm-total {
    font-size: 1.1rem;
}

.bdth-btn-paypal {
    display: inline-block;
    background: #ffc439;
    color: #111;
    border-radius: 6px;
    padding: 0.85rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    margin: 0.75rem 0;
    transition: background 0.2s;
}

.bdth-btn-paypal:hover {
    background: #f0b429;
    color: #000;
    text-decoration: none;
}

.bdth-confirm-note {
    color: #888;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 560px) {
    .bdth-row-3col {
        flex-direction: column;
        gap: 0.5rem;
    }
    .bdth-row-3col .bdth-col:first-child {
        flex: 1;
    }
    .bdth-fieldset {
        padding: 1rem;
    }
}