/* EP Tickets — manage-booking.css */

.epb-wrap {
    max-width: 560px;
    margin: 0 auto;
    font-family: inherit;
}

.epb-card {
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    padding: 32px;
}

.epb-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111;
}

.epb-desc {
    color: #52525b;
    font-size: 0.9375rem;
    margin: 0 0 20px;
}

/* Masked email display */
.epb-masked-email {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    background: #f4f4f5;
    border-radius: 6px;
    padding: 10px 16px;
    margin: 0 0 20px;
    letter-spacing: 0.02em;
}

/* Booking summary */
.epb-summary {
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 28px;
}

.epb-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    font-size: 0.9rem;
    gap: 12px;
}

.epb-summary-row:not(:last-child) {
    border-bottom: 1px solid #f4f4f5;
}

.epb-summary-row span {
    color: #71717a;
    flex-shrink: 0;
}

.epb-summary-row strong {
    color: #111;
    text-align: right;
    word-break: break-all;
}

/* Section title */
.epb-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e4e4e7;
    color: #111;
}

/* Form fields */
.epb-form {
    margin-top: 4px;
}

.epb-field {
    margin-bottom: 18px;
}

.epb-field label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111;
}

/* Helper / hint text */
.epb-attendees-hint {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 20px;
}

.epb-attendees-optional {
    font-size: 0.8rem;
    font-weight: 400;
    color: #9ca3af;
}

.epb-field input[type="email"],
.epb-field input[type="text"],
.epb-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d4d4d8;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.epb-field input[type="email"]:focus,
.epb-field input[type="text"]:focus,
.epb-field textarea:focus {
    outline: none;
    border-color: var(--color-primary, #e8177d);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary, #e8177d) 15%, transparent);
}

.epb-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Radio groups */
.epb-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.epb-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 400;
    cursor: pointer;
}

.epb-radio-label input[type="radio"] {
    flex-shrink: 0;
    width: auto;
}

/* Read-only answer */
.epb-readonly {
    margin: 0;
    padding: 10px 14px;
    background: #f4f4f5;
    border-radius: 6px;
    font-size: 0.9375rem;
    color: #52525b;
}

/* Cutoff hint */
.epb-cutoff-hint {
    font-size: 0.8125rem;
    color: #71717a;
    margin: -4px 0 16px;
}

/* Submit button */
.epb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 24px;
    background: var(--color-primary, #e8177d);
    color: var(--color-primary-fg, #fff);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s;
    margin-top: 8px;
}

.epb-btn:hover {
    opacity: 0.9;
}

/* Anchor-styled buttons (e.g. the PDF download link) sit inside page content,
   so the theme's .entry-content link colour can override .epb-btn's white text
   and render it invisibly against the button fill. Pin the colour and drop the
   underline; scoped under .epb-wrap to out-specify the theme rule. */
.epb-wrap a.epb-btn,
.epb-wrap a.epb-btn:hover,
.epb-wrap a.epb-btn:focus {
    color: var(--color-primary-fg, #fff);
    text-decoration: none;
}

/* Notices */
.epb-notice {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.epb-notice p {
    margin: 0;
}

.epb-notice--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.epb-notice--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.epb-notice--warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.epb-notice--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

/* Attendee slots */
.epb-attendee-slot {
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    background: #fafafa;
}

.epb-attendee-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 14px;
}

.epb-attendee-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.epb-attendee-fields .epb-field {
    margin-bottom: 0;
}

.epb-attendee-fields .epb-field label {
    display: none;
}

.epb-attendee-fields .epb-field input[type="text"],
.epb-attendee-fields .epb-field input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d4d4d8;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.epb-attendee-fields .epb-field input[type="text"]:focus,
.epb-attendee-fields .epb-field input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary, #e8177d);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary, #e8177d) 15%, transparent);
}

.epb-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d4d4d8;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
}

.epb-select:focus {
    outline: none;
    border-color: var(--color-primary, #e8177d);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary, #e8177d) 15%, transparent);
}

@media (max-width: 520px) {
    .epb-card {
        padding: 20px 16px;
    }

    .epb-attendee-fields {
        grid-template-columns: 1fr;
    }
}
