/**
 * Booking Section Styles
 * Countdown + Form layout matching the template
 */

/* ==========================================================================
   Booking Section
   ========================================================================== */

.maido-booking-section {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    min-height: 600px;
}

@media (min-width: 1024px) {
    .maido-booking-section {
        min-height: 100vh;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   Container
   ========================================================================== */

.maido-booking-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 24px;
    order: 2;
}

@media (min-width: 640px) {
    .maido-booking-container {
        padding: 48px 40px;
    }
}

@media (min-width: 1024px) {
    .maido-booking-container {
        padding: 60px 80px;
        order: 1;
    }
}

/* ==========================================================================
   Content Area
   ========================================================================== */

.maido-booking-content {
    width: 100%;
    max-width: 520px;
}

/* Heading */
.maido-booking-heading {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.4;
}

@media (min-width: 640px) {
    .maido-booking-heading {
        font-size: 22px;
        margin-bottom: 24px;
    }
}

/* ==========================================================================
   Countdown Timer
   ========================================================================== */

.maido-booking-countdown-wrapper {
    margin-bottom: 32px;
}

@media (min-width: 640px) {
    .maido-booking-countdown-wrapper {
        margin-bottom: 40px;
    }
}

.maido-booking-countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 448px;
}

@media (min-width: 640px) {
    .maido-booking-countdown {
        gap: 12px;
    }
}

.maido-booking-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.maido-booking-countdown-box {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 16px 12px;
    width: 100%;
    text-align: center;
}

@media (min-width: 640px) {
    .maido-booking-countdown-box {
        border-radius: 10px;
        padding: 20px 16px;
    }
}

.maido-booking-countdown-item:not(:last-child)::after {
    content: ':';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
}

@media (min-width: 640px) {
    .maido-booking-countdown-item:not(:last-child)::after {
        right: -16px;
        font-size: 32px;
    }
}

.maido-booking-countdown-value {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    color: #ffffff;
    display: block;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    font-weight: 700;
}

@media (min-width: 640px) {
    .maido-booking-countdown-value {
        font-size: 36px;
    }
}

.maido-booking-countdown-label {
    font-size: 11px;
    color: #1a1a1a;
    margin-top: 8px;
    text-transform: capitalize;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

@media (min-width: 640px) {
    .maido-booking-countdown-label {
        font-size: 12px;
        margin-top: 12px;
    }
}

/* ==========================================================================
   Register Heading
   ========================================================================== */

.maido-booking-register-heading {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

@media (min-width: 640px) {
    .maido-booking-register-heading {
        font-size: 32px;
        margin-bottom: 28px;
    }
}

/* ==========================================================================
   Booking Form
   ========================================================================== */

.maido-booking-form {
    margin-top: 24px;
}

.maido-booking-form-group {
    margin-bottom: 16px;
}

.maido-booking-form-input,
.maido-booking-form-select {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
}

.maido-booking-form-input::placeholder {
    color: #999999;
}

.maido-booking-form-input:focus,
.maido-booking-form-select:focus {
    background: #ffffff;
    border-color: #8b4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

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

@media (min-width: 640px) {
    .maido-booking-form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.maido-booking-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999999' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Button */
.maido-booking-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #8b4513;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 18px 32px;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 8px;
}

@media (min-width: 640px) {
    .maido-booking-button {
        font-size: 16px;
        padding: 20px 40px;
    }
}

.maido-booking-button:hover {
    background: #6b3922;
    box-shadow: 0 6px 16px rgba(139, 69, 19, 0.4);
    transform: translateY(-2px);
}

.maido-booking-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Message */
.maido-booking-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

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

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

/* ==========================================================================
   Background Image
   ========================================================================== */

.maido-booking-background-image {
    position: relative;
    order: 1;
}

@media (min-width: 1024px) {
    .maido-booking-background-image {
        height: 100%;
        order: 2;
    }
}

.maido-booking-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Discount Badge */
.maido-booking-discount-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(26, 26, 26, 0.85);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 400;
    z-index: 10;
    backdrop-filter: blur(10px);
    min-width: 200px;
    text-align: center;
}

.maido-booking-discount-badge .sale-text {
    display: block;
    color: #ff9966;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 4px;
    font-family: 'Georgia', serif;
}

.maido-booking-discount-badge .percentage {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.maido-booking-discount-badge .prices {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
}

.maido-booking-discount-badge .old-price {
    text-decoration: line-through;
    opacity: 0.6;
}

.maido-booking-discount-badge .new-price {
    color: #4dd4ff;
    font-weight: 600;
}

@media (min-width: 640px) {
    .maido-booking-discount-badge {
        padding: 20px 28px;
        min-width: 240px;
    }
    
    .maido-booking-discount-badge .percentage {
        font-size: 36px;
    }
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 1023px) {
    .maido-booking-background-image {
    }
    
    .maido-booking-discount-badge {
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.maido-booking-button:focus {
    outline: 2px solid #8b4513;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .maido-booking-button {
        transition: none;
    }
}
