:root {
    --bg: radial-gradient(900px 500px at 0% 0%, rgba(37, 99, 235, 0.08), transparent 60%),
          radial-gradient(800px 450px at 100% 10%, rgba(20, 184, 166, 0.08), transparent 60%),
          linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    --surface: rgba(255, 255, 255, 0.75);
    --surface-strong: rgba(255, 255, 255, 0.9);
    --border: rgba(15, 23, 42, 0.06);
    --text: #0f172a;
    --muted: #6b7280;
    --primary: #3b82f6;
    --primary-hover: #1d4ed8;
    --available: #16a34a;
    --available-hover: #15803d;
    --unavailable: #e5e7eb;
    --error: #dc2626;
    --toast-bg: #0b1222;
    --yellow-primary: #fbbf24;
    --yellow-hover: #f59e0b;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding-top: 80px;
}

.booking-hero {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
}

.booking-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/slider_img/landrover_1.png') center/cover no-repeat;
    opacity: 0.1;
    z-index: 1;
}

.booking-hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.booking-hero__logo {
    margin-bottom: 30px;
}

.booking-hero__logo img {
    max-width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

.booking-hero__logo img:hover {
    transform: scale(1.05);
}

.booking-hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.booking-hero__subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.booking-hero__cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.booking-cta-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.booking-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.booking-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.booking-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.modal {
    position: fixed;
    width: 42%;
    max-width: 720px;
    min-width: 320px;
    height: auto;
    min-height: 60vh;
    max-height: 90vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.08), inset 0 1px 0 rgba(255,255,255,0.6);
    backdrop-filter: blur(12px);
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal::-webkit-scrollbar {
    width: 6px;
}

.modal::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.modal::-webkit-scrollbar-thumb {
    background: rgba(156, 163, 175, 0.5);
    border-radius: 3px;
}

.modal::-webkit-scrollbar-thumb:hover {
    background: rgba(156, 163, 175, 0.7);
}

.modal {
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.5) transparent;
}

.third__modal_menu {
    display: flex;
    align-items: flex-start;
}

.non-active {
    display: none;
}

h2 {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

form {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

input, select, textarea {
    width: 92%;
    margin: 2px 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--surface-strong);
    color: var(--text);
    text-align: center;
    font-size: 18px;
    outline: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

textarea {
    text-align: left;
    resize: vertical;
    min-height: 80px;
    max-height: 200px;
    line-height: 1.5;
    padding: 16px 18px;
}

input::placeholder, select::placeholder, textarea::placeholder {
    color: var(--muted);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.field-hint {
    width: 92%;
    margin: 0;
    margin-top: -4px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    min-height: 18px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.field-hint.error {
    color: var(--error);
}

input.invalid, select.invalid, textarea.invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.btns {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 16px;
    margin-top: 12px;
}

button {
    margin-top: 0;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: background .2s ease, transform .06s ease, box-shadow .2s ease, opacity .2s ease;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.20);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

button:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.30);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background: #e2e8f0;
    color: #64748b;
    cursor: not-allowed;
    box-shadow: none;
}

#calendar {
    position: relative;
    background: var(--surface);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    border: 1px solid var(--border);
}

#month-name {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    padding: 10px 0;
}

.weekday__headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.weekday__headers div {
    text-align: center;
    font-weight: 500;
    color: var(--muted);
    font-size: 0.9rem;
    padding: 8px 0;
}

.date__blocks {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.date__blocks div {
    width: 45px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.date__blocks div:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.date__blocks div.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.date__blocks div.available {
    background: var(--available);
    color: white;
    border-color: var(--available);
}

.date__blocks div.available:hover {
    background: var(--available-hover);
    border-color: var(--available-hover);
}

.date__blocks div.unavailable {
    background: var(--unavailable);
    color: #9ca3af;
    border-color: var(--border);
    transform: none;
    box-shadow: none;
}

.date__blocks div.full-booked {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: #f59e0b;
    cursor: not-allowed;
    position: relative;
}

.date__blocks div.full-booked::after {
    content: '5';
    position: absolute;
    top: -2px;
    right: -2px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.date__blocks div.full-booked:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: none;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.time__picker {
    margin-top: 20px;
    padding: 20px;
    background: var(--surface-strong);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.time__title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #1f2937;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.time__slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}

.time__slot {
    padding: 12px 16px;
    font-size: 14px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
}

.time__slot:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.time__slot.selected {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.time__slot.unavailable {
    background: var(--unavailable);
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.time__slot.unavailable:hover {
    background: var(--unavailable);
    color: #9ca3af;
    border-color: var(--border);
    transform: none;
    box-shadow: none;
}

#prev-month, #next-month {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

#prev-month {
    left: -50px;
}

#next-month {
    right: -50px;
}

#prev-month:hover, #next-month:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

#prev-month:disabled, #next-month:disabled {
    background: var(--unavailable);
    color: #9ca3af;
    cursor: not-allowed;
    border-color: var(--border);
    box-shadow: none;
}

#prev-month:disabled:hover, #next-month:disabled:hover {
    background: var(--unavailable);
    color: #9ca3af;
    border-color: var(--border);
    transform: translateY(-50%);
    box-shadow: none;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--toast-bg);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    max-width: 300px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.success-content {
    background: var(--surface-strong);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto; 
    overflow-x: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

.success-content::-webkit-scrollbar {
    width: 6px;
}

.success-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.success-content::-webkit-scrollbar-thumb {
    background: rgba(156, 163, 175, 0.5);
    border-radius: 3px;
}

.success-content::-webkit-scrollbar-thumb:hover {
    background: rgba(156, 163, 175, 0.7);
}

.success-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.5) transparent;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--available) 0%, var(--available-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.success-message {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.success-countdown {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.success-modal {
    animation: fadeIn 0.3s ease-out;
}

.success-content {
    animation: fadeInUp 0.5s ease-out;
}

@media (max-width: 768px) {
    .booking-hero__title {
        font-size: 2.5rem;
    }
    
    .booking-hero__subtitle {
        font-size: 1.1rem;
    }
    
    .booking-hero__cta {
        flex-direction: column;
        align-items: center;
    }
    
    .booking-cta-primary,
    .booking-cta-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .modal {
        width: 90%;
        min-width: 280px;
        padding: 20px;
        max-height: 85vh;
    }
    
    .success-content {
        padding: 35px 25px;
        max-height: 80vh;
    }
    
    .date__blocks {
        grid-template-columns: repeat(7, minmax(0, 40px));
    }
    
    .date__blocks div {
        width: 40px;
        height: 36px;
        line-height: 36px;
        font-size: 14px;
    }
    
    #prev-month, #next-month {
        width: 35px;
        height: 35px;
        font-size: 14px;
        position: relative;
        top: auto;
        transform: none;
        margin: 10px 5px;
    }
    
    #prev-month {
        left: auto;
        float: left;
    }
    
    #next-month {
        right: auto;
        float: right;
    }
    
    #calendar {
        position: relative;
        padding: 10px 0;
    }
    
    #calendar::after {
        content: '';
        display: table;
        clear: both;
    }
}

@media (max-width: 480px) {
    .booking-hero {
        padding: 60px 0 40px;
    }
    
    .booking-hero__title {
        font-size: 2rem;
    }
    
    .booking-hero__subtitle {
        font-size: 1rem;
    }
    
    .booking-cta-primary,
    .booking-cta-secondary {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .modal {
        width: 95%;
        padding: 15px;
        max-height: 80vh;
    }
    
    .success-content {
        padding: 30px 20px;
        max-height: 75vh; 
    }
    
    .success-title {
        font-size: 20px;
    }
    
    .success-message {
        font-size: 14px;
    }
    
    .success-countdown {
        font-size: 36px;
    }
    
    input, select {
        font-size: 16px;
        padding: 10px 12px;
    }
    
    button {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .date__blocks {
        gap: 4px;
    }
    
    .date__blocks div {
        width: 36px;
        height: 32px;
        line-height: 32px;
        font-size: 12px;
    }
    
    .date__blocks div.full-booked::after {
        width: 12px;
        height: 12px;
        font-size: 8px;
        top: -1px;
        right: -1px;
    }
    
    #prev-month, #next-month {
        width: 30px;
        height: 30px;
        font-size: 12px;
        position: relative;
        top: auto;
        transform: none;
        margin: 8px 3px;
    }
    
    #prev-month {
        left: auto;
        float: left;
    }
    
    #next-month {
        right: auto;
        float: right;
    }
    
    #calendar {
        position: relative;
        padding: 8px 0;
    }
    
    #calendar::after {
        content: '';
        display: table;
        clear: both;
    }
}