/* step style */
.step-indicator {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin: 2rem auto;
    position: relative;
    /* padding: 0 40px; */
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 60px;
    right: 60px;
    height: 3px;
    background: #e5e7eb;
    z-index: 1;
}

/* Progress line */
.step-indicator::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 60px;
    height: 3px;
    background: #60A5FA;
    z-index: 1;
    transition: width 0.5s ease;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    padding: 0 10px;
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: 10%;
    background: #fff;
    border: 3px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.1);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.step:hover .step-number::after {
    opacity: 1;
    transform: scale(1);
}

.step-title {
    font-size: 0.95rem;
    color: #6b7280;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

/* Active state */
.step.active .step-number {
    background: #60A5FA;
    border-color: #60A5FA;
    color: white;
    box-shadow: 0 0 0 5px rgba(96, 165, 250, 0.2);
}

.step.active .step-title {
    color: #2563eb;
    font-weight: 600;
}

/* Completed state */
.step.completed .step-number {
    background: #34D399;
    border-color: #34D399;
    color: white;
    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.2);
}

.step.completed .step-title {
    color: #059669;
}

/* Hover effects */
.step:hover .step-title {
    transform: translateY(-2px);
}

.step:not(.completed):not(.active):hover .step-number {
    border-color: #9CA3AF;
    transform: scale(1.05);
}

/* Error state */
.step.error .step-number {
    background: #EF4444;
    border-color: #EF4444;
    color: white;
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.2);
}

.step.error .step-title {
    color: #DC2626;
}

/* Animation for state changes */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.step.active .step-number {
    animation: pulse 2s infinite;
}

/* step style end */


/* step button style*/
.nav-button {
    background-color: #574caf;
    border: none;
    color: white;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    margin-right: 10px;
}

.nav-button:hover {
    background-color: #2b5cb9;
}

.nav-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.nav-button.hidden {
    display: none;
}

.button-container {
    /* display: column; */
    justify-content: flex-start;
    /* padding: 20px; */
    margin: 20px;
    max-width: 800px;
    /* Adjust this value based on your needs */
    margin-left: auto;
    margin-right: auto;
}

/* step button  end*/







/* Form containers */
.form-screen {
    display: none;
}

.form-screen.active {
    display: block;
}

.form-container {
    margin-top: 100px;
    background-color: white;
    padding: 15px;

    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 350px;

    width: 100%;

}

.form-container h2 {
    margin-bottom: 15px;

    text-align: center;
}

.form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* .form-container input[type="date"], */
.form-container select {
    width: 100%;
    height: 80%;
    padding-left: 10px;
    margin-bottom: 30px;
    margin-top: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
}

.form-container input[type="submit"] {
    width: 100%;
    padding: 12px;
    /* Reduced padding */
    background-color: #3a72ae;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    /* Reduced font size */
}

.form-container input[type="submit"]:hover {
    background-color: #0056b3;
}

.form-group {
    display: flex;
    align-items: center;
    height: 3rem;

}

.form-group .icon {
    display: none;
    color: #4b5563;
    margin-right: 0.5rem;
}

.form-group label {
    flex: 0 0 30%;

    margin-right: 10px;

}

.form-group select {
    flex: 1;

    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.flatpickr-calendar {
    font-size: 16px;
}



.flatpickr.form-control {
    width: 100%;
    /* height: 45px; */
    padding: 8px 12px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    background-color: white;
}

.flatpickr.form-control:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}



/* .flatpickr-calendar .flatpickr-day.disabled,
.flatpickr-calendar .flatpickr-day.disabled:hover {
    color: #cccccc !important;
    background-color: transparent !important;
    cursor: not-allowed !important;
    text-decoration: line-through;
    opacity: 1 !important;
}

.flatpickr-calendar .flatpickr-day.today.disabled {
    border-color: #cccccc !important;
    color: #cccccc !important;
}


.flatpickr-calendar .flatpickr-day.disabled:hover {
    background-color: #f7f7f7 !important;
}
*/

@media (max-width: 480px) {
    .form-container {
        padding: 1rem;
    }

    .form-group {
        margin-bottom: 0.5rem;
        /* width: 100%; */
        margin-left: 2rem;
    }

    .form-group label {
        display: none;
    }

    .form-group .icon {
        display: inline-flex;
        min-width: 50px;
        /* size: ; */

    }

    .form-group select,
    .form-group input[type="date"] {
        flex: 1;

    }
}

/* form style end */

.search-results {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.restaurant-result {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin: 10px;
}

.restaurant-info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 15px;
    /* padding: auto; */
}

.restaurant-info img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.restaurant-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
}

.restaurant-info h3 {
    margin: 0;
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: #333;
}

.restaurant-info p {
    margin: 0;
    color: #666;
}

.time-selection {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
    /* Allow wrapping for better responsiveness */
}

.time-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #ede9e9;
    border-radius: 5px;
    padding: 5px;
    width: 100px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.time-text {
    margin-bottom: 5px;
}

.time-selection button {
    padding: 10px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    /* Ensure button takes full width */
}

.time-selection .select {
    background-color: #4e3be1;
    color: white;
}

.time-selection .select:hover,
.time-selection .wait-list:hover {
    background-color: #2b5cb9;
}

.time-selection .wait-list {
    background-color: #FFA500;
    color: white;
}


@media (max-width: 480px) {
    .time-container {
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        width: 300px;
        padding: 10px 15px;
        margin-top: 10px;
    }

    .time-text {
        margin-bottom: 0;

    }

    button.select {
        /* min-width: 100px; */
        font-size: 15px;
        max-width: 150px;
    }
}



/*  reservation info style*/

.reservation-info {
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
}

.reservation-info h2 {
    margin-bottom: 15px;
}

.reservation-info i {
    color: #0056b3;
    padding-left: 8px;
    padding-right: 15px;
}


/*  reservation info style*/



.description {
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #666;
}


/* .select-table-type {
    display: none;
    font-family: Arial, sans-serif;
    
    margin: 20px auto;
    width: 550px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.select-table-type h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.select-table-type .time-slot {
    margin-bottom: 20px;
}

.select-table-type .seating-type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.select-table-type .seating-type label {
    flex: 1;
    font-size: 18px;
}

.select-table-type button {
    margin-left: 20px;
    padding: 10px 20px;
    background-color: #d9534f;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
} */

#verify-card-button {
    background-color: #3590f0;
    /* Blue */
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#verify-card-button:hover {
    background-color: #0062cc;
}

#verified-card-info {
    display: none;
    margin-top: 10px;
    text-align: center;
}

#edit-card-button {
    background-color: #e6e6e6;
    color: #333;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 5px;
}

#edit-card-button:hover {
    background-color: #ddd;
}

.terms_conditions {
    width: 100%;
    max-width: 500;
    /* Ensure it takes the full width of the container */
    /* padding: 20px; */
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    /* color: grey; */

}

.terms_conditions h3,
.terms_conditions h4 {
    margin-top: 20px;
}

.terms_conditions p {
    margin: 10px 0;
}

.terms_conditions .section-content {
    margin-bottom: 20px;
    /* padding-right: 20px; */
    color: grey;
}

.agreement-text {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 10px;
}

.agreement-text a {
    color: #007bff;
    text-decoration: none;
}

.agreement-text a:hover {
    text-decoration: underline;
}

.submit-reservation-button {
    margin-left: 20px;
    padding: 10px 20px;
    background-color: #5a67d8;
    /* #d9534f; */
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    width: 300px;
    font-size: 20px;
}

.submit-verification-button {
    margin-left: 20px;
    padding: 10px 20px;
    background-color: #d9534f;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    /* width: 200px; */
    font-size: 17px;
}

.resend-verification-button {
    margin-left: 20px;
    padding: 10px 20px;
    background-color: #d5928f;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    /* width: 200px; */
    font-size: 13px;
}



.seating-type-content button.wait-list {
    /* background-color: #f0ad4e; */
    background: linear-gradient(135deg, #f0ad4e, #764ba2);
}

/* Basic styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* height: 100vh; */
    background-color: #f0f0f0;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 85%;
    max-width: 1200px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* .confirmation-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 85%;
    max-width: 500px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
} */
.confirmation-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 85%;
    /* Changed from 85% */
    max-width: 500px;
    background-color: #fff;
    padding: 15px;
    /* Reduced padding */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    /* Center container */
}

.row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.col {
    flex: 1;
    padding: 10px;
}

.terms {
    font-size: 14px;
}

/* event tag style    */
.occasion-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px dashed #2196f3;
    border-radius: 20px;
    background: white;
    color: #2196f3;
    cursor: pointer;
    margin-top: 15px;
    margin-bottom: 15px;
}

.tag-container {
    padding: 8px;
}

.tag-modal-content {
    position: relative;
    background: white;
    margin: 50px auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
}

.tag-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tag-close-modal {
    font-size: 24px;
    border: none;
    background: none;
    cursor: pointer;
}

.category-section {
    margin-bottom: 16px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.category-header {
    padding: 12px;
    background: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-header i {
    transition: transform 0.3s;
}

.category-header.expanded i {
    transform: rotate(180deg);
}

.category-content {
    display: none;
    padding: 12px;
}

.category-content.expanded {
    display: block;
}

/* Tag Styles */
.tag-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    background: white;
    font-size: 14px;
    transition: all 0.2s;
    margin: 4px;
}

/* Different colors for different categories */
.tag-btn[data-category="Allergies"] {
    border-color: #ff5252;
    color: #ff5252;
}

.tag-btn[data-category="Allergies"] i {
    color: #c62828;
    padding-right: 5px;
}

.tag-btn[data-category="Allergies"].selected {
    background: #ffebee;
    color: #c62828;
}

.tag-btn[data-category="Occasion"] {
    border-color: #2196f3;
    color: #2196f3;

}

.tag-btn[data-category="Occasion"] i {
    color: #1565c0;
    padding-right: 5px;
}



.tag-btn[data-category="Occasion"].selected {
    background: #e3f2fd;
    color: #1565c0;
}

.tag-btn[data-category="Dietary"] {
    border-color: #4CAF50;
    color: #5ac85d;
}

.tag-btn[data-category="Dietary"] i {
    color: #419244;
    padding-right: 5px;
}

.tag-btn[data-category="Dietary"].selected {
    background: #dbf6dc;
    color: #419244;
}

.tag-btn[data-category="Service"] {
    border-color: #9C27B0;
    color: #bc30d4;
}

.tag-btn[data-category="Service"] i {
    color: #9C27B0;
    padding-right: 5px;
}

.tag-btn[data-category="Service"].selected {
    background: #f4e1f7;
    color: #9C27B0;
}

.tag-btn[data-category="Celebrations"] {
    border-color: #d16830;
    color: #f8ad57;
}

.tag-btn[data-category="Celebrations"] i {
    color: #d16830;
    padding-right: 5px;
}

.tag-btn[data-category="Celebrations"].selected {
    background: #f0e4de;
    color: #d16830;
}

.tag-btn[data-category="Etc"] {
    border-color: #1ebbd4;
    color: #26edd9;
}

.tag-btn[data-category="Etc"] i {
    color: #1ebbd4;
    padding-right: 5px;
}

.tag-btn[data-category="Etc"].selected {
    background: #e0eef5;
    color: #1ebbd4;
}



.tag-modal-footer {
    margin-top: 20px;
    text-align: right;
}

.apply-btn {
    padding: 8px 24px;
    background: #346d9b;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* .tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    background: white;
    font-size: 14px;
    transition: all 0.2s;
}

.tag-btn.selected {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
}

.tag-btn i {
    margin-right: 6px;
    font-size: 16px;
} */


/*  event tag style end */
/* verification modal style */


#confirmation-screen i {
    color: #0056b3;
    padding-right: 10px;
    padding-left: 8px;
}

/*  confimation style  */

#confirmation-screen {
    width: 100%;
    /* Added width */
    max-width: 500px;
    margin: 0 auto;
    padding: 15px;
    /* Reduced padding */
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#confirmation-screen p {
    display: flex;
    align-items: flex-start;
    /* Changed from center */
    margin-bottom: 12px;
    color: #333;
    font-size: 14px;
    /* Reduced font size */
    flex-wrap: wrap;
    /* Added wrap */
}

#confirmation-screen strong {
    min-width: 100px;
    /* Reduced from 120px */
    display: inline-block;
    color: #495057;
    font-weight: 600;
    margin-right: 10px;
    /* Added margin */
}

#confirmation-screen h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
    /* align-items: center; */
}



#confirmation-screen i {
    color: #0056b3;
    margin-right: 15px;
    width: 25px;
    text-align: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#confirmation-screen p:hover i {
    opacity: 1;
}



#confirmation-screen span:not(strong) {
    color: #6c757d;
}

/* Highlight specific sections */
#confirmation-restaurant-name {
    color: #0056b3;
    font-weight: bold;
    font-size: 1.2em;
}

/* Special sections */
#confirmation-card,
#confirmation-occasions,
#confirmation-selections,
#confirmation-special-request {
    background-color: #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: 15px;
}

/* Updated media queries */
@media (max-width: 600px) {

    .confirmation-container,
    #confirmation-screen {
        width: 95%;
        padding: 10px;
    }

    #confirmation-screen p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    #confirmation-screen strong {
        min-width: 90px;
    }

    #confirmation-restaurant-name {
        font-size: 1em;
    }

    #confirmation-screen i {
        width: 20px;
        margin-right: 10px;
    }
}

@media (max-width: 400px) {

    .confirmation-container,
    #confirmation-screen {
        width: 100%;
        padding: 8px;
    }

    #confirmation-screen p {
        font-size: 13px;
        margin-bottom: 8px;
    }

    #confirmation-screen strong {
        min-width: 80px;
    }

    #confirmation-screen i {
        width: 15px;
        margin-right: 8px;
    }
}

/* Remove animations for better mobile performance */
@media (max-width: 600px) {
    #confirmation-screen p {
        animation: none;
        opacity: 1;
    }
}

/* Subtle animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#confirmation-screen p {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
    animation-delay: calc(var(--delay) * 0.1s);
}

#confirmation-screen p:nth-child(1) {
    --delay: 1;
}

#confirmation-screen p:nth-child(2) {
    --delay: 2;
}

#confirmation-screen p:nth-child(3) {
    --delay: 3;
}

/* Continue for other paragraphs */
/*   confirmation style end */

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    /* Ensure it's above other elements */
    justify-content: center;
    align-items: center;
    width: 90%;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* gap: 8px; */
}

.modal-content {
    position: relative;
    width: 100%;
}

/* .modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
} */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* .modal-content {
    text-align: center;
} */

.verification-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
}

.error-message {
    background-color: #ffe6e6;
    color: #d32f2f;
    border: 1px solid #ffa4a4;
}

.submit-verification-button,
.resend-verification-button {
    margin: 5px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.submit-verification-button {
    background-color: #4CAF50;
    color: white;
}

.resend-verification-button {
    background-color: #f0f0f0;
    color: #333;
}

#verification-code-input {
    width: 200px;
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* verification modal style end */
.close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}



/* .overlay {
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    
    z-index: 999;
    
} */

#progress-indicator {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    /* Ensure it's above other elements */
    background-color: rgba(255, 255, 255, 0.8);
    /* Semi-transparent white background */
    padding: 20px;
    border-radius: 10px;
}

.hidden {
    display: none;
}

#phone,
#email,
#firstName,
#lastName,
#verification-code-input {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    width: 80%;
    max-width: 400px;
    font-size: 16px;
    /* height: 20; */
}

#card-element {
    width: 80%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.security-message a:hover {
    text-decoration: underline;
}

#specialRequest {
    width: 80%;
    max-width: 400px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.errors {
    color: red
}

#card-errors {
    color: red;
}

#verificationModal {
    display: none;

}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.progress-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* #initial-screen {
    display: none;
} */


/* Styles for screens smaller than 768px (typical mobile breakpoint) */
@media only screen and (max-width: 768px) {
    /* .select-table-type {
        width: 80%;
        
        margin: 10px auto;
        
    }

    .select-table-type h1 {
        font-size: 20px;
        
    }

    .select-table-type .seating-type {
        flex-direction: row;
        
        align-items: flex-start;
        
    }

    .select-table-type .seating-type label,
    .select-table-type button {
        margin: 5px 0;
        
    }

    .select-table-type button {
        margin: 0 auto;
        
        display: block;
        padding: 8px 16px;
        
        margin-left: 10px;
        
        margin-right: 10px;
        
    } */

    .row {
        flex-direction: column;
    }

    .col {
        width: 100%;
    }
}

/*. table-type style*/
.select-table-type {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 40px;
    max-width: 550px;
    width: 100%;
    transition: all 0.3s ease;
}

.select-table-type:hover {
    transform: translateY(-5px);
    box-shadow:
        0 35px 70px -12px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.time-slot h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    text-align: center;
}

.time-slot h4 {
    font-size: 1.2rem;
    color: #64748b;
    font-weight: 500;
    text-align: center;
    margin-bottom: 40px;
    opacity: 0.8;
}

.seating-type {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.seating-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.seating-type:hover {
    transform: translateX(8px);
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.25);
}

.seating-type:hover::before {
    left: 100%;
}

.seating-type img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    margin-right: 32px;
    box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.seating-type:hover img {
    transform: scale(1.05);
    box-shadow: 0 12px 35px -8px rgba(0, 0, 0, 0.4);
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: flex-end;
    text-align: right;
}

.seating-type .seating-icon-placeholder {
    width: 200px;
    /* Same size as image */
    height: 200px;
    border-radius: 8px;
    margin-right: 15px;
    border: 1px solid #dee2e6;
    flex-shrink: 0;
    background-color: #e9ecef;
    /* Light background for the icon area */
    display: flex;
    align-items: center;
    justify-content: center;
}

.seating-type .seating-icon-placeholder svg {
    width: 80px;
    /* Size of the icon within its container */
    height: 80px;
    color: #6c757d;
    /* Color of the icon */
}

.seating-type-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertically center label/button */
    flex-grow: 1;
    /* Allow it to take available space */
    text-align: left;
    /* Align text within its column */
}

.seating-type-content label {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    text-transform: capitalize;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}

.seating-type-content button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.seating-type-content button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.seating-type-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

.seating-type-content button:hover::before {
    left: 100%;
}

.seating-type-content button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* body {
        padding: 15px;
    } */

    .select-table-type {
        padding: 24px;
        border-radius: 20px;
        max-width: 90%;
    }

    .time-slot h1 {
        font-size: 2rem;
    }

    .time-slot h4 {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .seating-type {

        text-align: right;
        padding: 20px;
    }

    .content-wrapper {
        align-items: center;
        text-align: center;
    }

    .seating-type img {
        width: 120px;
        height: 120px;
        margin-right: 0;
        margin-bottom: 16px;
    }

    .seating-type .seating-icon-placeholder {
        width: 120px;
        /* Same size as image */
        height: 120px;
    }

    .seating-type-content label {
        font-size: 1.5rem;
        margin-bottom: 16px;
        text-align: center;
    }

    .seating-type-content button {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .seating-type:hover {
        transform: translateY(-4px);
    }

    .seating-type-content {
        margin-left: 10px;
        /* Adjust margin for content */
    }
}

@media (max-width: 480px) {
    .select-table-type {
        padding: 20px;
        max-width: 80%;
    }

    .time-slot h1 {
        font-size: 1.8rem;
    }

    .seating-type {
        padding: 16px;
        margin-bottom: 16px;
    }

    .seating-type-content label {
        font-size: 1.3rem;
    }
}

/* Animation on load */
/* @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        } */

.select-table-type {
    animation: fadeInUp 0.6s ease-out;
}

.seating-type:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.seating-type:nth-child(4) {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/*.   table-type end*/

/* select-service css*/

.select-service {
    max-width: 780px;
    /* Changed from 1200px to 480px */
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.service-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.service-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.search-container {
    position: relative;
    max-width: 400px;
    /* Keep max-width for internal scaling, but parent now limits it more */
    margin: 30px auto;
    padding: 0 30px;
}

.search-input {
    width: 90%;
    padding: 16px 10px 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #64748b;
    pointer-events: none;
}

.category-tabs {
    display: flex;
    gap: 8px;
    padding: 0 30px 20px;
    overflow-x: auto;
    /* Allows horizontal scrolling */
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar for IE/Edge */
}

.category-tabs::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome, Safari, Opera */
}

.category-tab {
    background: #f1f5f9;
    color: #64748b;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
    border: 2px solid transparent;
}

.category-tab:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.category-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.services-grid {
    /* Since parent max-width is 480px, this will naturally go to 1fr. */
    /* Adjusting minmax here to allow for slightly smaller cards if needed in the future */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /* Adjusted minmax for flexibility */
    gap: 24px;
    padding: 0 30px 30px;
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #f1f5f9;
    cursor: pointer;
    position: relative;
    display: flex;
    /* Keep as flex for row layout on desktop and mobile */
    align-items: stretch;
    margin-bottom: 16px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.service-card.selected {
    border-color: #667eea;
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
    transform: translateY(-4px);
}

.service-card.selected::before {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    background: #667eea;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
}

.service-image {
    /* Fixed 200x200 size for both desktop and mobile */
    width: 200px;
    height: 200px;
    min-width: 200px;
    /* Ensure it never shrinks below 200px */
    flex-shrink: 0;
    /* Prevent it from shrinking in flex container */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-icon {
    width: 48px;
    height: 48px;
    color: #64748b;
}

.service-content {
    padding: 24px;
    flex: 1;
    /* Allows content to take remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-info {
    margin-bottom: 12px;
}

.service-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.service-category {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
    display: inline-block;
}

.service-description {
    color: #64748b;
    margin: 16px 0;
    line-height: 1.5;
    order: 4;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin: 12px 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    background: #f8fafc;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    width: fit-content;
    margin-top: 12px;
}

.quantity-btn {
    background: #667eea;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #5a67d8;
    transform: scale(1.1);
}

.quantity-display {
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 30px;
    text-align: center;
    color: #1e293b;
}

.summary-container {
    background: #f8fafc;
    margin: 30px;
    border-radius: 20px;
    padding: 30px;
    border: 2px solid #e2e8f0;
}

.summary-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 24px;
}

.summary-icon {
    width: 24px;
    height: 24px;
    color: #667eea;
}

.summary-items {
    space-y: 16px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.summary-item-qty {
    color: #64748b;
    font-size: 0.9rem;
}

.summary-item-price {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.total-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.next-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 30px 30px;
    width: calc(100% - 60px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.next-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.next-button:active {
    transform: translateY(-1px);
}

/* Mobile Responsive */
/* Adjustments for screens up to 768px, but now effectively primary for 480px max-width */
@media (max-width: 768px) {

    /* This media query still applies, but 480px max-width dominates */
    body {
        padding: 5px;
    }

    .select-service {
        max-width: 580px;
        margin: 5px auto;
    }

    .service-title {
        font-size: 2rem;
    }

    .service-subtitle {
        font-size: 1rem;
    }

    .service-header {
        padding: 20px 15px;
    }

    .search-container {
        padding: 0 15px;
        max-width: none;
    }

    .category-tabs {
        padding: 0 15px 15px;
    }

    .services-grid {
        /* Already effectively 1fr due to parent max-width */
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 15px 15px;
    }

    .service-card {
        flex-direction: row;
        align-items: stretch;
    }

    .service-image {
        width: 150px;
        height: 150px;
        min-width: 150px;
        flex-shrink: 0;
    }

    .service-content {
        padding: 15px;
        flex: 1;
    }

    .service-info {
        margin-bottom: 8px;
    }

    .summary-container {
        margin: 15px;
        padding: 20px;
    }

    .summary-title {
        font-size: 1.3rem;
    }

    .summary-item {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 12px 0;
    }

    .summary-total {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .next-button {
        margin: 0 15px 15px;
        width: calc(100% - 30px);
    }
}

/* Very small screen adjustments (now applies to screens <= 480px) */
@media (max-width: 480px) {
    .select-service {
        max-width: 406px;
        /* margin: 5px auto; */
    }

    /* This media query is now redundant given the max-width on .select-service */
    .service-title {
        font-size: 1.8rem;
    }

    .service-image {
        width: 100px;
        height: 100px;
        min-width: 100px;
        flex-shrink: 0;
    }

    .category-tab {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .service-content {
        padding: 12px;
    }

    .service-name {
        font-size: 1.1rem;
    }

    .service-price {
        font-size: 1.3rem;
    }

    .quantity-controls {
        gap: 8px;
        padding: 6px 12px;
    }

    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* select service css end. */