/**
 * 5Five Booking System Styles
 * File: assets/css/booking.css
 */

/* Google Maps Autocomplete Styling */
.pac-container {
    z-index: 9999 !important;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    margin-top: 4px;
    font-family: inherit;
}

.pac-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #e5e7eb;
}

.pac-item:hover {
    background-color: #eff6ff;
}

.pac-icon {
    display: none;
}

/* Container */
.fivefive-booking-wrapper {
    background: linear-gradient(135deg, #EBF4FF 0%, #E0E7FF 100%);
    padding: 40px 20px;
    min-height: 400px;
}

.fivefive-booking-container {
    max-width: 800px;
    margin: 0 auto;
}

.fivefive-results-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Card */
.fivefive-booking-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

/* Header */
.fivefive-booking-header {
    background: linear-gradient(135deg, #D3B350 0%, #f3ca50ff 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.fivefive-booking-header h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
}

.fivefive-booking-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

/* Form */
.fivefive-booking-form {
    padding: 30px;
}

.fivefive-form-group {
    margin-bottom: 24px;
}

.fivefive-form-group label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.fivefive-icon {
    margin-right: 8px;
    font-size: 18px;
}

.fivefive-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: inherit;
}

.fivefive-input:focus {
    outline: none;
    border-color: #D3B350;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.fivefive-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

/* Buttons */
.fivefive-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #D3B350 0%, #f3ca50ff 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fivefive-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.fivefive-btn-primary:active {
    transform: translateY(0);
}

.fivefive-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #F3F4F6;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.fivefive-btn-secondary:hover {
    background: #E5E7EB;
}

/* Messages */
.fivefive-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.fivefive-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.fivefive-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.fivefive-info {
    background: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

/* Info Box */
.fivefive-booking-info {
    background: #F9FAFB;
    padding: 24px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    gap: 16px;
}

.fivefive-info-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.fivefive-booking-info h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.fivefive-booking-info ol {
    margin: 0;
    padding-left: 20px;
    color: #6B7280;
    font-size: 14px;
}

.fivefive-booking-info ol li {
    margin-bottom: 6px;
}

/* Booking Summary */
.fivefive-booking-summary {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 24px;
    margin-bottom: 24px;
}

.fivefive-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.fivefive-summary-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.fivefive-edit-link {
    color: #D3B350;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fivefive-edit-link:hover {
    color: #1D4ED8;
}

.fivefive-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.fivefive-summary-item {
    display: flex;
    gap: 12px;
}

.fivefive-summary-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.fivefive-summary-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #6B7280;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.fivefive-summary-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

/* Loading */
.fivefive-loading {
    text-align: center;
    padding: 60px 20px;
}

.fivefive-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #E5E7EB;
    border-top-color: #D3B350;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.fivefive-loading p {
    color: #6B7280;
    font-size: 16px;
}

/* Vehicles Grid */
.fivefive-results-content {
    padding: 30px;
}

.fivefive-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.fivefive-vehicle-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.fivefive-vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    border-color: #D3B350;
}

.fivefive-vehicle-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.fivefive-vehicle-content {
    padding: 20px;
}

.fivefive-vehicle-name {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.fivefive-vehicle-description {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
}

.fivefive-vehicle-price {
    font-size: 24px;
    font-weight: 700;
    color: #D3B350;
    margin-bottom: 16px;
}

.fivefive-vehicle-price-request {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 16px;
}

.fivefive-select-vehicle {
    width: 100%;
}

/* No Results */
.fivefive-no-results {
    text-align: center;
    padding: 60px 20px;
}

.fivefive-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.fivefive-no-results h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: #374151;
}

.fivefive-no-results p {
    margin: 0 0 24px 0;
    color: #6B7280;
}

/* Booking Summary on Product Page */
.fivefive-product-booking-summary {
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fivefive-product-booking-summary strong {
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fivefive-product-booking-summary > div {
        grid-template-columns: 1fr !important;
    }
}

.single_add_to_cart_button{
    background-color: #D3B350 !important;
}

.stock.in-stock + form {
    display: none !important;
}


.posted_in{
    display: none !important;
}

input[type=time]{
    width: 100%;
    border: 1px solid #666;
    border-radius: 3px;
    padding: .5rem 1rem;
}
