@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "TikTok Sans", sans-serif;
    font-optical-sizing: auto;
    background-color: #fff;
    overflow-x: hidden;
}

body.modal-active {
    overflow: hidden;
}

.content {
    text-align: center;
    color: white;
    padding-top: 100px;
}

.button {
    display: inline-block;
    padding: 15px 30px;
    background: #efefef;
    color: #222;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    background: #009bd5;
    color: white;
}

#modal-container {
    position: fixed;
    display: table;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    transform: scale(0);
    z-index: 1100;
}

#modal-container.one {
    transform: scaleY(0.01) scaleX(0);
    animation: unfoldIn 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

#modal-container.one.out {
    transform: scale(1);
    animation: unfoldOut 1s 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.modal-background {
    display: table-cell;
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    vertical-align: middle;
}

.modal {
    display: inline-block;
    background: white;
    padding: 40px;
    border-radius: 4px;
    transform: scale(0);
    animation: zoomIn 0.5s 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

#modal-container.one.out .modal {
    animation: zoomOut 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.modal h2 {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 700;
    background: linear-gradient(180deg, #32031a -9.89%, #980a50 89.96%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal p {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 40px;
}

@keyframes unfoldIn {
    0% {
        transform: scaleY(0.005) scaleX(0);
    }

    50% {
        transform: scaleY(0.005) scaleX(1);
    }

    100% {
        transform: scaleY(1) scaleX(1);
    }
}

@keyframes unfoldOut {
    0% {
        transform: scaleY(1) scaleX(1);
    }

    50% {
        transform: scaleY(0.005) scaleX(1);
    }

    100% {
        transform: scaleY(0.005) scaleX(0);
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes zoomOut {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.modern-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-now-button {
    color: #fff;
}

.options {
    text-align: start;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.select-btn,
.sBtn-text,
.form-input {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.select-btn,
.form-input {
    max-width: 280px;
}

/* modal */

.select-menu {
    /* width: 380px; */
    /* margin: 25px auto; */
    margin-bottom: 25px;
}

.select-menu .select-btn {
    display: flex;
    height: 55px;
    background: #fff;
    padding: 20px;
    font-size: 18px;
    font-weight: 400;
    border-radius: 8px;
    align-items: center;
    cursor: pointer;
    justify-content: space-between;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.select-btn i {
    font-size: 25px;
    transition: 0.3s;
}

.select-menu.active .select-btn i {
    transform: rotate(-180deg);
}

.select-menu .options {
    position: relative;
    padding: 20px;
    margin-top: 10px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
    display: none;
}

.select-menu.active .options {
    display: block;
}

.options .option {
    display: flex;
    height: 40px;
    cursor: pointer;
    padding: 0 16px;
    border-radius: 8px;
    align-items: center;
    background: #fff;
}

.options .option:hover {
    background: #f2f2f2;
}

.option i {
    font-size: 25px;
    margin-right: 12px;
}

.option .option-text {
    font-size: 15px;
    color: #333;
}

.input-demo-card {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.input-type-title {
    color: #222;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.glass-morphism-container {
    margin-bottom: 16px;
}

.glass-morphism-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    background-color: #f9f9f9;
    color: #333;
}

.glass-morphism-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
    background-color: #fff;
}

.glass-morphism-input::placeholder {
    color: #888;
}

@media (min-width: 300px) and (max-width: 350px) {
    .modal {
        padding: 15px !important;
    }
}

@media (min-width: 300px) and (max-width: 700px) {
    .form-row {
        display: grid;
        margin-bottom: 25px;
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

/* Form Row Layout */
.form-row {
    display: grid;
    margin-bottom: 25px;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Input Styling */
.form-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    background-color: #f9f9f9;
    transition: 0.3s;
    margin-bottom: 25px;
}

.form-input:focus {
    border-color: #007bff;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}

/* Select Menu (reuse your existing styling) */
.select-menu {
    position: relative;
}

.select-menu .select-btn {
    display: flex;
    height: 45px;
    background: #fff;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 8px;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border: 1px solid #ccc;
}

.select-menu .options {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    z-index: 1000;
    display: none;

    /* Added for scrolling */
    max-height: 200px;
    /* Or any height that fits your layout */
    overflow-y: auto;
}

.select-menu .options::-webkit-scrollbar {
    width: 6px;
}

.select-menu .options::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.select-menu .options::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}

.select-menu.active .options {
    display: block;
}

.options .option {
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.options .option:hover {
    background-color: #f0f0f0;
}

/* Submit Button */

/* Shared Input & Select Design from Screenshot */
.form-input,
.select-menu .select-btn,
.select-menu .options,
textarea.form-input {
    background-color: #f9f7f9;
    /* Matches screenshot background */
    border: none;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 15px;
    color: #000000;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    /* Optional: use if matching font */
    box-shadow: none;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.form-input::placeholder,
.select-menu .sBtn-text,
textarea.form-input::placeholder {
    color: #000000;
    /* Matches light placeholder */
    font-weight: 600;
}

.form-input:focus,
textarea.form-input:focus {
    outline: none;
    background-color: #fff;
    border: 1px solid #ffebf5;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

/* Refine spacing in form rows */
.form-row {
    gap: 20px;
    margin-bottom: 25px;
}

/* Dropdown menu match */
.select-menu {
    margin-bottom: 25px;
}

.select-menu .select-btn {
    height: 48px;
    border: none;
    box-shadow: none;
}

.select-menu .options {
    top: 100%;
    border: 1px solid #eee;
    padding: 10px 0;
}

.options .option {
    font-size: 15px;
    padding: 12px 16px;
    color: #333;
}

.options .option:hover {
    background-color: #f3f3f3;
}

/* Optional: Textarea full width */
textarea.form-input {
    width: 100%;
    resize: vertical;
    min-height: 120px;
}

/* responsive */

.dropdown-contentz {
    display: none;
    background-color: white;
    min-width: 300px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.dropdown-contentz::-webkit-scrollbar {
    width: 6px;
}

.dropdown-contentz::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.dropdown-contentz a:hover {
    border-left: 5px solid #980a50;
}

.dropdownz {
    position: relative;
}

.dropdown-contentz a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    white-space: normal;
    font-size: 14px;
}

.dropdown-contentz a:hover {
    background-color: #f0f0f0;
}

.dropdownz:hover {
    display: block;
}