/* tweller-flow/public/css/booking.css */
:root {
    --tf-primary: #1A1A1A;
    --tf-primary-hover: #0A0A0A;
    --tf-accent: #C9A84C;
    --tf-bg: #FFFFFF;
    --tf-card-bg: #FDFDFD;
    --tf-border: #E5E5E5;
    --tf-text: #52525B;
    --tf-text-dark: #1A1A1A;
    --tf-radius: 12px;
    --tf-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --tf-font: 'Inter', system-ui, -apple-system, sans-serif;
}

.tweller-booking {
    font-family: var(--tf-font);
    background: var(--tf-bg);
    color: var(--tf-text);
    max-width: 800px;
    margin: 40px auto;
    border-radius: var(--tf-radius);
    padding: 30px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
    border: 1px solid var(--tf-border);
    position: relative;
    overflow: hidden;
}

.tweller-booking__header {
    text-align: center;
    margin-bottom: 30px;
}

.tweller-booking__header h2 {
    color: var(--tf-text-dark);
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.tweller-booking__header p {
    margin: 0;
    color: var(--tf-text);
}

.tweller-booking__progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
}

.tf-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--tf-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: var(--tf-border);
    transition: all 0.3s ease;
}

.tf-step.active, .tf-step.completed {
    border-color: var(--tf-primary);
    color: var(--tf-primary);
}

.tf-step.completed {
    background: var(--tf-primary);
    color: white;
}

.tf-step-line {
    height: 2px;
    width: 50px;
    background: var(--tf-border);
    margin: 0 10px;
    transition: background 0.3s ease;
}

.tf-step.completed + .tf-step-line {
    background: var(--tf-primary);
}

/* Step containers */
.tweller-booking__step {
    animation: fadeIn 0.4s ease forwards;
}

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

.tf-back-btn {
    cursor: pointer;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 20px;
    color: var(--tf-primary);
    transition: color 0.2s;
}

.tf-back-btn:hover {
    color: var(--tf-accent);
}

/* Packages Grid */
.tf-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.tf-package-card {
    background: var(--tf-card-bg);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.tf-top-booked {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--tf-primary);
    color: var(--tf-accent);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 100px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tf-pkg-features {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    font-size: 14px;
    color: var(--tf-text);
    text-align: left;
}

.tf-pkg-features li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tf-checkmark {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23C9A84C" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    margin-top: 2px;
    flex-shrink: 0;
}

.tf-session-card {
    border: 1px solid var(--tf-border);
    background: var(--tf-bg);
}

.tf-btn-inquiry {
    display: inline-block;
    padding: 10px 20px;
    background: var(--tf-primary);
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
    text-align: center;
    margin-top: auto;
}
.tf-btn-inquiry:hover {
    background: var(--tf-primary-hover);
}

.tf-package-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tf-shadow);
    border-color: var(--tf-primary);
}

.tf-pkg-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--tf-text-dark);
    margin-bottom: 10px;
}

.tf-pkg-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--tf-accent);
    margin-bottom: 15px;
}

.tf-pkg-detail {
    font-size: 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Date Time Layout */
.tf-datetime-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
@media (max-width: 600px) {
    .tf-datetime-layout {
        grid-template-columns: 1fr;
    }
}

.tf-input-field {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    font-size: 16px;
    font-family: inherit;
    background: white;
    color: var(--tf-text-dark);
    outline: none;
    transition: border-color 0.2s;
}

.tf-input-field:focus {
    border-color: var(--tf-primary);
}

.tf-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 10px;
}

.tf-slot-btn {
    padding: 12px;
    text-align: center;
    background: white;
    border: 1px solid var(--tf-border);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.tf-slot-btn:hover {
    border-color: var(--tf-primary);
    background: var(--tf-primary);
    color: white;
}

.tf-slots-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 20px 0;
}

/* Form Styles */
.tf-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 500px) {
    .tf-form-row { grid-template-columns: 1fr; gap: 0; }
}

.tf-field {
    margin-bottom: 15px;
}

.tf-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--tf-text-dark);
}

.tf-field input, .tf-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--tf-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

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

.tf-btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--tf-primary);
    color: white;
    border: none;
    border-radius: var(--tf-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 15px;
}

.tf-btn-submit:hover {
    background: var(--tf-primary-hover);
}

/* Summary Card */
.tf-summary-card {
    background: var(--tf-primary);
    color: white;
    padding: 20px;
    border-radius: var(--tf-radius);
    margin-bottom: 25px;
}

.tf-summary-card h4 {
    margin: 0 0 10px 0;
    color: #e5e7eb;
}

.tf-summary-detail {
    font-size: 18px;
    font-weight: 600;
}

/* Loading Overlay */
.tweller-booking__loading {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.tf-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--tf-border);
    border-top-color: var(--tf-primary);
    border-radius: 50%;
    animation: tfspin 1s linear infinite;
    margin-bottom: 15px;
}
@keyframes tfspin { to { transform: rotate(360deg); } }

.tf-error-msg {
    color: var(--tf-accent);
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}
