.card{
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 70px;
    background-color: rgb(241,239,216); 
    
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: rgb(18, 37, 63)
}

.spinner { 
    border: 4px solid #f3f3f3; 
    border-top: 4px solid #3498db; 
    border-radius: 50%; width: 30px; 
    height: 30px; 
    animation: spin 1s linear infinite; 
    margin: 10px auto; 
}

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

.hidden { 
    display: none; 
}

.success { 
    color: green; 
    font-weight: bold; 
}

#booking-reference{
    /* font-size: 1.2em; */
    font-weight: 600;
}

.card form {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    gap:10px;
}

.timeAndDate, .details{
    font-size: 20px;
}

.card form input {
    text-align: center;
}

form input{
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    background-color: #fafafa;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.info{
    text-align: center;
}

#allergens {
    width: 100%;
    max-width: 400px;
    height: 120px;
    
    /* 💡 THE IMPORTANT PIECES: */
    resize: none;         /* Disables manual dragging/resizing */
    overflow-y: auto;     /* Adds vertical scrollbar ONLY when content overflows */
    
    /* Optional design styling */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Keeps padding from breaking width/height */
    font-family: sans-serif;
}

label, .details{
    font-size: 20px;
}

label, input{
    width: 20em;
    text-align: center;
}

button {
    font-size: 20px;
    width: 100%;
    background: linear-gradient(
        135deg, 
        #a67c1e 0%,   
        #f2d479 15%,  
        #c99e32 50%,  
        /* #f7e399 75%,   */
        #916812 100%
    );
    /* height: 3em; */
    padding:12px 16px;
    display: flex;
    align-items: center;         /* Vertically aligns the text in the middle */
    justify-content: center;
    border-radius: 5px;
    font-weight: bold;
    font-family: times new roman;
    /* font-size: 18px; */
    color: rgb(18, 37, 63);
    border: none;
}

#spacesRemaining{
    visibility: hidden;
}

.dropdown {
    width: 100%;
    max-width: 400px;
    position: relative;
    display: inline-block;
}

#dropdown::after {
    content: "";
    position: absolute;
    right: 15px; 
    top: 50%;
    transform: translateY(-50%); 
    
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor; 
    
    transition: transform 0.2s ease;
    pointer-events: none; 
}

#dropdown.open::after {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgb(241,239,216); ;
    min-width: 20em;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    padding: 12px;
    z-index: 1;
    overflow-y: auto;
    max-height: 500px;
}

.dropdown-content label {
    display: flex;
    margin-bottom: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: left;
    width: auto;
    border-bottom: 1px solid #ddd;
}

.dropdown-content input[type="number"] {
    width: 50px;
    margin-left: 10px;
    margin-right: 10px;
}

.show { display: block; }

#sorry{
    text-align: center;
}

.bookingStatement{
    text-align: justify
}

.payNowButton{
    max-width: 400px;
}

.guest-check{ 
    min-width: 75px;
}

@media (max-width: 1040px) {
    .bookingStatement{
        text-align: left;   
    }
}