/* booking-widget.css */
:root {
    --bw-primary: #0A192F;
    --bw-primary-hover: #112B52;
    --bw-accent: #D4AF37;
    --bw-accent-hover: #F3CA4B;
    --bw-bg: #FFFFFF;
    --bw-bg-alt: #F8FAFC;
    --bw-text-dark: #1E293B;
    --bw-text-light: #64748B;
    --bw-border: #E2E8F0;
    --bw-shadow: 0 10px 25px rgba(10, 25, 47, 0.08);
    --bw-radius: 16px;
    --bw-radius-sm: 10px;
    --bw-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* booking-widget.css — Embedded in dashboard.html and index.html.
   Do NOT add global body{} rules here — they would override the host page. */


/* Widget Container */
.bw-container {
    width: 100%;
    max-width: 500px;
    background: var(--bw-bg);
    border-radius: var(--bw-radius);
    box-shadow: var(--bw-shadow);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Header */
.bw-header {
    background: linear-gradient(135deg, var(--bw-primary) 0%, #112B52 100%);
    color: white;
    padding: 24px;
    text-align: center;
}

.bw-header h2 {
    font-family: 'Outfit', sans-serif;
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--bw-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bw-header p {
    margin: 0;
    font-size: 14px;
    color: #CBD5E1;
}

/* Tabs */
.bw-tabs {
    display: flex;
    background: var(--bw-bg-alt);
    padding: 12px;
    gap: 8px;
    border-bottom: 1px solid var(--bw-border);
}

.bw-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--bw-text-light);
    border-radius: var(--bw-radius-sm);
    cursor: pointer;
    transition: var(--bw-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.bw-tab i {
    font-size: 18px;
}

.bw-tab:hover {
    color: var(--bw-primary);
    background: #F1F5F9;
}

.bw-tab.active {
    background: var(--bw-bg);
    color: var(--bw-primary);
    border: 2px solid var(--bw-accent);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1) translateY(-2px); opacity: 1; }
}

/* Content Area */
.bw-content-area {
    padding: 24px;
    position: relative;
    min-height: 300px;
}

.bw-flow {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.bw-flow.active {
    display: block;
}

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

/* Form Groups */
.bw-form-group {
    margin-bottom: 20px;
}

.bw-row {
    display: flex;
    gap: 16px;
}
.bw-row .bw-form-group {
    flex: 1;
}

@media (max-width: 600px) {
    .bw-row {
        flex-direction: column;
        gap: 0;
    }
}

.bw-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--bw-text-dark);
    margin-bottom: 8px;
}

.bw-help-text {
    font-size: 12px;
    color: var(--bw-text-light);
    margin-top: -4px;
    margin-bottom: 12px;
}

.bw-input-icon {
    position: relative;
}

.bw-input-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bw-primary);
    font-size: 16px;
    pointer-events: none;
}

.bw-input-icon input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid var(--bw-border);
    border-radius: var(--bw-radius-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--bw-primary);
    font-family: 'Inter', sans-serif;
    transition: var(--bw-transition);
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    box-sizing: border-box;
}

.bw-input-icon input:focus {
    outline: none;
    border-color: var(--bw-accent);
    background: var(--bw-bg);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

/* Categories Grid */
.bw-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

@media (max-width: 420px) {
    .bw-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.bw-cat-item {
    padding: 8px 4px;
    text-align: center;
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--bw-text-light);
    cursor: pointer;
    transition: var(--bw-transition);
}

.bw-cat-item:hover {
    border-color: #CBD5E1;
}

.bw-cat-item.active {
    background: var(--bw-primary);
    color: white;
    border-color: var(--bw-primary);
}

/* Vehicle Selection List */
.bw-vehicle-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bw-vehicle-card {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius-sm);
    cursor: pointer;
    transition: var(--bw-transition);
    background: var(--bw-bg-alt);
}

.bw-vehicle-card:hover {
    border-color: var(--bw-primary);
    background: var(--bw-bg);
}

.bw-vehicle-card.selected {
    border-color: var(--bw-primary);
    background: #F0F4FA;
    box-shadow: 0 2px 8px rgba(10, 25, 47, 0.05);
}

.bw-vehicle-img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
    background: #E2E8F0; /* placeholder bg */
}

.bw-vehicle-info {
    flex: 1;
}

.bw-vehicle-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--bw-text-dark);
    margin-bottom: 2px;
}

.bw-vehicle-specs {
    font-size: 11px;
    color: var(--bw-text-light);
    display: flex;
    gap: 8px;
    margin-bottom: 2px;
}

.bw-vehicle-specs i {
    color: var(--bw-accent);
}

.bw-vehicle-rate {
    font-size: 12px;
    color: var(--bw-text-light);
}

.bw-vehicle-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #CBD5E1;
    position: relative;
}

.bw-vehicle-card.selected .bw-vehicle-radio {
    border-color: var(--bw-primary);
}

.bw-vehicle-card.selected .bw-vehicle-radio::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--bw-primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Summary Box */
.bw-summary-box {
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    border-radius: var(--bw-radius-sm);
    padding: 16px;
    margin-bottom: 24px;
}

.bw-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--bw-text-dark);
    margin-bottom: 8px;
}

.bw-summary-row:last-child {
    margin-bottom: 0;
}

.bw-font-bold {
    font-weight: 600;
}

.bw-total-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--bw-primary);
    border-top: 1px solid #E2E8F0;
    padding-top: 8px;
    margin-top: 8px;
}

/* Buttons */
.bw-btn-primary {
    width: 100%;
    background: var(--bw-accent);
    color: var(--bw-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 16px;
    border: none;
    border-radius: var(--bw-radius-sm);
    cursor: pointer;
    transition: var(--bw-transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.bw-btn-primary:hover {
    background: var(--bw-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.bw-btn-secondary {
    width: 100%;
    background: white;
    color: var(--bw-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 12px;
    border: 1px dashed #CBD5E1;
    border-radius: var(--bw-radius-sm);
    cursor: pointer;
    transition: var(--bw-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bw-btn-secondary:hover {
    border-color: var(--bw-primary);
    color: var(--bw-primary);
    background: #F1F5F9;
}

/* Itinerary Builder */
.bw-itinerary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.bw-itinerary-item {
    background: var(--bw-bg-alt);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius-sm);
    padding: 12px;
    position: relative;
}

.bw-itinerary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bw-itinerary-day-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--bw-primary);
    background: #E2E8F0;
    padding: 2px 8px;
    border-radius: 4px;
}

.bw-itinerary-remove {
    background: none;
    border: none;
    color: #EF4444;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
}

.bw-itinerary-remove:hover {
    color: #DC2626;
}

.bw-itinerary-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.bw-itinerary-input:focus {
    outline: none;
    border-color: var(--bw-primary);
}
