/* Cartants Booking Form - Premium Modern Design */

* {
    box-sizing: border-box;
}

html, body {
    background: linear-gradient(135deg, #f5f5f9 0%, #e8e8f0 100%) !important;
    margin: 0;
    padding: 0;
}

.cartants-booking-wrapper {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 20px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
}

.booking-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: center;
}

/* ============= LEFT SIDE ============= */
.booking-left {
    display: block !important;
}

.booking-left h2 {
    font-size: 48px;
    font-weight: 900;
    color: #1a1a2e;
    line-height: 1.1;
    margin: 0 0 25px 0;
    letter-spacing: -1.5px;
}

.booking-left p {
    font-size: 16px;
    color: #555;
    line-height: 1.9;
    margin: 0;
    font-weight: 400;
}

/* ============= RIGHT SIDE - CARD ============= */
.booking-right {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-section h3 {
    font-size: 12px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.7;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: linear-gradient(135deg, #f8f8fb 0%, #f0f0f5 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #1a1a2e;
    font-weight: 500;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
    font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    background: white;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 85px;
    font-family: inherit;
}

/* ============= CALENDAR ============= */
#booking-calendar {
    background: white;
    padding: 4px;
    border-radius: 14px;
    border: 2px solid #e8e8e8;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ui-datepicker {
    background: white !important;
    border: none !important;
    box-shadow: none !important;
    padding: 16px !important;
    font-size: 13px !important;
    width: 100% !important;
}

.ui-datepicker-header {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 16px !important;
    margin-bottom: 14px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.ui-datepicker-title {
    color: white !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    letter-spacing: 0.5px !important;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    color: white !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    font-size: 18px !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.ui-datepicker table {
    width: 100% !important;
}

.ui-datepicker td {
    padding: 4px !important;
}

.ui-datepicker th {
    color: #1a1a2e !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    padding: 12px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
}

.ui-datepicker a {
    padding: 8px !important;
    border-radius: 10px !important;
    color: #555 !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: block !important;
    text-align: center !important;
}

.ui-datepicker a:hover {
    background: #f0f0f5 !important;
    color: #6366f1 !important;
    transform: scale(1.08) !important;
}

.ui-datepicker a.ui-state-active,
.ui-datepicker a.ui-state-highlight {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: white !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
}

.ui-datepicker a.ui-state-disabled {
    color: #ddd !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

.ui-datepicker .ui-state-default {
    border: none !important;
}

/* ============= TIME SLOTS ============= */
.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.time-slot {
    padding: 12px;
    border: 2px solid #e8e8e8;
    background: linear-gradient(135deg, #f8f8fb 0%, #f0f0f5 100%);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #555;
    text-align: center;
}

.time-slot:hover {
    border-color: #6366f1;
    background: white;
    color: #6366f1;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.15);
}

.time-slot.selected {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border-color: #6366f1;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

/* ============= BUTTON ============= */
.btn-book {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 15px 32px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 12px;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

.btn-book:hover {
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
    transform: translateY(-3px);
}

.btn-book:active {
    transform: translateY(0);
}

.btn-book:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============= MODAL ============= */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    overflow: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    margin: 6% auto;
    padding: 40px;
    border-radius: 18px;
    width: 90%;
    max-width: 520px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-content h2 {
    color: #1a1a2e;
    margin: 0 0 28px 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 20px;
}

.close:hover {
    color: #1a1a2e;
}

/* ============= DETAIL ROWS ============= */
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f5;
    font-size: 14px;
    gap: 12px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 700;
    color: #666;
    min-width: 110px;
}

.detail-value {
    color: #1a1a2e;
    text-align: right;
    flex: 1;
    word-break: break-word;
    font-weight: 600;
}

/* ============= MODAL BUTTONS ============= */
.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: #1a1a2e;
    border: 2px solid #e8e8e8;
}

.btn-secondary:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #f8f8fb;
}

/* ============= ERROR MESSAGE ============= */
.error-message {
    color: #d32f2f;
    font-size: 13px;
    margin-top: 8px;
    padding: 12px 14px;
    background: #ffebee;
    border-radius: 10px;
    border-left: 4px solid #d32f2f;
    font-weight: 500;
}

/* ============= SUCCESS NOTICES ============= */
.notice {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}

.notice-success {
    background: #e8f5e9;
    border-left: 4px solid #27ae60;
    color: #2e7d32;
}

.notice-error {
    background: #ffebee;
    border-left: 4px solid #d32f2f;
    color: #c62828;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 1200px) {
    .cartants-booking-wrapper {
        margin: 60px auto;
    }
    
    .booking-container {
        gap: 50px;
    }
}

@media (max-width: 1024px) {
    .booking-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .booking-left h2 {
        font-size: 42px;
    }
    
    .booking-right {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .cartants-booking-wrapper {
        margin: 40px auto;
        padding: 0 15px;
    }
    
    .booking-left h2 {
        font-size: 36px;
    }
    
    .booking-left p {
        font-size: 15px;
    }
    
    .booking-right {
        padding: 30px;
    }
    
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        width: 95%;
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .booking-left h2 {
        font-size: 28px;
    }
    
    .booking-right {
        padding: 20px;
    }
    
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .time-slot {
        padding: 10px;
        font-size: 12px;
    }
}
