/*
 * BJ Event Tickets - Front-end form styles
 * Scoped under #bjet-form-wrap to avoid Divi/theme conflicts.
 * Uses Open Sans (assumed loaded by theme or Divi).
 */

#bjet-form-wrap,
#bjet-form-wrap * {
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
}

/* ── Member banner (shown to non-members) ────────────────────────────────── */

.bjet-member-banner {
    background: #f8f5fc;
    border: 1px solid #d5c5e8;
    border-left: 4px solid #2d0049;
    border-radius: 0 6px 6px 0;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

.bjet-member-banner strong {
    color: #2d0049;
    display: block;
    margin-bottom: 4px;
}

.bjet-member-banner a {
    color: #2d0049;
    font-weight: 600;
    text-decoration: underline;
}

.bjet-member-banner a:hover {
    color: #fc7c08;
}

/* ── Capacity bar ────────────────────────────────────────────────────────── */

.bjet-capacity-bar {
    background: #f4f4f4;
    border-left: 4px solid #2d0049;
    padding: 10px 14px;
    margin-bottom: 28px;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    color: #444;
}

/* ── Sections ────────────────────────────────────────────────────────────── */

.bjet-section {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid #eee;
}

.bjet-section:last-of-type {
    border-bottom: none;
}

.bjet-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #2d0049;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bjet-price-tag {
    font-size: 13px;
    font-weight: 400;
    color: #666;
    background: #f4f4f4;
    border-radius: 20px;
    padding: 2px 10px;
}

.bjet-section-desc {
    color: #666;
    font-size: 14px;
    margin: 0 0 14px;
}

/* ── Form rows ───────────────────────────────────────────────────────────── */

.bjet-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.bjet-col {
    flex: 1 1 0;
}

@media (max-width: 600px) {
    .bjet-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ── Inputs ──────────────────────────────────────────────────────────────── */

#bjet-form-wrap label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

#bjet-form-wrap input[type="text"],
#bjet-form-wrap input[type="email"],
#bjet-form-wrap input[type="tel"],
#bjet-form-wrap select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    color: #222;
    background: #fff;
    transition: border-color 0.2s;
    appearance: auto;
}

#bjet-form-wrap input:focus,
#bjet-form-wrap select:focus {
    border-color: #2d0049;
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 0, 73, 0.12);
}

#bjet-form-wrap input:disabled {
    background: #f9f9f9;
    color: #888;
}

.bjet-req {
    color: #e00;
}

/* ── Radio buttons ───────────────────────────────────────────────────────── */

.bjet-radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.bjet-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 400;
}

.bjet-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2d0049;
}

/* ── Member select ───────────────────────────────────────────────────────── */

#bjet-member-select {
    width: 100%;
    min-height: 140px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px;
    font-size: 14px;
    margin-bottom: 8px;
}

.bjet-hint {
    font-size: 12px;
    color: #888;
    margin: 4px 0 10px;
}

/* ── Member / guest tags ─────────────────────────────────────────────────── */

.bjet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.bjet-tag {
    background: #2d0049;
    color: #fff;
    font-size: 13px;
    padding: 4px 10px 4px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bjet-tag-remove {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.bjet-tag-remove:hover {
    opacity: 1;
}

/* ── Guest blocks ────────────────────────────────────────────────────────── */

.bjet-guest-block {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
    background: #fafafa;
}

.bjet-guest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.bjet-guest-label {
    font-weight: 600;
    font-size: 14px;
    color: #2d0049;
}

.bjet-remove-guest {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
    transition: color 0.15s;
}

.bjet-remove-guest:hover {
    color: #e00;
}

/* ── Discount ────────────────────────────────────────────────────────────── */

.bjet-discount-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.bjet-discount-row input {
    max-width: 200px;
}

.bjet-feedback {
    font-size: 13px;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 4px;
}

.bjet-feedback--success {
    background: #e8f5e9;
    color: #2e7d32;
}

.bjet-feedback--error {
    background: #fdecea;
    color: #c62828;
}

/* ── Summary table ───────────────────────────────────────────────────────── */

.bjet-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.bjet-summary-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #f0f0f0;
}

.bjet-summary-table td:last-child {
    text-align: right;
    font-weight: 500;
}

.bjet-summary-table tfoot tr {
    font-weight: 700;
    font-size: 17px;
    border-top: 2px solid #2d0049;
}

.bjet-summary-table tfoot td {
    padding-top: 12px;
    border-bottom: none;
}

.bjet-discount-line td {
    color: #2e7d32;
}

.bjet-vat-line td {
    color: #666;
    font-size: 13px;
}

/* ── Stripe element container ────────────────────────────────────────────── */

.bjet-stripe-element {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px;
    background: #fff;
    margin-bottom: 20px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.bjet-btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    font-family: "Open Sans", sans-serif;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    text-decoration: none;
}

.bjet-btn--primary {
    background: #fcd700;
    color: #2d0049;
}

.bjet-btn--primary:hover {
    background: #fc7c08;
    color: #fff;
}

.bjet-btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bjet-btn--secondary {
    background: #f0eaf5;
    color: #2d0049;
}

.bjet-btn--secondary:hover {
    background: #e0d5ea;
}

.bjet-btn--secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bjet-payment-buttons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

#bjet-proceed-wrap {
    margin-top: 24px;
}

/* ── States ──────────────────────────────────────────────────────────────── */

.bjet-error {
    color: #c62828;
    font-size: 14px;
    background: #fdecea;
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.bjet-success {
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
    padding: 20px 24px;
    border-radius: 0 6px 6px 0;
}

.bjet-success h3 {
    color: #2e7d32;
    margin: 0 0 8px;
}

.bjet-success p {
    margin: 0;
    color: #444;
}

.bjet-loading-text {
    color: #888;
    font-size: 14px;
    font-style: italic;
}

.bjet-notice {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
}

.bjet-notice--warn {
    background: #fff8e1;
    border-left: 4px solid #f9a825;
    color: #555;
}

.bjet-sold-out h3,
.bjet-members-only h3,
.bjet-login-prompt h3 {
    color: #2d0049;
}

/* ── Loading dots animation ──────────────────────────────────────────────── */

.bjet-btn--loading::after {
    content: '...';
    animation: bjet-dots 1s steps(3, end) infinite;
    display: inline-block;
    width: 18px;
    text-align: left;
}

@keyframes bjet-dots {
    0%   { content: ''; }
    33%  { content: '.'; }
    66%  { content: '..'; }
    100% { content: '...'; }
}
