/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #faf9ff;
    overflow-x: hidden;
}

.unselectable {
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-thumb {
    background-color: hsl(228, 62%, 59%);
    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background-color: hsl(228, 100%, 97%);
}

::-webkit-scrollbar-thumb:hover {
    background-color: hsl(228, 8%, 54%);
}

.container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
    overflow: hidden;
    animation: fadeIn 0.8s ease;
}

.info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: #faf9ff;
    color: #373643;
    text-align: center;
}

.info .brand-name a {
    font-size: 1.8rem;
    font-weight: 600;
    color: #373643;
    position: absolute;
    top: 20px;
    left: 30px;
    margin: 0;
    text-decoration: none;
}

.info h1 {
    font-size: 2.3rem;
    margin-top: 3rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.info ul {
    list-style-type: none;
    padding: 0;
}

.info li {
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: left;
}

.bx-check-circle {
    color: hsl(228, 66%, 47%);
}

.form-container {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    margin-top: 4rem;
    position: relative;
    margin: 0;
}

.form-container h2 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #2C2C2C;
    line-height: 30px;
}

.form-container p {
    color: #919499;
    font-size: 1rem;
    margin: 15px 0;
}

.form-container .important {
    color: red;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 8px;
    background: #faf9ff;
    border-radius: 4px;
    margin-bottom: 20px;
}

.progress {
    position: absolute;
    height: 100%;
    width: 0%;
    background: hsl(228, 66%, 47%);
    border-radius: 4px;
    transition: width 0.3s ease-in-out;
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: slideIn 0.5s ease;
}

input,
select {
    width: 100%;
    padding: 15px 18px;
    margin: 15px 0;
    border: 1px solid #ccc;
    border-radius: 50px;
    font-size: 1rem;
    transition: border 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

input:focus {
    outline: none;
    border: 1px solid hsl(228, 66%, 47%);
}

input::placeholder {
    font-family: 'Poppins', sans-serif;
}

select {
    cursor: pointer;
    transition: transform 0.3s ease;
}

select:focus {
    transform: scale(1.05);
}

.btn-container {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 20px; /* Added margin to prevent overlapping */
}

.btn {
    margin-top: 10px;
    margin-right: 8px;
    margin-bottom: 10px;
    background: none;
    border: 1px solid hsl(228, 66%, 47%);
    color: hsl(228, 66%, 47%);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
}

.btn:hover {
    background: hsl(228, 66%, 47%);
    color: white;
}

/* RESPONSIVE CSS */

@media (max-width: 480px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    .info {
        flex: 0 0 auto;
        max-height: none;
        padding: 20px;
    }

    .form-container {
        flex: 1;
        padding: 20px;
        margin-top: 2rem;
    }

    .info h1 {
        font-size: 1.7rem;
        margin-top: 5rem;
    }

    .info .brand-name {
        font-size: 1.2rem;
    }

    .info li {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .form-container h2 {
        font-size: 1rem;
    }

    .form-container p {
        margin: 15px 0;
        font-size: 0.9rem;
    }

    input {
        margin: 0;
        margin-bottom: 12px;
        font-size: 0.9rem;
        padding: 15px;
    }

    .btn-container {
        margin-top: 10px; /* Adjusted margin for smaller screens */
    }
}

@media (min-width: 481px) and (max-width: 950px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    .info {
        flex: 0 0 auto;
        max-height: none;
        padding: 30px;
    }

    .form-container {
        flex: 1;
        padding: 30px;
        margin-top: 2rem;
    }

    .info h1 {
        font-size: 2.1rem;
    }
}

@media (min-width: 951px) and (max-width: 1024px) {
    .container {
        padding: 20px;
    }

    .info {
        padding: 50px;
    }

    .info h1 {
        font-size: 2.2rem;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

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

.custom-dropdown {
    position: relative;
    margin-top: 2rem;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.dropdown-selected {
    padding: 15px 18px;
    border: 1px solid hsl(228, 66%, 47%);
    border-radius: 50px;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: #333;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.dropdown-selected:hover {
    background-color: hsl(228, 66%, 98%);
}

.dropdown-options {
    position: absolute;
    top: 115%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 20px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 20;
}

.dropdown-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-options li {
    padding: 12px 16px;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dropdown-options li:hover {
    background-color: hsl(228, 66%, 97%);
}

.dropdown-icon {
    font-size: 1.1rem;
    color: hsl(228, 66%, 47%);
    transition: transform 0.3s ease;
}

.dropdown-selected.active .dropdown-icon {
    transform: rotate(180deg);
}

@media (max-width: 480px) {
    .custom-dropdown {
        max-width: 100%;
        margin: 1rem 0;
        margin-bottom: 10rem;
    }

    .dropdown-selected {
        font-size: 0.9rem;
        padding: 12px;
    }

    .dropdown-options li {
        font-size: 0.9rem;
    }
}

@media (min-width: 481px) and (max-width: 850px) {
    .custom-dropdown {
        max-width: 100%;
    }

    .dropdown-selected {
        font-size: 1rem;
    }

    .dropdown-options li {
        font-size: 1rem;
    }
}

.card-container {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    margin: 0 auto;
}

.cards {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    scrollbar-width: none;
    font-family: 'Poppins', sans-serif;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    scroll-behavior: smooth;
    margin-top: 1rem;
}

.cards::-webkit-scrollbar {
    display: none;
}

.card {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    transition: border 0.5s ease-in-out;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
}

.card.selected {
    border: 1px solid hsl(228, 66%, 47%);
    outline-offset: -3px;
    transition: all 0.3s ease;
    background: hsl(228, 66%, 97%);
}

.plan-title {
    color: hsl(228, 66%, 47%);
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
}

.price {
    font-size: 1.3rem;
    margin-top: 8px;
    color: hsl(228, 15%, 50%);
}

.price span {
    font-size: 1rem;
    color: gray;
}

.original-price {
    color: gray;
    text-decoration: line-through;
    margin-bottom: 0;
}

.description {
    font-size: 0.9rem;
    margin: 10px 0;
    font-family: 'Poppins', sans-serif;
}

.features {
    list-style: none;
    padding: 0;
    flex-grow: 1;
    color: #2c2c2c;
    font-family: 'Poppins', sans-serif;
}

.features li {
    margin: 8px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.bx-check-circle {
    font-size: 17px;
    color: hsl(228, 66%, 47%);
}

.select-btn {
    background: #fff;
    color: hsl(228, 66%, 47%);
    border: 1px solid hsl(228, 66%, 47%);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    position: sticky;
    width: auto;
    margin: 0 auto;
    margin-top: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.select-btn:hover {
    background-color: hsl(228, 66%, 47%);
    color: white;
}

.indicator {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 15px;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: hsl(228, 78%, 69%);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: hsl(228, 66%, 47%);
}


#backStep2, #backStep3 {
     border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#backStep2, #backStep3 i {
    font-size: 1rem;
}


/* LOADING SPINNER CSS */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid hsl(228, 100%, 98%);
    border-top: 5px solid hsl(228, 67%, 47%);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

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

/* END LOADING SPINNER CSS */

