/* TFA Bachelor Party Booking Widget */

:root {
    --tfa-primary: #c8a94e;
    --tfa-primary-dark: #b0922e;
    --tfa-bg: #0d0d0d;
    --tfa-surface: #1a1a1a;
    --tfa-surface-hover: #242424;
    --tfa-surface-active: #2a2a2a;
    --tfa-border: #333;
    --tfa-text: #f0f0f0;
    --tfa-text-muted: #999;
    --tfa-text-dim: #666;
    --tfa-success: #2ecc71;
    --tfa-danger: #e74c3c;
    --tfa-radius: 8px;
    --tfa-radius-lg: 12px;
    --tfa-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tfa-booking {
    font-family: var(--tfa-font);
    color: var(--tfa-text);
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
    -webkit-font-smoothing: antialiased;
}

.tfa-booking *, .tfa-booking *::before, .tfa-booking *::after {
    box-sizing: border-box;
}

/* Step Indicator */
.tfa-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    padding: 48px 0 0;
}

.tfa-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.35;
    transition: opacity 0.3s;
}

.tfa-step.active,
.tfa-step.completed {
    opacity: 1;
}

.tfa-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--tfa-surface);
    border: 2px solid var(--tfa-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
}

.tfa-step.active .tfa-step-num {
    background: var(--tfa-primary);
    border-color: var(--tfa-primary);
    color: #000;
}

.tfa-step.completed .tfa-step-num {
    background: var(--tfa-primary-dark);
    border-color: var(--tfa-primary-dark);
    color: #000;
}

.tfa-step-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tfa-text-muted);
    white-space: nowrap;
}

.tfa-step.active .tfa-step-label {
    color: var(--tfa-primary);
}

.tfa-step-line {
    flex: 1;
    height: 2px;
    background: var(--tfa-border);
    margin: 0 8px;
    margin-bottom: 22px;
    max-width: 60px;
}

/* Headings */
.tfa-heading {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px;
    text-align: center;
}

.tfa-sub-heading {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 12px;
    color: var(--tfa-text-muted);
}

/* Package Cards */
.tfa-packages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 560px) {
    .tfa-packages {
        grid-template-columns: 1fr;
    }
}

.tfa-package-card {
    background: var(--tfa-surface);
    border: 2px solid var(--tfa-border);
    border-radius: var(--tfa-radius-lg);
    padding: 0;
    cursor: pointer;
    transition: all 0.25s;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tfa-package-card:hover {
    border-color: var(--tfa-primary);
    background: var(--tfa-surface-hover);
    transform: translateY(-2px);
}

.tfa-package-img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.tfa-package-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tfa-package-card:hover .tfa-package-img {
    transform: scale(1.05);
}

.tfa-package-body {
    padding: 24px 20px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tfa-package-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

.tfa-package-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.tfa-package-tagline {
    font-size: 14px;
    color: var(--tfa-primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.tfa-package-desc {
    font-size: 13px;
    color: var(--tfa-text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.tfa-package-price {
    font-size: 14px;
    color: var(--tfa-text-muted);
    margin-bottom: 16px;
}

.tfa-btn--choose {
    margin-top: auto;
    width: 100%;
}

.tfa-package-price strong {
    color: var(--tfa-text);
    font-size: 22px;
}

/* Back Button */
.tfa-back {
    background: none;
    border: none;
    color: var(--tfa-text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-bottom: 16px;
    transition: color 0.2s;
    font-family: var(--tfa-font);
}

.tfa-back:hover {
    color: var(--tfa-primary);
}

/* Selected Package Bar */
.tfa-selected-package-bar,
.tfa-summary-bar {
    background: var(--tfa-surface);
    border: 1px solid var(--tfa-border);
    border-radius: var(--tfa-radius);
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tfa-bar-icon {
    font-size: 24px;
}

.tfa-bar-text {
    flex: 1;
}

.tfa-bar-text strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.tfa-bar-text span {
    color: var(--tfa-text-muted);
    font-size: 13px;
}

/* Calendar */
.tfa-calendar-wrap {
    background: var(--tfa-surface);
    border: 1px solid var(--tfa-border);
    border-radius: var(--tfa-radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.tfa-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.tfa-cal-month {
    font-size: 18px;
    font-weight: 700;
}

.tfa-cal-nav {
    background: none;
    border: 1px solid var(--tfa-border);
    color: var(--tfa-text);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-family: var(--tfa-font);
    line-height: 1;
}

.tfa-cal-nav:hover {
    border-color: var(--tfa-primary);
    color: var(--tfa-primary);
}

.tfa-cal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.tfa-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 8px;
}

.tfa-cal-weekdays span {
    font-size: 12px;
    font-weight: 600;
    color: var(--tfa-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 0;
}

.tfa-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.tfa-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 500;
    cursor: default;
    transition: all 0.2s;
    border: none;
    background: none;
    color: var(--tfa-text-dim);
    font-family: var(--tfa-font);
    padding: 0;
    min-width: 0;
}

.tfa-cal-day.tfa-cal-empty {
    visibility: hidden;
}

.tfa-cal-day.tfa-cal-available {
    color: var(--tfa-text);
    cursor: pointer;
    background: var(--tfa-surface-hover);
}

.tfa-cal-day.tfa-cal-available:hover {
    background: var(--tfa-primary);
    color: #000;
}

.tfa-cal-day.tfa-cal-selected {
    background: var(--tfa-primary);
    color: #000;
    font-weight: 700;
}

.tfa-cal-day.tfa-cal-today {
    border: 2px solid var(--tfa-primary);
}

/* Time Slots */
.tfa-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.tfa-slot {
    background: var(--tfa-surface);
    border: 2px solid var(--tfa-border);
    border-radius: var(--tfa-radius);
    padding: 14px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--tfa-font);
    font-size: 15px;
    font-weight: 600;
    color: var(--tfa-text);
}

.tfa-slot:hover {
    border-color: var(--tfa-primary);
    background: var(--tfa-surface-hover);
}

.tfa-slot.selected {
    border-color: var(--tfa-primary);
    background: var(--tfa-primary);
    color: #000;
}

.tfa-slot.unavailable {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Fallback CTA */
.tfa-no-slots-fallback {
    background: var(--tfa-surface);
    border: 1px solid var(--tfa-border);
    border-radius: var(--tfa-radius);
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--tfa-text-muted);
    line-height: 1.6;
    margin-top: 16px;
}

.tfa-link {
    color: var(--tfa-primary);
    text-decoration: none;
    font-weight: 600;
}

.tfa-link:hover {
    text-decoration: underline;
}

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

.tfa-form-row {
    margin-bottom: 16px;
}

.tfa-form-row--half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .tfa-form-row--half {
        grid-template-columns: 1fr;
    }
}

.tfa-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--tfa-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tfa-field input,
.tfa-field textarea,
.tfa-field select {
    width: 100%;
    padding: 12px 14px;
    background: var(--tfa-surface);
    border: 1px solid var(--tfa-border);
    border-radius: var(--tfa-radius);
    color: var(--tfa-text);
    font-size: 15px;
    font-family: var(--tfa-font);
    transition: border-color 0.2s;
}

.tfa-field input:focus,
.tfa-field textarea:focus {
    outline: none;
    border-color: var(--tfa-primary);
}

.tfa-field input::placeholder,
.tfa-field textarea::placeholder {
    color: var(--tfa-text-dim);
}

.tfa-field-hint {
    display: block;
    font-size: 12px;
    color: var(--tfa-text-dim);
    margin-top: 4px;
}

.tfa-optional {
    font-weight: 400;
    color: var(--tfa-text-dim);
    text-transform: none;
}

/* Price Box */
.tfa-price-box {
    background: var(--tfa-surface);
    border: 1px solid var(--tfa-border);
    border-radius: var(--tfa-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.tfa-price-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--tfa-text-muted);
}

.tfa-price-row.tfa-price-total {
    border-top: 1px solid var(--tfa-border);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--tfa-text);
}

.tfa-price-row.tfa-price-due {
    font-size: 18px;
    font-weight: 700;
    color: var(--tfa-primary);
}

.tfa-price-tier {
    display: inline-block;
    background: var(--tfa-primary);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

/* Terms Box */
.tfa-terms-box {
    background: var(--tfa-surface);
    border: 1px solid var(--tfa-border);
    border-radius: var(--tfa-radius);
    padding: 20px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--tfa-text-muted);
    line-height: 1.6;
}

.tfa-terms-box p {
    margin: 0 0 8px;
    font-weight: 600;
    color: var(--tfa-text);
}

.tfa-terms-box ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

.tfa-terms-box li {
    margin-bottom: 4px;
}

.tfa-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--tfa-text);
}

.tfa-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--tfa-primary);
    flex-shrink: 0;
}

.tfa-checkbox a {
    color: var(--tfa-primary);
    text-decoration: none;
}

.tfa-checkbox a:hover {
    text-decoration: underline;
}

/* Buttons */
.tfa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: var(--tfa-radius);
    font-family: var(--tfa-font);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
}

.tfa-btn--primary {
    background: var(--tfa-primary);
    color: #000;
}

.tfa-btn--primary:hover {
    background: var(--tfa-primary-dark);
    transform: translateY(-1px);
}

.tfa-btn--primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.tfa-btn--full {
    width: 100%;
}

/* Payment */
.tfa-payment-summary {
    background: var(--tfa-surface);
    border: 1px solid var(--tfa-border);
    border-radius: var(--tfa-radius);
    padding: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.7;
}

.tfa-iframe-wrap {
    border: 1px solid var(--tfa-border);
    border-radius: var(--tfa-radius);
    overflow: hidden;
    min-height: 400px;
    position: relative;
    background: #fff;
}

#tfa-payment-iframe {
    width: 100%;
    height: 700px;
    border: none;
    display: none;
}

/* Loading Spinner */
.tfa-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--tfa-text-muted);
    font-size: 14px;
}

.tfa-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--tfa-border);
    border-top-color: var(--tfa-primary);
    border-radius: 50%;
    animation: tfa-spin 0.8s linear infinite;
    margin-bottom: 16px;
}

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

/* Confirmation */
.tfa-confirmation {
    text-align: center;
    padding: 40px 20px;
}

.tfa-confirm-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--tfa-success);
    color: #fff;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.tfa-confirm-msg {
    color: var(--tfa-text-muted);
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.tfa-confirm-details {
    background: var(--tfa-surface);
    border: 1px solid var(--tfa-border);
    border-radius: var(--tfa-radius);
    padding: 20px;
    text-align: left;
    font-size: 14px;
    line-height: 1.8;
    display: inline-block;
    min-width: 300px;
}

/* Error */
.tfa-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--tfa-danger);
    border-radius: var(--tfa-radius);
    padding: 12px 16px;
    color: var(--tfa-danger);
    font-size: 14px;
    margin-bottom: 16px;
}

/* Transitions */
.tfa-panel {
    animation: tfa-fadeIn 0.3s ease;
}

@keyframes tfa-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Package Section Spacing */
.tfa-panel[data-panel="1"] {
    padding-bottom: 48px;
}

/* Package Badge & Featured */
.tfa-package-card {
    position: relative;
}

.tfa-package-featured {
    border-color: var(--tfa-primary);
    box-shadow: 0 0 0 1px var(--tfa-primary), 0 4px 20px rgba(200, 169, 78, 0.15);
}

.tfa-package-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--tfa-primary);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Package Highlights */
.tfa-package-highlights {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tfa-package-highlights li {
    font-size: 12px;
    color: var(--tfa-muted);
    background: rgba(200, 169, 78, 0.08);
    border: 1px solid rgba(200, 169, 78, 0.15);
    border-radius: 20px;
    padding: 3px 10px;
}

/* Price Note */
.tfa-price-note span {
    font-size: 12px;
    color: var(--tfa-muted);
    font-style: italic;
}

/* Payment Summary Lines */
.tfa-pay-line {
    display: block;
    font-size: 13px;
    color: var(--tfa-muted);
    margin-bottom: 2px;
}

/* Responsive */
@media (max-width: 480px) {
    .tfa-heading {
        font-size: 20px;
    }

    .tfa-step-label {
        font-size: 10px;
    }

    .tfa-step-num {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .tfa-step-line {
        max-width: 30px;
    }

    .tfa-calendar-wrap {
        padding: 12px;
    }

    .tfa-cal-day {
        font-size: 12px;
    }

    .tfa-slots {
        grid-template-columns: 1fr 1fr;
    }

    .tfa-confirmation {
        padding: 24px 12px;
    }

    .tfa-confirm-details {
        min-width: 0;
        width: 100%;
    }
}
