.booki-widget-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    box-sizing: border-box;
}

.booki-widget-container * {
    box-sizing: border-box;
}

.booki-widget-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.booki-widget-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.booki-widget-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.booki-widget-progress-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.booki-widget-progress-step.active .booki-widget-progress-number {
    background: var(--booki-primary-color, #1a56db);
    color: white;
}

.booki-widget-progress-label {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
}

.booki-widget-progress-step.active .booki-widget-progress-label {
    color: var(--booki-primary-color, #1a56db);
    font-weight: 600;
}

.booki-widget-step {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.booki-widget-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: #111827;
}

.booki-widget-subtitle {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 16px 0;
    color: #111827;
}

.booki-widget-form-group {
    margin-bottom: 20px;
}

.booki-widget-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.booki-widget-form-group input,
.booki-widget-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.booki-widget-form-group input:focus,
.booki-widget-form-group select:focus {
    outline: none;
    border-color: var(--booki-primary-color, #1a56db);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

#booki-phone-wrapper {
    width: 100%;
}

#booki-phone-wrapper .iti {
    width: 100%;
}

#booki-phone-wrapper .iti__tel-input {
    width: 100%;
    padding: 12px 12px 12px 52px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

#booki-phone-wrapper .iti__tel-input:focus {
    outline: none;
    border-color: var(--booki-primary-color, #1a56db);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

#booki-phone-wrapper .iti--separate-dial-code .iti__tel-input {
    padding-left: 90px;
}

#booki-phone-wrapper .iti__country-container {
    border-radius: 8px 0 0 8px;
}

#booki-phone-wrapper .iti__dropdown-content {
    z-index: 9999;
}

.booki-custom-select {
    position: relative;
    width: 100%;
}

.booki-custom-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    color: #374151;
}

.booki-custom-select-trigger:focus {
    outline: none;
    border-color: var(--booki-primary-color, #1a56db);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.booki-custom-select.open .booki-custom-select-trigger {
    border-color: var(--booki-primary-color, #1a56db);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.booki-custom-select-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--booki-primary-color, #1a56db);
}

.booki-custom-select-icon--placeholder {
    color: #9ca3af;
}

.booki-custom-select-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booki-custom-select-arrow {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.booki-custom-select.open .booki-custom-select-arrow {
    transform: rotate(180deg);
}

.booki-custom-select-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: 260px;
    overflow-y: auto;
}

.booki-custom-select.open .booki-custom-select-dropdown {
    display: block;
    animation: booki-dropdown-in 0.15s ease;
}

@keyframes booki-dropdown-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.booki-custom-select-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    color: #374151;
    transition: background 0.15s ease;
}

.booki-custom-select-option:hover {
    background: #f3f4f6;
}

.booki-custom-select-option.selected {
    background: rgba(26, 86, 219, 0.07);
    color: var(--booki-primary-color, #1a56db);
    font-weight: 600;
}

.booki-custom-select-option-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--booki-primary-color, #1a56db);
}

.booki-widget-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.booki-widget-btn-primary {
    background: var(--booki-primary-color, #1a56db);
    color: white;
    width: 100%;
}

.booki-widget-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.booki-widget-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.booki-widget-btn-back {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 20px;
    display: inline-block;
}

.booki-widget-btn-back:hover {
    color: var(--booki-primary-color, #1a56db);
}

.booki-widget-loading {
    text-align: center;
    padding: 60px 20px;
}

.booki-widget-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--booki-primary-color, #1a56db);
    border-radius: 50%;
    animation: booki-spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

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

.booki-widget-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.booki-widget-vehicle-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.booki-widget-vehicle-card:hover {
    border-color: var(--booki-primary-color, #1a56db);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.booki-widget-vehicle-card.selected {
    border-color: var(--booki-primary-color, #1a56db);
    background: rgba(26, 86, 219, 0.05);
}

.booki-widget-vehicle-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6;
}

.booki-widget-vehicle-info {
    padding: 20px;
}

.booki-widget-vehicle-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #111827;
}

.booki-widget-vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.booki-widget-vehicle-specs span {
    font-size: 13px;
    padding: 4px 10px;
    background: #f3f4f6;
    border-radius: 6px;
    color: #6b7280;
}

.booki-widget-vehicle-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--booki-primary-color, #1a56db);
    margin-bottom: 12px;
}

.booki-widget-min-days {
    font-size: 12px;
    color: #ef4444;
    margin-bottom: 12px;
    padding: 6px 10px;
    background: #fee2e2;
    border-radius: 6px;
}

.booki-widget-btn-select {
    width: 100%;
    background: var(--booki-primary-color, #1a56db);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.booki-widget-btn-select:hover {
    opacity: 0.9;
}

.booki-widget-available-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #f0fdf4;
    color: #166534;
    font-size: 12px;
    font-weight: 500;
    border-bottom: 1px solid #bbf7d0;
}

.booki-widget-available-badge svg {
    flex-shrink: 0;
    color: #16a34a;
}

.booki-widget-vehicle-card--pending {
    border-color: #f59e0b;
}

.booki-widget-vehicle-card--pending:hover {
    border-color: #d97706;
}

.booki-widget-pending-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #fffbeb;
    color: #92400e;
    font-size: 12px;
    font-weight: 500;
    border-bottom: 1px solid #fde68a;
}

.booki-widget-pending-badge svg {
    flex-shrink: 0;
    color: #d97706;
}

.booki-widget-btn-select--pending {
    background: #f59e0b;
    color: #1c1917;
}

.booki-widget-btn-select--pending:hover {
    background: #d97706;
    opacity: 1;
}

.booki-widget-pending-info {
    padding: 12px 16px;
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    color: #78350f;
    font-size: 14px;
    margin-bottom: 20px;
}

.booki-widget-no-vehicles {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 16px;
}

.booki-widget-options-list {
    margin-bottom: 24px;
}

.booki-widget-option {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
}

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

.booki-widget-option-header label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex: 1;
}

.booki-widget-option-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.booki-widget-option-name {
    font-weight: 600;
    color: #111827;
}

.booki-widget-option-mandatory {
    font-size: 12px;
    color: #6b7280;
    font-weight: normal;
}

.booki-widget-option-price {
    font-weight: 600;
    color: var(--booki-primary-color, #1a56db);
}

.booki-widget-option-description {
    font-size: 14px;
    color: #6b7280;
    margin: 8px 0;
}

.booki-widget-option-quantity {
    margin-top: 12px;
}

.booki-widget-option-quantity label {
    display: inline-block;
    margin-right: 10px;
    font-size: 14px;
    color: #374151;
}

.booki-widget-option-qty {
    width: 80px;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.booki-widget-summary {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.booki-widget-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.booki-widget-summary-row:last-child {
    border-bottom: none;
}

.booki-widget-summary-total {
    font-size: 18px;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid #d1d5db;
}

.booki-widget-deposit-note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 13px;
}

.booki-widget-error {
    background: #fee2e2;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 14px;
}

.booki-widget-error:empty {
    display: none;
}

.booki-widget-confirmation {
    text-align: center;
    padding: 40px 20px;
}

.booki-widget-confirmation-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 24px;
}

.booki-widget-confirmation-message {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 24px;
}

.booki-widget-confirmation-details {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
}

.booki-widget-confirmation-details p {
    margin: 8px 0;
    color: #374151;
}

@media (max-width: 768px) {
    .booki-widget-container {
        padding: 10px;
    }

    .booki-widget-step {
        padding: 20px;
    }

    .booki-widget-title {
        font-size: 20px;
    }

    .booki-widget-progress {
        margin-bottom: 30px;
    }

    .booki-widget-progress-label {
        font-size: 12px;
    }

    .booki-widget-progress-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .booki-widget-vehicles-grid {
        grid-template-columns: 1fr;
    }

    .booki-widget-option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .booki-widget-summary-row {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .booki-widget-progress::before {
        display: none;
    }

    .booki-widget-progress {
        gap: 10px;
    }
}

.booki-widget-date-range-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
    color: #374151;
}

.booki-widget-date-range-input:focus {
    outline: none;
    border-color: var(--booki-primary-color, #1a56db);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.booki-widget-date-range-input::placeholder {
    color: #9ca3af;
}

.booki-widget-form-row {
    display: flex;
    gap: 16px;
}

.booki-widget-form-row .booki-widget-form-group {
    flex: 1;
}

.booki-widget-form-group--half {
    min-width: 0;
}

.booki-widget-time-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px !important;
    cursor: pointer;
}

.booki-widget-time-select.booki-time-placeholder {
    color: #9ca3af;
}

.booki-widget-time-select.booki-time-placeholder option:not([value=""]) {
    color: #111827;
}

.flatpickr-calendar {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
}

.flatpickr-calendar.multiMonth {
    width: auto;
}

.flatpickr-calendar.multiMonth .flatpickr-days {
    display: flex;
    gap: 0;
}

.flatpickr-calendar.multiMonth .flatpickr-rContainer {
    border-right: 1px solid #e5e7eb;
}

.flatpickr-calendar.multiMonth .flatpickr-rContainer:last-child {
    border-right: none;
}

@media (max-width: 700px) {
    .flatpickr-calendar.multiMonth {
        width: 307px !important;
    }

    .flatpickr-calendar.multiMonth .flatpickr-days {
        flex-direction: column;
    }

    .flatpickr-calendar.multiMonth .flatpickr-rContainer {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .flatpickr-calendar.multiMonth .flatpickr-rContainer:last-child {
        border-bottom: none;
    }
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange {
    background: var(--booki-primary-color, #1a56db);
    border-color: var(--booki-primary-color, #1a56db);
}

.flatpickr-day.inRange {
    background: rgba(26, 86, 219, 0.12);
    border-color: transparent;
    box-shadow: -5px 0 0 rgba(26, 86, 219, 0.12), 5px 0 0 rgba(26, 86, 219, 0.12);
}

.flatpickr-day:hover:not(.selected):not(.startRange):not(.endRange) {
    background: rgba(26, 86, 219, 0.08);
    border-color: transparent;
}

.flatpickr-months .flatpickr-month,
.flatpickr-weekdays,
span.flatpickr-weekday {
    background: var(--booki-primary-color, #1a56db);
    color: white;
    fill: white;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: white;
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
    fill: white;
}

.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
    fill: rgba(255, 255, 255, 0.8);
}

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

/* Availability note banner */
.booki-widget-availability-note {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.booki-widget-availability-note-inner {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #E1F5EE;
    border: 1px solid #5DCAA5;
    border-radius: 999px;
    padding: 6px 18px;
    color: #085041;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.booki-widget-availability-note svg {
    color: #0F6E56;
    flex-shrink: 0;
}
