/* ========================================
   MOTORACE SERVICE BOOKING - COMPLETE CSS
   Updated with Important Notice Section
   ======================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f4f4f4;
}

/* Top Bar */
.top-bar-wrap {
    width: 100%;
    background: #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-home-btn {
    color: #ff6210;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.back-home-btn:hover {
    color: #fff;
}

/* Bottom Bar */
.bottom-bar {
    height: 70px;
    width: 100%;
    background: #ff6210;
    margin-bottom: 0;
}

/* Main Header */
.main-header {
    width: 100%;
    max-width: 1200px;
    height: 350px;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.main-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 15px 15px;
}

/* Page Wrapper - Updated to single column */
.page-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Content Background */
.content-bg {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    width: 100%;
}

/* Form Column - Updated to full width */
.form-col {
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Service Description */
.service-description {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 5px solid #ff6210;
}

.service-description p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* Important Notice Section - NEW */
.important-notice {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #f39c12;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.2);
    position: relative;
    overflow: hidden;
}

.important-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f39c12, #e67e22, #d35400);
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f39c12;
}

.notice-icon {
    font-size: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notice-header h3 {
    color: #d35400;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notice-content {
    display: grid;
    gap: 15px;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border-left: 4px solid #f39c12;
    transition: all 0.3s ease;
}

.notice-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.notice-bullet {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.notice-item div {
    color: #8b4513;
    line-height: 1.5;
    font-size: 15px;
}

.notice-item strong {
    color: #d35400;
    font-weight: 700;
}

/* Form Sections */
.form-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 4px 15px rgba(255, 98, 16, 0.1);
    transform: translateY(-2px);
}

/* Form Labels */
.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: block;
    font-size: 16px;
}

/* Form Inputs */
.form-input, .form-select {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 15px;
    font-family: inherit;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #ff6210;
    box-shadow: 0 0 15px rgba(255, 98, 16, 0.2);
    transform: translateY(-2px);
}

.form-select:disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* Textarea */
textarea.form-input {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Service Options */
.service-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 12px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-option:hover {
    background: #f8f9fa;
    border-color: #ff6210;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 98, 16, 0.15);
}

.service-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    margin: 0;
    flex: 1;
}

.service-option input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.3);
    cursor: pointer;
}

.service-price {
    font-weight: bold;
    color: #ff6210;
    font-size: 18px;
    padding: 5px 10px;
    background: rgba(255, 98, 16, 0.1);
    border-radius: 6px;
}

/* Total Container */
.total-container {
    background: linear-gradient(135deg, #ff6210, #e0540e);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 98, 16, 0.3);
}

.total-label {
    font-size: 20px;
    font-weight: 700;
}

.total-amount {
    font-size: 28px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Brand Selection */
.brand-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #f8f9fa;
}

.brand-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.brand-option:hover {
    background: #fff5f0;
    border-color: #ff6210;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 98, 16, 0.15);
}

.brand-option input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
    cursor: pointer;
}

.brand-option label {
    margin: 0 !important;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    flex: 1;
}

/* Calendar Container */
.calendar-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.calendar-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid #ff6210;
}

/* Calendar Navigation */
.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.nav-btn {
    background: linear-gradient(135deg, #ff6210, #e0540e);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 98, 16, 0.3);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 98, 16, 0.4);
}

.nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.month-year {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    text-align: center;
}

/* Calendar Header */
.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 10px;
}

.calendar-header-day {
    padding: 12px 8px;
    background: #ff6210;
    color: white;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 25px;
}

.calendar-day {
    padding: 15px 8px;
    text-align: center;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 6px;
    position: relative;
}

.calendar-day:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 2;
}

.calendar-day.disabled {
    background: #f8d7da;
    color: #721c24;
    cursor: not-allowed;
    border-color: #f5c6cb;
}

.calendar-day.disabled:hover {
    transform: none;
    box-shadow: none;
}

.calendar-day.available {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.calendar-day.available:hover {
    background: #c3e6cb;
    border-color: #28a745;
}

.calendar-day.selected {
    background: #ff6210 !important;
    color: white !important;
    border-color: #ff6210 !important;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 98, 16, 0.4);
    z-index: 3;
}

.calendar-day.other-month {
    color: #ccc;
    background: #f8f9fa;
    cursor: not-allowed;
}

.calendar-day.past {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.calendar-day.sunday {
    background: #fd79a8;
    color: white;
    cursor: not-allowed;
}

/* Selected Date Display */
.selected-date-display {
    margin-top: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #e7f3ff, #cce7ff);
    border-left: 5px solid #ff6210;
    border-radius: 8px;
    font-weight: 600;
    color: #333;
    text-align: center;
    font-size: 16px;
}

/* Privacy Checkbox */
.checkbox-terms {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid #ff6210;
    border: 1px solid #e9ecef;
}

.checkbox-terms input[type="checkbox"] {
    margin: 0;
    transform: scale(1.3);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-terms label {
    margin: 0;
    line-height: 1.6;
    color: #333;
    font-size: 15px;
}

.checkbox-terms a {
    color: #ff6210;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-terms a:hover {
    text-decoration: underline;
}

/* Form Button */
.form-btn {
    background: linear-gradient(135deg, #ff6210, #e0540e);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(255, 98, 16, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 98, 16, 0.4);
}

.form-btn:active {
    transform: translateY(-1px);
}

/* Success and Error Messages */
.success-message, .error-message {
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
    font-size: 16px;
}

.success-message {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 2px solid #c3e6cb;
}

.error-message {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Footer */
.footer-bar {
    height: 60px;
    width: 100%;
    background: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin-top: 50px;
    font-weight: 500;
}

/* reCAPTCHA Container */
.g-recaptcha {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-wrapper {
        padding: 0 15px;
    }
    
    .form-col {
        width: 100%;
        padding: 20px;
    }
    
    .content-bg {
        padding: 20px;
        margin: 20px auto;
    }
    
    .main-header {
        height: 200px;
        margin: 0 15px;
    }
    
    .brand-selection {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }
    
    .calendar-navigation {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-btn {
        padding: 12px 25px;
        font-size: 16px;
        width: 100%;
        max-width: 200px;
    }
    
    .calendar-header-day {
        padding: 10px 5px;
        font-size: 12px;
    }
    
    .calendar-day {
        min-height: 45px;
        padding: 12px 5px;
        font-size: 14px;
    }
    
    .form-section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .service-option {
        padding: 12px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .service-price {
        align-self: flex-end;
    }
    
    .total-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .checkbox-terms {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Important Notice Mobile Styles */
    .important-notice {
        padding: 20px 15px;
        margin-bottom: 25px;
    }

    .notice-header h3 {
        font-size: 18px;
    }

    .notice-item {
        padding: 10px 12px;
    }

    .notice-item div {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .main-header {
        height: 150px;
    }
    
    .calendar-day {
        min-height: 40px;
        padding: 10px 3px;
        font-size: 12px;
    }
    
    .calendar-header-day {
        padding: 8px 3px;
        font-size: 10px;
    }
    
    .brand-option {
        padding: 15px;
        justify-content: center;
    }
    
    .form-input, .form-select {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-btn {
        padding: 16px 30px;
        font-size: 16px;
    }
    
    .service-description {
        padding: 20px 15px;
    }
    
    .calendar-container {
        padding: 20px 15px;
    }
    
    .calendar-navigation {
        padding: 15px;
    }
    
    .month-year {
        font-size: 18px;
    }
    
    .total-amount {
        font-size: 24px;
    }
    
    .total-label {
        font-size: 18px;
    }
    
    /* Important Notice Mobile Styles */
    .important-notice {
        padding: 18px 12px;
    }

    .notice-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .notice-header h3 {
        font-size: 16px;
    }

    .notice-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* Print Styles */
@media print {
    .top-bar-wrap,
    .bottom-bar,
    .nav-btn,
    .form-btn,
    .g-recaptcha,
    .footer-bar {
        display: none;
    }
    
    .page-wrapper {
        margin: 0;
        padding: 0;
    }
    
    .form-col {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .form-input, .form-select {
        border-width: 3px;
    }
    
    .calendar-day {
        border-width: 3px;
    }
    
    .form-btn {
        border: 3px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .calendar-day:hover,
    .form-btn:hover,
    .nav-btn:hover {
        transform: none;
    }
    
    .notice-icon {
        animation: none;
    }
}