/* ================================================================
   Booking Form Stripe Plugin — form.css
   Brand: #0a2d5e (dark navy) | #c9a84c (gold)
   NOTE: .web_form and .form_control base styles come from theme.
   ================================================================ */

/* ── Form Title ─────────────────────────────────────────────────── */
.bfs-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #0a2d5e;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

/* ── Inline validation errors ───────────────────────────────────── */
.bfs-error {
    display: block;
    font-size: 12px;
    color: #dc2626;
    font-weight: 500;
    min-height: 14px;
    margin-top: 3px;
    margin-bottom: 6px;
}
.form_control.bfs-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,.12) !important;
}

/* ── Form-level notices ─────────────────────────────────────────── */
#bfs-form-messages .bfs-notice,
#bfs-payment-messages .bfs-notice,
#bfs-quest-messages .bfs-notice {
    padding: 13px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}
.bfs-notice-error   { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }
.bfs-notice-success { background: #dcfce7; color: #16a34a; border: 1px solid #86efac; }

/* ── File Upload ────────────────────────────────────────────────── */
.bfs-upload-wrap    { margin: 8px 0 14px; }
.bfs-upload-label   { display: block; font-weight: 600; font-size: 13px; color: #374151; margin-bottom: 6px; }
.bfs-file-input     { display: none; }
.bfs-file-btn       { display: inline-block; background: #f1f5f9; border: 1.5px solid #d1d5db; border-radius: 6px; padding: 8px 16px; font-size: 13px; font-weight: 600; color: #374151; cursor: pointer; transition: all .2s; }
.bfs-file-btn:hover { background: #e2e8f0; border-color: #94a3b8; }
.bfs-file-name      { display: inline-block; margin-left: 10px; font-size: 13px; color: #64748b; }
.bfs-upload-note    { display: block; font-size: 12px; color: #94a3b8; margin-top: 6px; }

/* ── Add-Ons Section ────────────────────────────────────────────── */
.bfs-addons-section { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px 20px; margin: 16px 0; }
.bfs-addons-title   { font-size: 14px; font-weight: 700; color: #0a2d5e; margin-bottom: 12px; }
.bfs-addon-row      { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.bfs-addon-row:last-child { margin-bottom: 0; }
.bfs-addon-check    { width: 16px; height: 16px; margin-top: 2px; accent-color: #0a2d5e; flex-shrink: 0; }
.bfs-addon-text     { font-size: 14px; color: #374151; line-height: 1.5; }

/* ── Terms Checkbox ─────────────────────────────────────────────── */
.bfs-terms-row         { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 6px; font-size: 13px; color: #475569; cursor: pointer; line-height: 1.6; }
.bfs-terms-row input   { width: 16px; height: 16px; margin-top: 2px; accent-color: #0a2d5e; flex-shrink: 0; }
/* Change #8 — Bold, blue, underlined Terms & Conditions link */
.bfs-terms-link        { color: #1a56db !important; font-weight: 700 !important; text-decoration: underline !important; }
.bfs-terms-link:hover  { color: #1140a8 !important; }
/* Resume note email link */
.bfs-email-link        { color: #1a56db; font-weight: 600; text-decoration: underline; }
.bfs-email-link:hover  { color: #1140a8; }

/* ── Submit / CTA Button ────────────────────────────────────────── */
.bfs-submit-btn {
    display: block;
    width: 100%;
    padding: 15px 24px;
    background: #0a2d5e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background .2s;
    box-sizing: border-box;
}
.bfs-submit-btn:hover    { background: #0d3a7a; }
.bfs-submit-btn:disabled { opacity: .72; cursor: not-allowed; }
.bfs-btn-loader          { pointer-events: none; }

/* ── Payment Page ───────────────────────────────────────────────── */
.bfs-payment-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}
@media (max-width: 700px) { .bfs-payment-wrapper { grid-template-columns: 1fr; } }

.bfs-order-card, .bfs-pay-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(10,45,94,.10);
    border: 1px solid #e2e8f0;
}
.bfs-order-header, .bfs-pay-header {
    background: #0a2d5e;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}
.bfs-order-header           { flex-direction: column; text-align: center; padding: 24px; }
.bfs-order-header img       { max-height: 55px; max-width: 180px; margin-bottom: 12px; }
.bfs-order-header h2        { margin: 0; color: #c9a84c; font-size: 20px; font-weight: 700; }
.bfs-order-details          { padding: 24px; }
.bfs-order-row              { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.bfs-order-row span         { color: #94a3b8; font-weight: 500; }
.bfs-order-row strong       { color: #1e293b; }
.bfs-addon-row.bfs-order-row span { color: #64748b; font-style: italic; }
.bfs-order-divider          { border-top: 2px solid #0a2d5e; margin: 12px 0 4px; }
.bfs-order-total span       { color: #0a2d5e; font-weight: 700; font-size: 16px; }
.bfs-price                  { color: #c9a84c !important; font-size: 22px !important; }
.bfs-pay-body               { padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.bfs-pay-label              { font-size: 13px; font-weight: 600; color: #374151; }
.bfs-card-element-box       { border: 1.5px solid #d1d5db; border-radius: 8px; padding: 14px; background: #fafafa; transition: border-color .2s; }
.bfs-card-element-box.StripeElement--focus { border-color: #0a2d5e; box-shadow: 0 0 0 3px rgba(10,45,94,.10); }
.bfs-card-error-msg         { font-size: 13px; color: #dc2626; font-weight: 500; min-height: 18px; }
.bfs-pay-submit-btn         { width: 100%; padding: 15px; font-size: 17px; display: block; }
.bfs-secure-note            { margin: 0; font-size: 12px; color: #94a3b8; text-align: center; }

/* ── Thank You Page ─────────────────────────────────────────────── */
.bfs-thankyou-wrap          { max-width: 680px; margin: 0 auto; padding: 40px 20px; text-align: center; }
.bfs-thankyou-icon          { font-size: 64px; margin-bottom: 16px; }
.bfs-thankyou-title         { font-size: 32px; font-weight: 700; color: #0a2d5e; margin: 0 0 12px; }
.bfs-thankyou-subtitle      { font-size: 17px; color: #64748b; margin: 0 0 32px; }
.bfs-thankyou-card          { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 20px rgba(10,45,94,.08); border: 1px solid #e2e8f0; margin-bottom: 28px; text-align: left; }
.bfs-thankyou-card-header   { background: #0a2d5e; color: #fff; padding: 14px 20px; font-weight: 600; font-size: 15px; }
.bfs-thankyou-card-body     { padding: 20px 24px; }
.bfs-ty-row                 { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.bfs-ty-row span            { color: #94a3b8; }
.bfs-ty-total span          { color: #0a2d5e; font-weight: 700; }
.bfs-ty-total strong        { color: #c9a84c; font-size: 20px; }
.bfs-thankyou-message       { background: #f8fafc; border-radius: 10px; padding: 20px 24px; margin-bottom: 28px; text-align: left; font-size: 14px; color: #475569; line-height: 1.7; }
.bfs-thankyou-message p     { margin: 0 0 12px; }
.bfs-thankyou-message p:last-child { margin-bottom: 0; }
.bfs-cta-btn                { display: inline-block; text-decoration: none; padding: 16px 40px; font-size: 18px; margin-bottom: 36px; }
.bfs-whats-next             { text-align: left; background: #fff; border-radius: 14px; padding: 24px; border: 1px solid #e2e8f0; }
.bfs-whats-next h3          { color: #0a2d5e; margin: 0 0 16px; font-size: 18px; }
.bfs-steps                  { display: flex; flex-direction: column; gap: 10px; }
.bfs-step                   { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #64748b; }
.bfs-step-num               { width: 28px; height: 28px; border-radius: 50%; background: #e2e8f0; color: #94a3b8; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.bfs-step-done .bfs-step-num   { background: #dcfce7; color: #16a34a; }
.bfs-step-done              { color: #16a34a; }
.bfs-step-active .bfs-step-num { background: #dbeafe; color: #1d4ed8; }
.bfs-step-active            { color: #1d4ed8; font-weight: 600; }

/* ── Login Gate ─────────────────────────────────────────────────── */
.bfs-login-gate             { text-align: center; padding: 60px 20px; }
.bfs-login-gate-icon        { font-size: 56px; margin-bottom: 16px; }
.bfs-login-gate h2          { font-size: 24px; color: #0a2d5e; margin-bottom: 12px; }
.bfs-login-gate p           { color: #64748b; margin-bottom: 24px; }

/* ── Learn More link (Change #9) ────────────────────────────────── */
.bfs-learn-more {
    color: #1a56db;
    font-weight: 700;
    text-decoration: underline;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    margin-left: 4px;
    flex-shrink: 0;
}
.bfs-learn-more:hover { color: #1140a8; }

/* ── Addon label (make clickable only on label, not whole row) ───── */
.bfs-addon-text { cursor: pointer; }

/* ══ MODAL OVERLAY (Change #9) ══════════════════════════════════════════════ */
.bfs-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10, 20, 40, 0.65);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.bfs-modal-overlay.bfs-modal-active {
    display: flex;
}

/* Modal box */
.bfs-modal-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    max-width: 560px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    animation: bfsModalIn .22s ease;
    position: relative;
}
@keyframes bfsModalIn {
    from { opacity: 0; transform: translateY(-18px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)     scale(1);   }
}

/* Modal header */
.bfs-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, #0a2d5e 0%, #1a4a8a 100%);
    padding: 20px 22px 18px;
    border-radius: 14px 14px 0 0;
}
.bfs-modal-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    flex: 1;
}
.bfs-modal-price {
    color: #c9a84c;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}
.bfs-modal-close {
    background: rgba(255,255,255,.18);
    border: none;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    transition: background .15s;
    padding: 0;
}
.bfs-modal-close:hover { background: rgba(255,255,255,.32); }

/* Modal body */
.bfs-modal-body {
    padding: 22px 24px 28px;
}
.bfs-modal-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 18px;
    line-height: 1.5;
    font-style: italic;
}
.bfs-modal-section-label {
    font-size: 13px;
    font-weight: 800;
    color: #0a2d5e;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin: 0 0 10px;
}
.bfs-modal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bfs-modal-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    color: #374151;
    line-height: 1.55;
    list-style: none;
    padding: 0;
    margin: 0;
}
.bfs-modal-check {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}
.bfs-modal-why {
    background: #eff6ff;
    border-left: 4px solid #1a56db;
    border-radius: 0 8px 8px 0;
    padding: 14px 16px;
}
.bfs-modal-why .bfs-modal-section-label { margin-bottom: 6px; color: #1a56db; }
.bfs-modal-why p {
    font-size: 13.5px;
    color: #374151;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 540px) {
    .bfs-modal-box    { border-radius: 10px; max-height: 92vh; }
    .bfs-modal-header { padding: 16px 16px 14px; border-radius: 10px 10px 0 0; }
    .bfs-modal-body   { padding: 16px 16px 22px; }
    .bfs-modal-title  { font-size: 14px; }
}
