/* 
   RESERVATION.CSS - RESPONSIVE
============================================== */

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  font-family: "Poppins", sans-serif; 
}

body { 
    margin-top: 10px;
    background: #111; 
    color: #fff; 
}

section.reservation-section {
    display: flex;
    height: 100vh;
}

.left-content {
    flex: 1;
    position: relative;
    background: url("../img/Reservation/Reservation-img1.JPG") no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.left-content .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.left-content .text-box {
    position: relative;
    max-width: 500px;
    z-index: 2;
}

.left-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.left-content h2 {
    font-size: 1.2rem;
    margin: 0.5rem 0 1rem;
    font-weight: 500;
    color: #ddd;
}

.left-content p {
    color: white;
    line-height: 1.6;
    font-size: 1rem;
    white-space: pre-line;
}

.right-content {
    flex: 1;
    position: relative;
    background: url("../img/Reservation/Reservation-img2.png") no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-content .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.form-box {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 580px; 
    width: 100%;
    text-align: center;
}

.form-box h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    font-weight: 700;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.input-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 10px !important;
    outline: none;
    font-size: 1rem;
    background: #fff;
    color: #000;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    display: block;
    transition: transform 0.2s ease;
}

.input-group input.focused {
    transform: scale(1.03);
}

.days {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0; 
    gap: 10px;
}

.days button {
    flex: 1;
    padding: 0; 
    background: #ffffff; 
    border: 1px solid #ccc;
    color: #333;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px; 
    cursor: pointer;
    transition: all 0.25s ease;
    aspect-ratio: 1 / 1; 
    height: auto; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.days button:hover {
    background: #f9f9f9;
    border-color: #bbb;
    color: #000;
}

.days button.active {
    background: #000000;
    color: #ffffff;
    border: 2px solid #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.days button:disabled {
    background: #f0f0f0;
    color: #ccc;
    border-color: #e0e0e0;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.8;
}

.days button:disabled:hover {
    background: #f0f0f0;
    border-color: #e0e0e0;
    color: #ccc;
    transform: none;
}

.time-select {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.custom-dropdown {
    position: relative;
    flex: 1;
}

.dropdown-btn {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    border: 1px solid #ffffff;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    color: #000;
    transition: all 0.25s ease;
}

.dropdown-btn:hover,
.dropdown-btn:focus {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

.dropdown-list {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    list-style: none;
    display: none;
    z-index: 10;
    max-height: 180px;
    overflow-y: auto;
    overflow-x: hidden;
    animation: fadeSlide 0.25s ease;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-list li {
    padding: 10px;
    cursor: pointer;
    text-align: center;
    font-size: 0.95rem;
    color: #000;
    transition: all 0.2s ease;
}

.dropdown-list li:hover {
    background: #26282C;
    color: #fff;
    transform: scale(1.05);
}

.dropdown-list li.active {
    background: #111;
    color: #fff;
    font-weight: bold;
}

.dropdown-list li.disabled {
    background-color: #eee;
    color: #aaa;
    cursor: not-allowed;
    text-decoration: line-through;
}

.dropdown-list li.disabled:hover {
    background: #eee;
    color: #aaa;
    transform: none;
}

.custom-dropdown.active .dropdown-list {
    display: block;
}

.time-select span {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffffff;
}

.confirm-btn {
    margin-top: 1.5rem;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #000000; 
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.confirm-btn:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 2px solid #ffffff;
}

.confirm-btn:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.reservation-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #26282C;
    color: #fff;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.4s ease;
    z-index: 9999;
}

.reservation-popup.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-btn:disabled {
    background: #eee;
    color: #aaa;
    cursor: not-allowed;
    text-decoration: line-through;
}

.dropdown-btn:disabled:hover,
.dropdown-btn:disabled:focus {
    transform: none;
    box-shadow: none;
}

@media (max-width: 1024px) {
    .left-content,
    .right-content {
        padding: 2.5rem;
    }
    
    .left-content h1 {
        font-size: 2.2rem;
    }
    
    .form-box {
        max-width: 500px;
    }
    
    .form-box h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    section.reservation-section {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .left-content {
        min-height: 40vh;
        padding: 2rem;
    }
    
    .left-content h1 {
        font-size: 1.8rem;
    }
    
    .left-content h2 {
        font-size: 1.1rem;
    }
    
    .left-content p {
        font-size: 0.95rem;
    }
    
    .right-content {
        min-height: 60vh;
        padding: 2rem;
    }
    
    .form-box {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .form-box h2 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    
    .input-group {
        gap: 12px;
        margin-bottom: 1.2rem;
    }
    
    .input-group input {
        padding: 11px 12px;
        font-size: 0.95rem;
    }
    
    .days {
        gap: 8px;
        margin: 1.2rem 0;
    }
    
    .days button {
        font-size: 13px;
    }
    
    .time-select {
        gap: 12px;
    }
    
    .dropdown-btn {
        padding: 11px 12px;
        font-size: 0.95rem;
    }
    
    .time-select span {
        font-size: 1.2rem;
    }
    
    .confirm-btn {
        padding: 12px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .left-content {
        min-height: 35vh;
        padding: 1.5rem;
    }
    
    .left-content h1 {
        font-size: 1.5rem;
    }
    
    .left-content h2 {
        font-size: 1rem;
    }
    
    .left-content p {
        font-size: 0.9rem;
    }
    
    .right-content {
        padding: 1.5rem;
    }
    
    .form-box {
        padding: 1.2rem;
    }
    
    .form-box h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .input-group {
        gap: 10px;
        margin-bottom: 1rem;
    }
    
    .input-group input {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .days {
        gap: 6px;
        margin: 1rem 0;
    }
    
    .days button {
        font-size: 12px;
    }
    
    .time-select {
        gap: 10px;
    }
    
    .dropdown-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .dropdown-list li {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .time-select span {
        font-size: 1.1rem;
    }
    
    .confirm-btn {
        padding: 11px;
        font-size: 0.95rem;
        margin-top: 1.2rem;
    }
    
    .reservation-popup {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}
