@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

::root {
    --w_100: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: url('./asstes/background.png') no-repeat center center fixed;


    background-size: cover;
    min-height: 100vh;
}

.formbold-main-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-image-container {
    width: 100%;
    /* Use 100% instead of var(--w_100) for clarity */
    height: auto !important;
    /* Set height to 50% of the parent container */
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Ensure no overflow */
}


.cover-image {
    width: 100%;
    /* Set width to 100% */
    height: auto;
    /* Maintain aspect ratio */
    border-radius: 5px;
}

.formbold-form-wrapper {
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    padding: 50px;
    box-shadow: 0 0 120px 0 rgba(0, 0, 0, 0.125);
    background: white;
}



.formbold-event-wrapper span {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 2.5px;
    color: #6a64f1;
    display: inline-block;
    margin-bottom: 12px;
}

.formbold-event-wrapper h3 {
    font-weight: 700;
    font-size: 28px;
    line-height: 34px;
    color: #07074d;
    width: 60%;
    margin-bottom: 15px;
}

.formbold-event-wrapper h4 {
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: #07074d;
    width: 60%;
    margin: 25px 0 15px;
}

.formbold-event-wrapper p {
    font-size: 16px;
    line-height: 24px;
    color: #536387;
}

.formbold-event-details {
    background: #fafafa;
    border: 1px solid #dde3ec;
    border-radius: 5px;
    margin: 25px 0 30px;
}

.formbold-event-details h5 {
    color: #07074d;
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    padding: 15px 25px;
}

.formbold-event-details ul {
    border-top: 1px solid #edeef2;
    padding: 25px;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    row-gap: 14px;
}

.formbold-event-details ul li {
    color: #536387;
    font-size: 16px;
    line-height: 24px;
    width: 50%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.formbold-form-title {
    color: #07074d;
    font-weight: 600;
    font-size: 28px;
    line-height: 35px;
    width: 60%;
    margin-bottom: 30px;
}

.formbold-input-flex {
    display: flex;
    flex-direction: column;
    /* Stack items vertically on small screens */
    gap: 20px;
    margin-bottom: 15px;
}


.formbold-input-flex>div {
    width: 100%;
    /* Full width on small screens */
}


.formbold-form-input {
    /* text-align: center; */
    width: 100%;
    padding: 13px 22px;
    border-radius: 5px;
    border: 1px solid #dde3ec;
    background: #ffffff;
    font-weight: 500;
    font-size: 16px;
    color: #536387;
    outline: none;
    resize: none;
}

.formbold-form-input:focus {
    border-color: #6a64f1;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.05);
}

.formbold-form-label {
    color: #536387;
    font-size: 14px;
    line-height: 24px;
    display: block;
    margin-bottom: 10px;
}

.formbold-policy {
    font-size: 14px;
    line-height: 24px;
    color: #536387;
    width: 70%;
    margin-top: 22px;
}

.formbold-policy a {
    color: #6a64f1;
}

.event-description {
    margin-top: 12px;
}

.formbold-btn {
    text-align: center;
    width: 100%;
    font-size: 16px;
    border-radius: 5px;
    padding: 14px 25px;
    border: none;
    font-weight: 500;
    background-color: #6a64f1;
    color: white;
    cursor: pointer;
    margin-top: 25px;
}

.formbold-btn:hover {
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.05);
}


/* ----  -----  */
.error-message {
    color: #ff0000;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.formbold-checkbox-wrapper {
    margin: 20px 0;
}

.formbold-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.formbold-checkbox-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #dde3ec;
    border-radius: 4px;
    position: relative;
}

.formbold-checkbox-label input:checked+.formbold-checkbox-checkmark {
    background-color: #6a64f1;
    border-color: #6a64f1;
}

/* Add these new styles */
.selected-countries {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.country-tag {
    background-color: #f0f0f7;
    border: 1px solid #dde3ec;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    color: #536387;
}

.country-tag button {
    background: none;
    border: none;
    margin-left: 6px;
    color: #536387;
    cursor: pointer;
    font-size: 16px;
    padding: 0 2px;
    display: inline-flex;
    align-items: center;
}

.country-tag button:hover {
    color: #ff0000;
}

/* ---------------- */


.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

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

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

.formbold-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (min-width: 600px) {
    .formbold-input-flex {
        flex-direction: row;
        /* Switch to horizontal layout on larger screens */
    }
}


@media (min-width: 600px) {
    .formbold-input-flex>div {
        width: 50%;
        /* Half width on larger screens */
    }
}


@media (max-width: 768px) {
    .cover-image-container {
        height: 250px;
        /* Adjust height for smaller screens */
    }
}

@media (max-width: 480px) {
    .cover-image-container {
        height: 200px;
        /* Further adjust height for very small screens */
    }
}
