/**
 * VTC Booking Form - Horizontal Layout (Taxi Theme)
 * Inspired by screenshot design
 */

/* Container */
.vtc-booking-wrapper {
    width: 100%;
    background: transparent;
    padding: 3rem 0;
    min-height: 600px;
}

/* Hero Section with Car Image */
.vtc-hero-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Main Form - Horizontal Layout */
.vtc-search-form-horizontal {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 10;
}

/* Form Grid - 3 Columns on Desktop */
.vtc-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.vtc-form-grid-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Form Groups */
.vtc-form-group-horizontal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vtc-form-group-horizontal label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

/* Input Fields */
.vtc-input-horizontal {
    width: 100%;
    padding: 0.875rem 2.75rem 0.875rem 1rem;
    font-size: 0.9375rem;
    color: #1a1a1a;
    background: #ffffff;
    border: 2px solid var(--vtc-primary-rgb-20) !important;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: inherit;
    height: 48px;
}

.vtc-input-horizontal:focus {
    outline: none;
    border-color: var(--vtc-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--vtc-primary-rgb-10);
}

.vtc-input-horizontal::placeholder {
    color: #94a3b8;
}

/* Input with Icon */
.vtc-input-wrapper {
    position: relative;
}

.vtc-input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--vtc-primary);
    pointer-events: none;
}

/* Select Dropdown */
select.vtc-input-horizontal {
    appearance: none;
    padding-right: 3rem;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2310b981' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

/* Book Now Button */
.vtc-btn-book-now {
    background: var(--vtc-gradient);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px var(--vtc-primary-rgb-20);
    width: 100%;
    height: 48px;
}

.vtc-btn-book-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--vtc-primary-rgb-30);
    background: var(--vtc-secondary);
}

.vtc-btn-book-now:active {
    transform: translateY(0);
}

.vtc-btn-book-now svg {
    flex-shrink: 0;
}

/* Booking Type Pills (Subtle) */
.vtc-booking-type-pills {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.vtc-type-pill {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vtc-type-pill:hover {
    color: var(--vtc-primary);
}

.vtc-type-pill.active {
    color: var(--vtc-primary);
    border-bottom-color: var(--vtc-primary);
}

/* Taxi Car Image */
.vtc-taxi-image {
    position: absolute;
    right: -100px;
    bottom: -50px;
    width: 500px;
    height: auto;
    z-index: 5;
    pointer-events: none;
}

.vtc-taxi-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

/* Autocomplete Suggestions */
.vtc-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--vtc-primary-rgb-15) !important;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 240px;
    overflow-y: auto;
    z-index: 100;
    margin-top: -1px;
}

.vtc-suggestion-item {
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.vtc-suggestion-item:last-child {
    border-bottom: none;
}

.vtc-suggestion-item:hover {
    background: #f8f9fa;
}

/* Hidden Fields (for by_hour) */
.vtc-form-group-hidden {
    display: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .vtc-taxi-image {
        width: 400px;
        right: -50px;
    }
}

@media (max-width: 992px) {
    .vtc-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vtc-form-grid-row2 {
        grid-template-columns: 1fr 1fr;
    }

    .vtc-taxi-image {
        display: none;
    }
}

@media (max-width: 768px) {
    .vtc-form-grid,
    .vtc-form-grid-row2 {
        grid-template-columns: 1fr;
    }

    .vtc-booking-type-pills {
        flex-wrap: wrap;
    }

    .vtc-search-form-horizontal {
        padding: 1.5rem;
    }
}

/* Loading State */
.vtc-btn-book-now.loading {
    opacity: 0.7;
    pointer-events: none;
}

.vtc-btn-book-now .vtc-btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid #1a1a1a;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.vtc-btn-book-now.loading .vtc-btn-text {
    display: none;
}

.vtc-btn-book-now.loading .vtc-btn-loader {
    display: block;
}

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

/* Message Styles */
.vtc-message {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.9375rem;
}

.vtc-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.vtc-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
