.custom-form-wrapper {
    max-width: 1200px;
    margin: 24px auto;
}

.custom-form-wrapper .custom-form-title-and-description {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.custom-form-wrapper .custom-form-title-and-description h2 {
    margin: 0;
}

.custom-form-wrapper .custom-form-title-and-description p {
}

.custom-form {
    text-align: left;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
}

.custom-form,
.custom-form * {
    font-family: CircularXX TT, sans-serif;
    font-weight: 450;
    font-size: 14px;
    line-height: 150%;
    color: rgba(12, 25, 55, 1);
}

.custom-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
}

.custom-form .form-field .input-wrapper,
.custom-form .form-row .input-wrapper {
    position: relative;
    width: 100%;
}

.custom-form .form-field {
    position: relative;
    width: 100%;
}

.custom-form .form-field-half {
    width: calc(50% - 12px);
}

.custom-form .form-field-full {
    width: 100%;
}

.custom-form label {
    position: absolute;
    z-index: 9;
    top: calc(50%);
    transform: translateY(-50%);
    left: 16px;
    background: #fff;
    padding: 0 4px;
    color: rgba(180, 184, 193, 1);
    font-family: CircularXX TT, sans-serif;
    pointer-events: none;
    font-weight: 450;
    font-size: 14px;
    line-height: 150%;
    text-align: left;
    transition: 0.3s all;
}

.custom-form .form-field:has(input.active, select.active) label {
    top: 10px;
    transform: translateY(-19px);
    font-size: 12px;
    color: rgba(138, 147, 172, 1);
}

.custom-form .form-field:has(input[type="date"]) label {
    top: 10px;
    transform: translateY(-19px);
    font-size: 12px;
    color: rgba(138, 147, 172, 1);
}


.custom-form input[type="text"],
.custom-form input[type="email"],
.custom-form input[type="tel"],
.custom-form input[type="date"],
.custom-form select,
.custom-form textarea {
    text-align: left;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(180, 184, 193, 1);
    border-radius: 8px;
}

.custom-form input:focus-visible,
.custom-form select:focus-visible,
.custom-form textarea:focus-visible {
    outline: none;
}

.custom-form select {
    padding-right: 32px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%238A93AC' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.custom-form select option {
    color: #000;
}

.custom-form select option:first-child {
    display: none;
}

.custom-form .submit-button {
    padding: 14px 24px;
    background: rgba(231, 232, 235, 1);
    width: fit-content;
    height: 48px;
    border-radius: 24px;
    font-family: CircularXX TT, sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 150%;
    color: rgba(138, 147, 172, 1);
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.custom-form .submit-button.valid {
    background: rgba(0, 21, 74, 1);
    color: #fff;
}

.custom-form .submit-button:hover {
    opacity: 0.8;
}

.custom-form .checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-form .checkbox-wrapper input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    min-width: 20px;
    height: 20px;
    border: 1px solid rgba(180, 184, 193, 1);
    border-radius: 4px;
    margin: 0;
    cursor: pointer;
}

.custom-form .checkbox-wrapper input[type="checkbox"]:checked {
    background-color: rgba(0, 21, 74, 1);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L4.5 7.5L11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    border-color: rgba(0, 21, 74, 1);
}

.custom-form .checkbox-wrapper label {
    position: static;
    transform: none;
    background: none;
    padding: 0;
    color: rgba(12, 25, 55, 1);
    pointer-events: auto;
}

.custom-form .checkbox-wrapper label a {
    text-decoration: none;
    color: rgba(0, 21, 74, 1);
}

.custom-form .checkbox-wrapper label a:hover {
    text-decoration: underline;
    color: rgb(34, 129, 170);
}

.custom-form .error-message {
    color: rgba(217, 76, 73, 1);
    font-size: 12px;
    margin-top: 5px;
    text-align: left;
}

.custom-form input.error,
.custom-form textarea.error,
.custom-form select.error {
    border: 1px solid rgba(217, 76, 73, 1) !important;
}

.custom-form .form-submit-wrapper {
    margin-top: 24px;
}

.custom-form .form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.custom-form .form-message.success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: rgba(76, 175, 80, 0.9);
}

.custom-form .form-message.error {
    background-color: rgba(217, 76, 73, 0.1);
    border: 1px solid rgba(217, 76, 73, 0.3);
    color: rgba(217, 76, 73, 0.9);
}

.custom-form .submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.custom-form .custom-form-success-message {
    width: 100%;
}

.custom-form .custom-form-success-message-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.custom-form .custom-form-success-message img {
    width: 56px;
    height: 56px;
}


.custom-form .custom-form-success-message h2 {
    font-family: CircularXX TT, sans-serif;
    font-weight: 450;
    font-size: 40px;
    line-height: 130%;
    color: rgba(12, 25, 55, 1);
}

.custom-form .custom-form-success-message p {
    font-family: CircularXX TT, sans-serif;
    font-weight: 450;
    font-size: 20px;
    line-height: 130%;
    text-align: center;
    color: rgba(12, 25, 55, 1);
}

.custom-form .custom-form-success-message a {
    text-decoration: none;
    background  : rgba(50, 186, 246, 1);
    color: #fff;
    padding: 12px 24px;
    border-radius: 24px;
    font-family: CircularXX TT, sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 150%;
}


/* Date input specific styles */
.custom-form input[type="date"] {
    position: relative;
    color: rgba(12, 25, 55, 1);
}

.custom-form input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

.custom-form input[type="date"]::-webkit-datetime-edit {
    padding: 0;
}

.custom-form input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}

.custom-form input[type="date"]::-webkit-datetime-edit-text {
    padding: 0 2px;
}

.custom-form input[type="date"]::-webkit-datetime-edit-month-field,
.custom-form input[type="date"]::-webkit-datetime-edit-day-field,
.custom-form input[type="date"]::-webkit-datetime-edit-year-field {
    padding: 0 2px;
}

.custom-form input[type="date"]:in-range::-webkit-datetime-edit-year-field,
.custom-form input[type="date"]:in-range::-webkit-datetime-edit-month-field,
.custom-form input[type="date"]:in-range::-webkit-datetime-edit-day-field,
.custom-form input[type="date"]:in-range::-webkit-datetime-edit-text {
    color: rgba(12, 25, 55, 1);
}


@media (max-width: 992px) {
    .custom-form {
        flex-direction: column;
    }

    .custom-form .form-field-half {
        width: 100%;
    }
}


.wForm .reqMark:after {
    color: #8A93AC !important;
}
