/* ═══════════════════════════════════════════════════════
   Appoiint Booking — tyga.agency style
   ═══════════════════════════════════════════════════════ */

/* ── Booking Container ── */
.booking-container-direct {
    width: 100%;
    max-width: 1128px;
    margin: 0 auto;
    padding: 0;
}

.booking-row-direct {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: flex-start;
}

.booking-col-direct {
    flex: 0 1 400px;
    max-width: 440px;
    width: 100%;
}

/* ── Event Type Cards ── */
#event-types-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-card {
    background: #FFFFFF;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.event-card.selected {
    border-color: #000000;
    border-width: 2px;
}

.event-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.3;
    font-family: var(--brand-font-heading, 'Montserrat', sans-serif);
}

.event-description {
    font-size: 0.9rem;
    color: #6B7280;
    margin: 0 0 14px 0;
    line-height: 1.5;
    font-family: var(--brand-font-body, 'Montserrat', sans-serif);
}

.event-description:empty {
    display: none;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.event-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 400;
    color: #6B7280;
}

.event-badge svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* ── Select Button (tyga.agency style) ── */
.event-select-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--brand-font-body, 'Montserrat', sans-serif);
    letter-spacing: 0.02em;
}

.event-select-btn:hover {
    background: #1A1A1A;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Selected state — navy button */
.event-card.selected .event-select-btn {
    background: #1E3A5F;
    color: #FFFFFF;
}

.event-card.selected .event-select-btn:hover {
    background: #152C4A;
}

/* ── Calendar Widget ── */
.calendar-widget-direct {
    background: #FFFFFF;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.calendar-header-direct {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-month-direct {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
    font-family: var(--brand-font-heading, 'Montserrat', sans-serif);
}

.calendar-nav-btn-direct {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    background: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #4A5568;
    transition: all 0.15s ease;
}

.calendar-nav-btn-direct:hover {
    background: #F3F4F6;
    border-color: rgba(0, 0, 0, 0.25);
}

.calendar-weekdays-direct {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.calendar-weekday-direct {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9CA3AF;
    padding: 6px 0;
    text-transform: uppercase;
}

.calendar-grid-direct {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

/* Calendar Day Cells */
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 400;
    color: #D1D5DB;
    cursor: default;
    transition: all 0.15s ease;
    font-family: var(--brand-font-body, 'Montserrat', sans-serif);
}

.calendar-day.other-month {
    visibility: hidden;
}

.calendar-day.past {
    color: #D1D5DB;
    cursor: default;
}

.calendar-day.unavailable {
    color: #D1D5DB;
    cursor: default;
}

.calendar-day.available {
    color: #111827;
    font-weight: 600;
    cursor: pointer;
    background: #F3F4F6;
}

.calendar-day.available:hover {
    background: #E5E7EB;
}

.calendar-day.today {
    background: #000000;
    color: #FFFFFF;
    font-weight: 700;
    cursor: pointer;
}

.calendar-day.today:hover {
    background: #1A1A1A;
}

.calendar-day.selected {
    background: #1E3A5F;
    color: #FFFFFF;
    font-weight: 700;
    cursor: pointer;
}

.calendar-day.selected:hover {
    background: #152C4A;
}

/* Time slot styles for calendar manager */
.time-slot-btn {
    padding: 0.6rem;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #FFFFFF;
    color: #111827;
    font-size: 0.85rem;
    font-weight: 500;
}

.time-slot-btn:hover {
    border-color: #000000;
    background: #F9FAFB;
}

.time-slot-btn.selected {
    background: #000000;
    border-color: #000000;
    color: #FFFFFF;
}

/* ── Time Slots ── */
.time-slots-direct {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
}

h4.mb-3-direct {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

/* ── Timezone Selector (pill style) ── */
.custom-timezone-dropdown-direct {
    position: relative;
    margin-top: 20px;
}

.timezone-selector-direct {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 2px solid #000000;
    border-radius: 50px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #4A5568;
    width: 100%;
    transition: border-color 0.15s ease;
    font-family: var(--brand-font-body, 'Montserrat', sans-serif);
}

.timezone-selector-direct:hover {
    border-color: #4A5568;
}

.timezone-icon-direct { font-size: 16px; }
.timezone-text-direct { flex: 1; text-align: left; font-weight: 500; }
.timezone-arrow-direct { font-size: 14px; }

.custom-timezone-dropdown-menu-direct {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 200px;
    overflow-y: auto;
    list-style: none;
    padding: 4px;
    margin: 0 0 4px 0;
    display: none;
    z-index: 100;
}

.custom-timezone-dropdown-menu-direct.show { display: block; }

.custom-timezone-dropdown-menu-direct li {
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #4A5568;
    cursor: pointer;
    border-radius: 8px;
}

.custom-timezone-dropdown-menu-direct li:hover { background: #F3F4F6; }

/* ── Booking Form ── */
.booking-form-direct {
    background: #FFFFFF;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.booking-form-direct h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    font-family: var(--brand-font-heading, 'Montserrat', sans-serif);
}

.form-label-direct {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4A5568;
    margin-bottom: 6px;
    font-family: var(--brand-font-body, 'Montserrat', sans-serif);
}

.form-control-direct {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #111827;
    background: #FFFFFF;
    transition: border-color 0.15s ease;
    font-family: inherit;
}

.form-control-direct:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

textarea.form-control-direct { resize: vertical; }

.mb-3-direct { margin-bottom: 16px; }
.mb-4-direct { margin-bottom: 20px; }
.mt-2 { margin-top: 8px; }

.btn-primary-custom-direct {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 24px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--brand-font-body, 'Montserrat', sans-serif);
}

.btn-primary-custom-direct:hover {
    background: #1A1A1A;
    color: #1E3A5F;
}

.w-100-direct { width: 100%; }

/* ── Checkbox ── */
.form-check-direct { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.form-check-input-direct { margin-top: 3px; accent-color: #1E3A5F; }
.form-check-label-direct { font-size: 0.8rem; color: #6B7280; line-height: 1.4; }
.form-check-label-direct a { color: #000000; font-weight: 500; }

/* ── Payment ── */
.payment-header-direct { background: #F9FAFB; border-radius: 8px 8px 0 0; }
.payment-header-direct h5 { font-size: 1rem; font-weight: 600; color: #111827; margin: 0; }
.payment-body-direct { border: 1px solid rgba(0,0,0,0.1); border-top: none; border-radius: 0 0 8px 8px; }
.p-3-direct { padding: 16px; }
.d-flex-direct { display: flex; }
.justify-between-direct { justify-content: space-between; }
.mb-2-direct { margin-bottom: 8px; }
.mb-0-direct { margin-bottom: 0; }
.fw-bold-direct { font-weight: 700; }
.text-muted-direct { color: #6B7280; }
.text-danger-direct { color: #DC2626; }
.small-direct { font-size: 0.8rem; }
.mt-1-direct { margin-top: 4px; }
.bg-light-direct { background: #F9FAFB; }
.rounded-direct { border-radius: 8px; }
.security-badge-direct { text-align: center; font-size: 0.8rem; color: #6B7280; padding: 8px 0; }

/* ── Booking Summary ── */
#booking-summary {
    background: #F9FAFB;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 16px;
    font-size: 0.9rem;
}

/* ── Loading ── */
.loading-spinner-direct {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #000000;
    animation: spin-direct 0.8s ease-in-out infinite;
}

@keyframes spin-direct { to { transform: rotate(360deg); } }

.text-center-direct { text-align: center; }
.py-4 { padding: 32px 0; }

/* ── vCard Footer ── */
.vcard-footer {
    background: linear-gradient(180deg, color-mix(in srgb, var(--brand-text, #111827) 90%, #444) 0%, var(--brand-text, #111827) 100%);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.vcard-footer-powered {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--brand-secondary, #6B7280);
    font-weight: 500;
}

.vcard-footer-powered a {
    display: inline-flex;
    align-items: center;
}

.vcard-footer-logo {
    height: 20px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.vcard-footer-logo:hover {
    opacity: 1;
}

.vcard-footer-copyright {
    font-size: 0.7rem;
    color: var(--brand-secondary, #6B7280);
}

.vcard-footer-links {
    display: flex;
    gap: 16px;
}

.vcard-footer-links a {
    font-size: 0.75rem;
    color: var(--brand-secondary, #6B7280);
    text-decoration: none;
    transition: color 0.2s ease;
}

.vcard-footer-links a:hover {
    color: var(--brand-background, #ffffff);
}

@media (max-width: 768px) {
    .vcard-footer {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
    }
}

/* ── Legacy ── */
.btn { display: inline-flex; align-items: center; padding: 0.75rem 1.5rem; border-radius: 25px; font-weight: 500; text-decoration: none; transition: all 0.2s ease; border: none; cursor: pointer; font-size: 0.95rem; }
.btn-black { background: #000000; color: white; padding: 0.65rem 1.75rem; font-size: 0.8rem; letter-spacing: 0.05em; font-weight: 600; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45); }
.btn-black:hover { background: #1a1a1a; color: #1E3A5F; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); }
.loading-spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(255,255,255,.3); border-radius: 50%; border-top-color: #fff; animation: spin-direct 1s ease-in-out infinite; }
.time-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.75rem; }
.time-slot { padding: 0.75rem; border: 1px solid rgba(0,0,0,0.15); border-radius: 8px; text-align: center; cursor: pointer; transition: all 0.2s ease; background: #FFFFFF; color: #111827; font-size: 0.9rem; }
.time-slot:hover { border-color: #000000; background: #F9FAFB; }
.time-slot.selected { background-color: #000000; border-color: #000000; color: white; }
.time-slot.unavailable { background-color: #ffebee; border-color: #ef5350; color: #c62828; cursor: not-allowed; opacity: 0.6; }
#payment-section { margin-top: 1.5rem; margin-bottom: 1.5rem; }
#card-element { background: white; border: 1px solid rgba(0,0,0,0.2); border-radius: 8px; padding: 12px; transition: border-color 0.2s ease; }
#card-element:focus-within { border-color: #000; box-shadow: 0 0 0 3px rgba(0,0,0,0.05); }
#card-errors { min-height: 1.25rem; margin-top: 0.5rem; }
.form-check-input:checked { background-color: #1E3A5F; border-color: #1E3A5F; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .booking-row-direct {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .booking-col-direct {
        max-width: none;
        flex: 1 1 100%;
    }

    .event-card { padding: 20px; }
    .event-title { font-size: 1.05rem; }
    .time-slots-direct { grid-template-columns: repeat(2, 1fr); }
    .time-slots { grid-template-columns: repeat(2, 1fr); }
}
