/* Tour Booking Widget - Frontend Styles */

.tbw-container {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    max-width: 480px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

/* Price Header */
.tbw-price-header {
    margin-bottom: 20px;
}

.tbw-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.tbw-from-label {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
}

.tbw-original-price {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.tbw-current-price {
    font-size: 32px;
    font-weight: 700;
    color: #dc2626;
    line-height: 1.1;
}

.tbw-per-person {
    font-size: 14px;
    color: #1e293b;
    font-weight: 400;
}

/* Field Groups */
.tbw-field-group {
    margin-bottom: 14px;
}

.tbw-field {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #1e3a5f;
    border-radius: 12px;
    font-size: 15px;
    color: #64748b;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.tbw-field:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
    color: #1e293b;
}

.tbw-field::placeholder {
    color: #94a3b8;
}

/* Date Button */
.tbw-date-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    color: #475569;
    transition: background 0.2s, border-color 0.2s;
    text-align: left;
}

.tbw-date-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.tbw-date-btn.tbw-has-date {
    color: #1e293b;
    font-weight: 600;
    border-color: #2563eb;
    background: #eff6ff;
}

.tbw-date-icon {
    font-size: 18px;
}

.tbw-date-text {
    flex: 1;
}

.tbw-date-arrow {
    font-size: 10px;
    color: #94a3b8;
}

/* Participants */
.tbw-participant-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.tbw-participant-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tbw-participant-label {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.tbw-participant-sublabel {
    font-size: 13px;
    color: #64748b;
}

.tbw-counter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tbw-counter-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid #1e3a5f;
    background: transparent;
    color: #1e3a5f;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.tbw-counter-btn:hover:not(:disabled) {
    background: #1e3a5f;
    color: #ffffff;
}

.tbw-counter-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.tbw-counter-val {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    min-width: 24px;
    text-align: center;
}

.tbw-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0;
}

/* Tour Option */
.tbw-option-group {
    margin-top: 14px;
}

.tbw-option-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.tbw-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.tbw-textarea {
    min-height: 90px;
    resize: vertical;
    font-family: inherit;
}

/* Total Row */
.tbw-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 14px;
    border-top: 1px solid #f1f5f9;
    margin-top: 8px;
}

.tbw-total-label {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.tbw-total-amount {
    font-size: 24px;
    font-weight: 800;
    color: #dc2626;
}

/* Button */
.tbw-btn {
    width: 100%;
    padding: 16px 24px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    letter-spacing: 0.3px;
    margin-top: 4px;
    box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}

.tbw-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 20px rgba(37,99,235,0.45);
}

.tbw-btn:active {
    transform: scale(0.98);
}

.tbw-btn.tbw-loading {
    opacity: 0.75;
    cursor: not-allowed;
    pointer-events: none;
}

/* Error Message */
.tbw-error {
    margin-top: 10px;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
}

/* Badges */
.tbw-badges {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tbw-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tbw-badge-icon {
    font-size: 20px;
    color: #2563eb;
    flex-shrink: 0;
}

.tbw-badge-text {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
}

/* Flatpickr overrides */
.flatpickr-calendar {
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
    border: 1px solid #e2e8f0 !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
}

.flatpickr-day:hover {
    background: #eff6ff !important;
}

.flatpickr-months .flatpickr-month {
    background: #2563eb !important;
    color: #fff !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: #fff !important;
}

.flatpickr-weekdays {
    background: #eff6ff !important;
}

span.flatpickr-weekday {
    color: #2563eb !important;
    font-weight: 700;
}
