/**
 * Taxi Booking Public Styles
 * 
 * @package TaxiBooking
 */

:root {
    --brand: #ea580c;
}

html,
body {
    font-family: Inter, ui-sans-serif, system-ui;
    background: #f7f7fb;
    color: #0b0b12;
}

/* Progress Steps */
.step-pill {
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.progress-rail {
    height: 8px;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--brand);
    width: 33%;
    transition: width 0.3s ease;
}

input[type=email],
input[type=number],
input[type=password],
input[type=reset],
input[type=search],
input[type=tel],
input[type=text],
input[type=url],
select,
textarea {
  color:#666;
  padding: 16px 16px 16px 28px;
  height:auto;
  border-width:1px;
  border-style:solid;
  border-color:var(--ast-border-color);
  border-radius:6px;
  background:var(--ast-comment-inputs-background);
  box-shadow:none;
  box-sizing:border-box;
  transition:all .2s linear
}
input[type='text']::placeholder{
    padding-left: 6px;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

.card-hover {
    transition: all .2s ease-in-out;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
}

/* Buttons */
.btn-primary {
    background: var(--brand);
    color: #fff;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #c2410c;
}

.btn-switch {
    border-radius: 9999px;
    padding: .5rem 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-switch:hover {
    background: #fef1ea;
}

.btn-switch.active {
    background: var(--brand);
    color: #fff;
}

/* Badge */
.badge {
    border: 1px solid rgba(234, 88, 12, .3);
    color: #ea580c;
    border-radius: 9999px;
    padding: .25rem .5rem;
    font-weight: 600;
    font-size: .875rem;
}

/* Form Elements */
input,
select,
textarea {
    outline: none;
}

input:focus,
select:focus,
textarea:focus,
#timeBtn:focus {
    box-shadow: 0 0 0 3px rgba(234, 88, 12, .12);
    border-color: #ea580c;
}

/* Modal */
.modal-backdrop {
    background: rgba(0, 0, 0, .5);
}

/* Carousel */
.carousel::-webkit-scrollbar {
    height: 8px;
}

.carousel::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 9999px;
}

/* Hide scrollbar (cross-browser) */
#vehicles::-webkit-scrollbar {
    display: none;
}

#vehicles {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Payment Method Buttons */
.payment-method-btn {
    transition: all 0.2s ease;
}

.payment-method-btn.active {
    border-color: #ea580c;
    background-color: #fff7ed;
}

.payment-method-btn.active svg {
    stroke: #ea580c;
}

/* Hidden Class */
.hidden {
    display: none !important;
}

/* Payment Modal */
#paymentModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.5);
}

#paymentModal > div {
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

/* Scrollbar Styling */
#monthBtn::-webkit-scrollbar-track,
#timeMenu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

#monthBtn::-webkit-scrollbar-thumb,
#timeMenu::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

#monthBtn::-webkit-scrollbar-thumb:hover,
#timeMenu::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

#timeMenu::-webkit-scrollbar {
    width: 2px;
}

/* Vehicle Button */
.vehicle-btn.ring-2.ring-orange-500 {
    border-color: #ea580c;
    background-color: #fff7ed;
}

/* Number Menu */
#numberMenu {
    position: absolute;
    z-index: 10;
    overflow: hidden;
    margin-top: 0.25rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 0.25rem;
}

#numberMenu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    width: 100%;
    text-align: left;
}

#numberMenu button:hover {
    background-color: #f9fafb;
}

.checkmark {
    margin-left: 0.5rem;
    color: white;
    font-weight: bold;
}

#numberMenu div.selected {
    background-color: #ea580c;
}

#numberMenu div svg.check-icon {
    display: none;
    width: 14px;
    height: 14px;
}

#numberMenu div.selected svg.check-icon {
    display: inline-block;
}

/* Remove hover effect for selected items */
#numberMenu div.bg-\[\#fef2f2\]:hover {
    background-color: #fef2f2 !important;
}

/* Keep hover for unselected items */
#numberMenu div:not(.bg-\[\#fef2f2\]):hover {
    background-color: #f3f3f5;
}

#numberMenu div.bg-\[\#fef2f2\],
#numberMenu div.bg-\[\#fef2f2\]:hover {
    background-color: #ea580c !important;
    color: white;
}

#numberMenu div.bg-\[\#ea580c\] .checkmark {
    display: inline-block;
    color: white;
}

#numberMenu div.bg-\[\#ea580c\] {
    background-color: #ea580c !important;
    color: white !important;
}

/* Loading Spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ea580c;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.loader-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-left: 6px;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        padding: 1rem;
    }
    
    #vehicles {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}