/* SpiriZin Booking — frontend styles */

.szb-event-detail {
    max-width: 640px;
    margin: 30px auto;
    font-family: inherit;
    color: #2c2538;
    line-height: 1.6;
}

.szb-event-description {
    color: #4a4458;
    margin-bottom: 25px;
}

/* Dates overview */
.szb-dates-overview {
    background: #faf8fc;
    border: 1px solid #e5dfeb;
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 25px;
}
.szb-dates-overview h3 {
    margin: 0 0 12px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b6478;
    font-weight: 500;
}
.szb-dates-overview-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.szb-date-overview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 0;
    border-bottom: 1px solid #e5dfeb;
}
.szb-date-overview-item:last-child { border-bottom: none; }
.szb-date-overview-item.szb-status-sold_out .szb-date-overview-when {
    text-decoration: line-through;
    opacity: 0.55;
}
.szb-date-overview-label {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.szb-date-overview-label.szb-sold-out    { background: #fce5e5; color: #b94a4a; }
.szb-date-overview-label.szb-almost-full { background: #fdf0d8; color: #c97c2e; }

/* Booking form */
.szb-booking-form-wrap {
    background: #fff;
    border: 1px solid #e5dfeb;
    border-radius: 8px;
    padding: 24px 28px;
}
.szb-booking-form-wrap h3 {
    margin: 0 0 14px;
    color: var(--szb-primary, #7B5BA0);
    font-weight: 500;
}

.szb-series-notice {
    background: #f3eef8;
    border-left: 3px solid var(--szb-primary, #7B5BA0);
    padding: 10px 14px;
    margin: 0 0 18px;
    border-radius: 4px;
    font-size: 14px;
    color: #4a4458;
}

.szb-booking-form .szb-field {
    margin-bottom: 14px;
}
.szb-booking-form .szb-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.szb-booking-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #4a4458;
    font-weight: 500;
}
.szb-booking-form input[type="text"],
.szb-booking-form input[type="email"],
.szb-booking-form input[type="tel"],
.szb-booking-form input[type="number"],
.szb-booking-form select,
.szb-booking-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d5cee0;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.szb-booking-form input:focus,
.szb-booking-form select:focus,
.szb-booking-form textarea:focus {
    outline: none;
    border-color: var(--szb-primary, #7B5BA0);
    box-shadow: 0 0 0 3px rgba(123, 91, 160, 0.12);
}

.szb-field-spots input { max-width: 100px; }

.szb-field-consent label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-weight: 400;
    font-size: 14px;
    color: #4a4458;
    cursor: pointer;
}
.szb-field-consent input { margin-top: 3px; flex-shrink: 0; }

.szb-form-submit { margin-top: 20px; }

.szb-btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.szb-btn-primary {
    background: var(--szb-primary, #7B5BA0);
    color: #fff;
}
.szb-btn-primary:hover {
    background: #6a4d8c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(123, 91, 160, 0.2);
}
.szb-btn-primary:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.szb-form-message {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
}
.szb-form-message.is-success {
    background: #e7f3eb;
    color: #2d6e41;
    border-left: 3px solid #4a8b5e;
}
.szb-form-message.is-error {
    background: #fce5e5;
    color: #8c3434;
    border-left: 3px solid #b94a4a;
}

/* Events list */
.szb-events-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin: 30px 0;
}
.szb-events-list .szb-event-card {
    background: #fff;
    border: 1px solid #e5dfeb;
    border-radius: 8px;
    overflow: hidden;
}
.szb-event-card-image img { width: 100%; height: 180px; object-fit: cover; display: block; }
.szb-event-card-body { padding: 18px 22px; }
.szb-event-card-body h3 { margin: 0 0 8px; color: var(--szb-primary, #7B5BA0); }
.szb-event-next-date { margin-top: 12px; font-size: 14px; color: #6b6478; }

/* Responsive */
@media (max-width: 600px) {
    .szb-booking-form .szb-field-row { grid-template-columns: 1fr; }
    .szb-event-detail { margin: 20px 12px; }
    .szb-booking-form-wrap { padding: 18px 16px; }
}
