* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    background: #f5f7fa;
}

.navigation-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.close-button {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    color: #00b5ef;
    cursor: pointer;
    height: 40px;
    width: 40px;
}

.close-button:hover {
    background: #dcf0ff;
    height: 40px;
    width: 40px;
    border-radius: 100%;
}

.progress {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    border-radius: 0;
}

.progress-bar {
    width: 25%;
    height: 100%;
    background: #01B5EF;
}

.container {
    width: 90%;
    max-width: 800px;
    background: white;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    margin-top: 20px;
}

.step {
    display: none;
}

.active {
    display: block;
}

input,
.confirm-button {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    border-radius: 8px;
    border: 1px solid #d1d9e6;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

button.unavailable-slot {
    background-color: #f28b82 !important;
    color: white !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    border: 0px !important;
}

input {
    background: #f5f7fa;
}

input:focus {
    border-color: #01B5EF;
    box-shadow: 0 0 8px rgba(1, 181, 239, 0.3);
}

.search-container {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 15px;
}

.search-state-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    margin-right: 18px;
}

#searchProfessional,
#searchSpecialty {
    width: 100%;
    padding: 8px;
    font-size: 16px;
}

#userState {
    width: max-content;
}

@media (max-width: 768px) {
    .user-info-form form>div {
        flex-direction: column !important;
    }

    .user-info-form input,
    .search-state-container,
    #userState {
        margin-right: 0 !important;
        margin-bottom: 10px;
        width: 100% !important;
    }
}

.container.step2-style {
    height: auto;
    /* max-height: 1200px; */
}

#professionalsDropdown,
#specialtyDropdown,
#stateDropdown {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 99;
    border-radius: 8px;
    padding: 5px 0;
}

#professionalsDropdown div,
#specialtyDropdown div,
#stateDropdown div {
    padding: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 16px;
    color: #333;
}

#professionalsDropdown div:hover,
#specialtyDropdown div:hover,
#stateDropdown div:hover {
    background-color: #f5f7fa;
}

#professionalsDropdown::-webkit-scrollbar,
#specialtyDropdown::-webkit-scrollbar,
#stateDropdown::-webkit-scrollbar {
    width: 8px;
}

#professionalsDropdown::-webkit-scrollbar-track,
#specialtyDropdown::-webkit-scrollbar-track,
#stateDropdown::-webkit-scrollbar-track {
    background: transparent;
}

#professionalsDropdown::-webkit-scrollbar-thumb,
#specialtyDropdown::-webkit-scrollbar-thumb,
#stateDropdown::-webkit-scrollbar-thumb {
    background: #01B5EF;
    border-radius: 10px;
}

#professionalsDropdown::-webkit-scrollbar-thumb:hover,
#specialtyDropdown::-webkit-scrollbar-thumb:hover,
#stateDropdown::-webkit-scrollbar-thumb:hover {
    background: #10c2fd;
}

.date-filter {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.startDateField,
.endDateField {
    flex-direction: column;
    display: flex;
    width: 100%;
}

.date-filter label {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    flex-direction: column;
}

.date-filter input {
    padding: 10px;
    border: 1px solid #d1d9e6;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
}

.filter-actions {
    margin: 10px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-actions button {
    padding: 6px 12px;
    border: none;
    background-color: #eee;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.filter-actions button:hover {
    background-color: #ddd;
}

.professional-card {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: block;
}

.professional-card h3 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.professional-card p {
    font-size: 16px;
    color: #666;
}

.professional-card h4 {
    font-size: 18px;
    color: #333;
    margin-top: 10px;
}

.slots-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
    gap: 10px;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #01B5EF transparent;
}

.slots-container::-webkit-scrollbar {
    height: 6px;
}

.slots-container::-webkit-scrollbar-track {
    background: transparent;
}

.slots-container::-webkit-scrollbar-thumb {
    background: #01B5EF;
    border-radius: 10px;
}

.slot {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 10px 20px;
    margin-right: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
}

.slot:hover {
    background-color: #3498db;
    color: white;
}

.slot.selected {
    background: #3498db;
    color: white;
}

@media screen and (max-width: 768px) {
    .slot {
        min-width: 100px;
        font-size: 14px;
        padding: 8px 16px;
    }

    .slots-container {
        gap: 8px;
    }
}

@media screen and (max-width: 480px) {
    .slot {
        min-width: 80px;
        font-size: 12px;
        padding: 6px 12px;
    }

    .slots-container {
        gap: 6px;
    }
}

.no-results {
    color: #666;
    font-size: 16px;
    margin-top: 20px;
    text-align: center;
}

.confirm-button {
    background: #01B5EF;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 10px;
}

.confirm-button:hover {
    background-color: #10c2fd;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(1, 181, 239, 0.3);
    z-index: 1;
}

.back-button {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: #01B5EF;
    font-weight: bold;
    border: 1px solid #01B5EF;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 10px;
}

.back-button:hover {
    background-color: #10c2fd;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(1, 181, 239, 0.3);
    z-index: 1;
}

.popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ff4d4d;
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 1000;
    width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    max-width: 100%;
}

.popup-content p {
    margin-right: 15px;
    color: white;
}

.popup button {
    background-color: #ff1a1a;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

.popup .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: white;
    cursor: pointer;
}

.popup .close-button:hover {
    border-radius: 50%;
    padding: 5px;
    background-color: transparent;
}

@media (max-width: 768px) {
    .popup {
        width: 90%;
        bottom: 10px;
        right: 10px;
        padding: 15px;
    }

    .popup button {
        font-size: 12px;
        padding: 8px 16px;
    }

    .popup .close-button {
        top: 5px;
        right: 5px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .popup {
        width: 97%;
        bottom: 5px;
        right: 5px;
        padding: 10px;
    }

    .popup button {
        font-size: 12px;
        padding: 6px 14px;
    }

    .popup .close-button {
        top: 5px;
        right: 5px;
        font-size: 16px;
    }
}

.hidden {
    display: none;
}

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

.hidden-overlay {
    display: none;
}

.loading-spinner {
    margin-left: 10px;
    font-size: 18px;
    display: inline-block;
    animation: spin 1s linear infinite;
}

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

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

.payment-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
}

.card {
    width: 600px;
    height: 180px;
    perspective: 1000px;
    position: relative;
    margin-right: 20px;
}

.card-front,
.card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background-color: white;
    border: 1px solid #01B5EF;
    color: #01B5EF;
    font-size: 18px;
    transition: transform 0.5s;
}

.back-bar {
    width: 100%;
    height: 30px;
    background-color: #01B5EF;
    margin-top: 20px;
    position: absolute;
    bottom: 25px;
}

.card-back {
    transform: rotateY(180deg);
}

.card.flipped .card-front {
    transform: rotateY(180deg);
}

.card.flipped .card-back {
    transform: rotateY(0deg);
}

.card-front {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}

.card-back {
    display: flex;
    justify-content: center;
    align-items: center;
}

.card .card-cvc {
    font-size: 20px;
}

input:focus {
    outline: none;
}

@media screen and (max-width: 768px) {
    .payment-form {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    .payment-form {
        flex-direction: column;
    }

    .card {
        width: 300px;
        margin: 0;
    }
}