/* [gdb_register] registration form.
 *
 * Ported from the legacy gd-booking-form dark theme so the merged form keeps the
 * exact look the client approved: dark card, translucent guest accordion with an
 * orange open-border, uppercase labels, orange Continue button. Controls are
 * force-styled (!important) so neither the site theme nor the shared widget.css
 * bleeds in and clips the selects. px sizing per house rule.
 */

.gdb-register {
    max-width: 520px;
    margin: 0 auto;
    padding: 32px 24px;
    background: #0f1117;
    color: #e2e8f0;
    border-radius: 12px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    box-sizing: border-box;
}
.gdb-register *, .gdb-register *::before, .gdb-register *::after { box-sizing: border-box; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.gdb-reg-header { margin-bottom: 28px; text-align: left; }
.gdb-reg-title { font-size: 24px; font-weight: 700; margin: 0 0 6px; color: #f1f5f9; }
.gdb-reg-subtitle { font-size: 18px; margin: 0; color: #64748b; }

/* ── Fields ──────────────────────────────────────────────────────────────── */
.gdb-reg-field { margin: 0 0 12px; display: flex; flex-direction: column; gap: 5px; }
.gdb-reg-field--half { display: inline-flex; width: calc(50% - 5px); vertical-align: top; }
.gdb-reg-field--half:nth-of-type(odd) { margin-right: 10px; }

.gdb-reg-label,
.gdb-register label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #94a3b8;
    margin: 0;
}
.gdb-reg-req { color: #ef4444; }

/* Force control styling so the theme / widget.css can't clip or recolour them */
.gdb-register input[type="text"],
.gdb-register input[type="email"],
.gdb-register input[type="tel"],
.gdb-register input[type="number"],
.gdb-register select {
    width: 100% !important;
    padding: 12px 14px !important;
    height: auto !important;
    min-height: 46px !important;
    line-height: 1.4 !important;
    font-size: 15px !important;
    font-family: inherit !important;
    background-color: #1e2433 !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
    color: #f1f5f9 !important;
    box-shadow: none !important;
    margin: 0 !important;
    transition: border-color .15s;
}
.gdb-register select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2394a3b8' d='M1 1l5 5 5-5'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 36px !important;
}
.gdb-register input:focus,
.gdb-register select:focus { border-color: #38bdf8 !important; outline: none !important; }
.gdb-register input::placeholder { color: #64748b; opacity: 1; }

.gdb-register .gdb-reg-field--invalid input,
.gdb-register .gdb-reg-field--invalid select,
.gdb-register .gdb-reg-dob--invalid select { border-color: #ef4444 !important; }

/* DOB three-dropdown row */
.gdb-reg-dob { display: flex; gap: 8px; }
.gdb-reg-dob select { flex: 1; width: auto !important; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.gdb-register .gdb-btn,
.gdb-reg-continue, .gdb-reg-guests-continue {
    width: 100%;
    padding: 13px 14px;
    background: #FF8600;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    margin-top: 8px;
    transition: background .15s;
}
.gdb-register .gdb-btn:hover:not(:disabled) { background: #E07700; }
.gdb-register .gdb-btn:disabled { opacity: .6; cursor: not-allowed; }

.gdb-reg-back, .gdb-reg-guests-back {
    background: none; border: none; color: #64748b; font-family: inherit;
    font-size: 14px; cursor: pointer; padding: 0; margin: 0 0 18px;
    display: inline-flex; align-items: center; gap: 4px;
}
.gdb-reg-back:hover, .gdb-reg-guests-back:hover { color: #94a3b8; }

.gdb-reg-error, .gdb-reg-payerror {
    background: rgba(239,68,68,0.1); border: 1px solid #fca5a5; color: #fca5a5;
    border-radius: 6px; padding: 10px 14px; font-size: 13px; margin: 10px 0;
}
.gdb-reg-secure { text-align: center; font-size: 14px; margin: 12px 0 0; color: #475569; }

/* ── Guest accordion (dive flow, step 2) ─────────────────────────────────── */
.gdb-reg-guests { margin-bottom: 8px; }
.gdb-reg-guest {
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}
.gdb-reg-guest-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    font-weight: 700; font-size: 15px; letter-spacing: .3px;
    color: #f1f5f9; cursor: pointer;
}
.gdb-reg-guest-toggle { font-size: 13px; opacity: .7; transition: transform .2s; }
.gdb-reg-guest--collapsed .gdb-reg-guest-toggle { transform: rotate(180deg); }
.gdb-reg-guest-body { display: block; padding: 14px 16px 16px; }
.gdb-reg-guest--collapsed .gdb-reg-guest-body { display: none; }
/* open (not collapsed) panel gets the orange accent */
.gdb-reg-guest:not(.gdb-reg-guest--collapsed) { border-color: #FF8600; }

.gdb-reg-certified-toggle {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
    color: #94a3b8; cursor: pointer; margin-top: 4px;
}
.gdb-reg-certified-toggle input[type="checkbox"] { width: 16px; height: 16px; min-height: 0 !important; cursor: pointer; }
.gdb-reg-cert-field {
    border-top: 1px dashed rgba(255,255,255,0.14);
    margin-top: 8px; padding-top: 12px;
}

/* ── Step 2 summary / payment (reuses widget.css components on dark) ──────── */
.gdb-reg-summary { margin-bottom: 16px; }
.gdb-summary-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.gdb-summary-label { color: rgba(255,255,255,0.55); }
.gdb-summary-value { font-weight: 600; color: #fff; }

.gdb-reg-paytoggle { display: flex; gap: 8px; margin: 0 0 16px; }
.gdb-reg-payopt {
    flex: 1; padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px; background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7); font-family: inherit; font-weight: 600;
    cursor: pointer; transition: all .2s;
}
.gdb-reg-payopt--sel { background: rgba(74,222,128,0.15); border-color: #4ade80; color: #4ade80; }

.gdb-stripe-loading { padding: 20px 0; text-align: center; color: rgba(255,255,255,0.55); font-size: 13px; }
#gdb-reg-stripe-element { margin-bottom: 8px; }

/* ── Thank-you ───────────────────────────────────────────────────────────── */
.gdb-confirmation { text-align: center; padding: 28px 12px; }
.gdb-confirmation-icon {
    width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%;
    background: rgba(74,222,128,0.15); color: #4ade80;
    font-size: 32px; line-height: 60px; text-align: center;
}
.gdb-confirmation-title { font-size: 22px; font-weight: 700; margin: 0 0 12px; color: #f1f5f9; }
.gdb-confirmation-body { font-size: 16px; line-height: 1.6; color: #cbd5e1; margin: 0; }

@media (max-width: 480px) {
    .gdb-register { padding: 24px 16px; }
    .gdb-reg-field--half { width: 100%; margin-right: 0; display: flex; }
}
