/* =====================================================
   TransferBook — Frontend Styles
   ===================================================== */

.wctb-booking-wrap {
    margin: 24px 0;
    font-family: inherit;
}

/* Sections */
.wctb-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.wctb-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 20px;
    color: #111827;
}

.wctb-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #0ea5e9;
    color: #fff;
    border-radius: 50%;
    font-size: .8rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ---- Trip Type Toggle ---- */
.wctb-trip-toggle {
    display: flex;
    gap: 0;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    max-width: 420px;
}

.wctb-trip-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: #fff;
    border: none;
    font-size: .95rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all .25s ease;
    white-space: nowrap;
}

.wctb-trip-btn:first-child {
    border-right: 2px solid #e5e7eb;
}

.wctb-trip-btn:hover {
    background: #f0f9ff;
    color: #0ea5e9;
}

.wctb-trip-btn.active {
    background: #0ea5e9;
    color: #fff;
}

.wctb-trip-btn.active svg {
    stroke: #fff;
}

.wctb-trip-btn svg {
    flex-shrink: 0;
    stroke: currentColor;
}

/* ---- Dates ---- */
.wctb-dates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 700px) {
    .wctb-dates-grid { grid-template-columns: 1fr; }
}

.wctb-date-col { min-width: 0; }

.wctb-date-label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.wctb-return-date {
    animation: wctb-slideIn .3s ease;
}

@keyframes wctb-slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.wctb-dates-section .flatpickr-calendar {
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    width: 100% !important;
    max-width: 340px;
}

.wctb-dates-section .flatpickr-calendar.inline { display: block; }

.flatpickr-day.wctb-blocked-day {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    text-decoration: line-through;
    cursor: not-allowed !important;
    border-radius: 6px;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
    border-radius: 6px !important;
}

.flatpickr-day:hover:not(.disabled) {
    background: #e0f2fe !important;
    border-radius: 6px !important;
}

.wctb-selected-date-display {
    margin-top: 10px;
    font-size: .9rem;
    color: #0ea5e9;
    font-weight: 600;
    min-height: 22px;
    transition: all .2s ease;
}

.wctb-date-selected { color: #0369a1; }

/* ---- Addresses ---- */
.wctb-address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .wctb-address-grid { grid-template-columns: 1fr; }
}

.wctb-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wctb-form-group label {
    font-size: .875rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wctb-required { color: #ef4444; }

.wctb-form-group input {
    padding: 12px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: .95rem;
    color: #1f2937;
    transition: border-color .2s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.wctb-form-group input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}

/* Google Places dropdown */
.pac-container {
    z-index: 100000 !important;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    border: 1px solid #e5e7eb;
    margin-top: 4px;
}

.pac-item {
    padding: 8px 12px;
    font-size: .9rem;
    cursor: pointer;
}

.pac-item:hover { background: #f0f9ff; }

/* ---- Counters (passengers / luggage) ---- */
.wctb-tariff-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

.wctb-tariff-row:last-of-type { border-bottom: none; }

.wctb-tariff-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.wctb-tariff-label {
    font-weight: 700;
    font-size: 1rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wctb-tariff-ages {
    font-size: .82rem;
    color: #6b7280;
}

.wctb-counter {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.wctb-counter-btn {
    background: #f9fafb;
    border: none;
    padding: 8px 14px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    line-height: 1;
    transition: background .15s;
    outline: none;
    min-width: 36px;
}

.wctb-counter-btn:hover { background: #e5e7eb; }

.wctb-counter-value {
    min-width: 36px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
    padding: 0 6px;
    border-left: 1.5px solid #d1d5db;
    border-right: 1.5px solid #d1d5db;
}

/* ---- Optional badge ---- */
.wctb-optional-badge {
    font-size: .72rem;
    font-weight: 500;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 20px;
    padding: 2px 10px;
    margin-left: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ---- Package Cards ---- */
.wctb-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 4px;
}

.wctb-package-card {
    position: relative;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 16px 14px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .15s;
    background: #fff;
    user-select: none;
}

.wctb-package-card:hover {
    border-color: #7dd3fc;
    box-shadow: 0 4px 14px rgba(14,165,233,.1);
    transform: translateY(-2px);
}

.wctb-package-card.selected {
    border-color: #0ea5e9;
    background: #f0f9ff;
    box-shadow: 0 0 0 3px rgba(14,165,233,.18);
}

.wctb-package-card.wctb-package-none {
    border-style: dashed;
    opacity: .75;
}

.wctb-package-card.wctb-package-none.selected { opacity: 1; }

.wctb-pkg-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
    color: #fff;
    font-size: .73rem;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.wctb-pkg-card-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wctb-pkg-icon { font-size: 1.4rem; }

.wctb-pkg-name {
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
}

.wctb-pkg-desc {
    font-size: .83rem;
    color: #6b7280;
    line-height: 1.4;
}

.wctb-pkg-includes {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wctb-pkg-includes li {
    font-size: .82rem;
    color: #374151;
    display: flex;
    gap: 4px;
}

.wctb-pkg-check {
    display: none;
    position: absolute;
    top: 10px;
    right: 12px;
    width: 22px;
    height: 22px;
    background: #0ea5e9;
    color: #fff;
    border-radius: 50%;
    font-size: .8rem;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.wctb-package-card.selected .wctb-pkg-check { display: flex; }

/* ---- Terms ---- */
.wctb-terms-row { display: flex; align-items: flex-start; }

.wctb-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: .95rem;
    color: #374151;
    line-height: 1.5;
}

.wctb-terms-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #0ea5e9;
    cursor: pointer;
}

.wctb-terms-label a {
    color: #0ea5e9;
    text-decoration: underline;
}

/* ---- Notice ---- */
.wctb-notice {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: .95rem;
    margin-bottom: 12px;
}

.wctb-notice ul { margin: 0; padding: 0 0 0 18px; }
.wctb-notice li { margin-bottom: 4px; }

.wctb-notice-error {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    color: #dc2626;
}

.wctb-notice-success {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    color: #16a34a;
}

.wctb-notice-warning {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    color: #d97706;
}

/* ---- Time Input ---- */
.wctb-time-group {
    margin-top: 14px;
}

.wctb-time-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.wctb-time-group input[type="time"] {
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: .95rem;
    color: #1f2937;
    outline: none;
    transition: border-color .2s;
    width: 100%;
    max-width: 180px;
    box-sizing: border-box;
}

.wctb-time-group input[type="time"]:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}

/* ---- WhatsApp Button ---- */
.wctb-whatsapp-wrap { margin-top: 8px; }

.wctb-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .01em;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(37,211,102,.28);
    white-space: nowrap;
}

.wctb-whatsapp-btn:hover {
    background: #1db954;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,211,102,.38);
}

.wctb-whatsapp-btn:active { transform: translateY(0); }
.wctb-whatsapp-btn svg    { flex-shrink: 0; }

.wctb-whatsapp-hint {
    margin-top: 10px;
    font-size: .8rem;
    color: #9ca3af;
    text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 500px) {
    .wctb-section { padding: 18px 16px; }

    .wctb-trip-toggle {
        flex-direction: column;
        max-width: 100%;
    }

    .wctb-trip-btn:first-child {
        border-right: none;
        border-bottom: 2px solid #e5e7eb;
    }

    .wctb-tariff-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .wctb-packages-grid { grid-template-columns: 1fr; }
}
