/* Booking Card system — shared between public e.g. BookingPage and admin OfferOverview. */

/* ---- Card container ---- */
.booking-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.booking-card:hover {
    transform: translateY(-2px);
    border-color: var(--teal-300);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

/* Card a deep link points at (?pay=1). A tinted surface rather than a ring: it reads as
   emphasis even when the card is already on screen, which is the common case — this page is
   rarely more than ~250px taller than the viewport, so there is little to scroll to.
   The :hover selector is repeated because .booking-card:hover would otherwise win on
   specificity and pull the border back to the ordinary hover colour, weakening the highlight
   exactly when the user reaches for it. */
.booking-card-highlight,
.booking-card-highlight:hover {
    background: var(--teal-50);
    border-color: var(--teal-500);
}

.booking-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.booking-card-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--teal-50);
    color: var(--teal-600);
    font-size: 1.1rem;
}

.booking-card-title {
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    font-size: 1rem;
}

.booking-card-body {
    padding-top: 12px;
    padding-left: 52px;
}

/* ---- Typography helpers (used inside card bodies) ---- */
.booking-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 4px;
}

.booking-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.booking-tbc {
    color: var(--champagne-700);
    font-style: italic;
    font-size: 0.9rem;
    margin: 0;
}

.booking-summary {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* ---- Info / payment rows ---- */
.booking-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--pearl-400);
}

.booking-payment-row:last-of-type {
    border-bottom: none;
}

/* ---- Status badges ---- */
.booking-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--steel-50);
    color: var(--text-secondary);
}

.booking-status-paid {
    background: var(--teal-50);
    color: var(--teal-700);
}

.booking-status-open {
    background: var(--champagne-100);
    color: var(--champagne-800);
}

.booking-status-info {
    background: var(--steel-50);
    color: var(--steel-700);
}

.booking-status-success {
    background: #EAF3DE;
    color: #27500A;
}

.booking-status-danger {
    background: #FCEBEB;
    color: #A32D2D;
}

/* ---- Cancelled banner ---- */
.booking-cancelled-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 14px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
}

.booking-cancelled-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #FEE2E2;
    color: #DC2626;
    font-size: 1.1rem;
}

.booking-cancelled-title {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #991B1B;
}

.booking-cancelled-text {
    margin: 4px 0 0;
    font-size: 0.875rem;
    color: #B91C1C;
    line-height: 1.4;
}

/* ---- Edit-mode form layout (shared) ---- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px 16px;
    margin: 4px 0;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Text-like Syncfusion inputs fill the cell; switch/checkbox stay natural */
.form-field .e-input-group,
.form-field .e-control-wrapper {
    width: 100% !important;
}

/* ---- Premium input polish inside the form grid (scoped, reusable) ---- */
.form-field .e-input-group,
.form-field .e-input-group.e-control-wrapper {
    border: 1px solid var(--border-light) !important;
    border-radius: 8px !important;
    background: var(--surface);
    min-height: 40px;
    align-items: center;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.form-field .e-input-group:hover:not(.e-input-focus):not(.e-disabled) {
    border-color: var(--border-default) !important;
}

.form-field .e-input-group.e-input-focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15) !important;
}

.form-field .e-input-group input.e-input,
.form-field .e-input-group .e-ddl-icon,
.form-field .e-input-group .e-input-group-icon {
    min-height: 38px;
}

/* ---- Responsive (mobile) ---- */
@media (max-width: 768px) {
    .booking-card {
        padding: 16px;
    }

    .booking-card-body {
        padding-left: 0;
        padding-top: 10px;
    }
}
