/**
 * Booking Form Styles
 */

.booking-form {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.booking-form .form-row {
    margin-bottom: var(--spacing-md);
}

.booking-form .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.booking-form .form-group {
    display: flex;
    flex-direction: column;
}

.booking-form label {
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--color-text);
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.15);
}

.booking-form select {
    cursor: pointer;
}

.booking-form select option {
    background-color: #1a1a1a;
    color: var(--color-text);
}

.booking-form textarea {
    resize: vertical;
    min-height: 100px;
}

.booking-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    font-weight: normal;
    cursor: pointer;
}

.booking-form .checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.booking-form .checkbox-label a {
    color: var(--color-primary);
    text-decoration: underline;
}

.booking-form .btn-lg {
    width: 100%;
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Message feedback */
.booking-message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    text-align: center;
}

.booking-message.success {
    background-color: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

.booking-message.error {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

/* Loading state */
.booking-form.loading button[type="submit"] {
    opacity: 0.7;
    pointer-events: none;
}

.booking-form.loading button[type="submit"]::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .booking-form {
        padding: var(--spacing-md);
    }

    .booking-form .form-row-2 {
        grid-template-columns: 1fr;
    }
}

/* Motorcycles Grid */
.motorcycles-grid {
    display: grid;
    grid-template-columns: repeat(var(--moto-columns, 3), 1fr);
    gap: var(--spacing-lg);
}

.motorcycle-card {
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.motorcycle-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.motorcycle-card.reserved {
    opacity: 0.8;
}

.motorcycle-card.sold {
    display: none;
}

.moto-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.moto-badge.reserved {
    background-color: #ffc107;
    color: #000;
}

.moto-badge.coming {
    background-color: #17a2b8;
    color: #fff;
}

.motorcycle-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.motorcycle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.motorcycle-card:hover .motorcycle-image img {
    transform: scale(1.05);
}

.moto-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.motorcycle-content {
    padding: var(--spacing-md);
}

.moto-condition {
    display: inline-block;
    padding: 2px 8px;
    background-color: var(--color-primary);
    color: #000;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-xs);
}

.motorcycle-title {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
}

.motorcycle-title a {
    color: var(--color-text);
}

.motorcycle-title a:hover {
    color: var(--color-primary);
}

.motorcycle-specs {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 0.85rem;
    color: var(--color-secondary);
}

.motorcycle-specs span::after {
    content: '•';
    margin-left: var(--spacing-sm);
}

.motorcycle-specs span:last-child::after {
    display: none;
}

.motorcycle-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.motorcycle-card .btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.no-motorcycles {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--color-secondary);
}

@media (max-width: 992px) {
    .motorcycles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .motorcycles-grid {
        grid-template-columns: 1fr;
    }
}