.form-section-container {
    width: 40%;
    margin: 0 auto;
    padding: 24px;
    border: 1px solid #2A4662;
}

.form-header {
    margin-bottom: 36px;
}

.form-header .form-heading {
    font-size: 30px;
    font-weight: normal;
    line-height: 130%;
    letter-spacing: -0.01em;
}

.form-header h4,
.form-header h5 {
    font-size: 20px;
    font-weight: normal;
    line-height: 140%;
    letter-spacing: -0.005em;
    color: #000000;
}

.form-header p {
    margin: 0;
    font-size: 14px;
    line-height: 170%;
    letter-spacing: 0.005em;
    color: #000;
}

.form-field-group {
    --form-field-height: 54px;
    /* Form field padding left and right */
    --form-field-px: 12px;

    position: relative;
}

.form-field-group:not(:first-child) {
    margin-top: 20px;
}

.form-field-group:not(:last-child) {
    margin-bottom: 24px;
}

.form-field {
    display: block;
    width: 100%;
    height: var(--form-field-height);
    margin: 0;
    padding-left: var(--form-field-px);
    padding-right: var(--form-field-px);
    color: #1E2125;
    font-family: inherit;
    font-size: 16px;
    line-height: 20px;
    background-color: #FFF;
    border: 1px solid #1E2125;
    border-radius: 4px;
}

.text-field {
    padding-top: 27px;
    padding-bottom: 8px;
}

/* Hover state */

.text-field:hover,
.select-field:hover {
    background-color: #EAEEF3;
}

/* Focus state */

.form-field:focus {
    outline: none;
}

.text-field:focus,
.select-field:focus {
    background-color: #EAEEF3;
    box-shadow: 0 0 0 1px #1E2125;
}

/* Disabled state */

.text-field:disabled,
.select-field:disabled {
    color: #808080;
    background-color: #EBEBEB;
    border-color: transparent;
}

.text-field:disabled + .form-label {
    color: #808080;
}


.form-label {
    display: inline-block;
    margin: 0;
    color: #1E2125;
    font-size: 16px;
    line-height: 140%;
}

.form-label.text-field-label {
    position: absolute;
    top: calc(var(--form-field-height)/2);
    left: var(--form-field-px);
    pointer-events: none;
    transform-origin: top left;
    transform: translateY(-50%);
    transition: transform 0.2s;
}

.form-label.text-field-label.phone-field-label {
    left: calc(var(--form-field-px) + 42px);
}

.text-field:focus + .form-label, 
.text-field:not(:placeholder-shown) + .form-label,
.intl-tel-input.activated + .form-label {
    color: #717579;
    transform: translateY(-85%) scale(0.75);
}

.form-field-group.invalid .form-field {
    border-color: #EF3E31;
}

.form-field-group.invalid .text-field:hover,
.form-field-group.invalid .select-field:hover {
    background-color: #EF3E311A;
    box-shadow: 0 0 0 1px #EF3E31;
}

.form-field-group.invalid .text-field:focus,
.form-field-group.invalid .select-field:focus {
    background-color: #EF3E311A;
    box-shadow: 0 0 0 1px #EF3E31;
}

.form-field-group.invalid .text-field:focus + .form-label,
.form-field-group.invalid .text-field:not(:placeholder-shown) + .form-label {
    color: #CE2A2A;
}

.intl-tel-input {
    display: block;
}

.error-message {
    display: none;
    align-items: center;
    margin-top: 4px;
    font-size: 12px;
    line-height: 140%;
    letter-spacing: 0.01em;
    color: #CE2A2A;
}

.form-field-group.invalid .error-message {
    display: inline-flex;
}

.text-field-error-message {
    padding: 0 var(--form-field-px);
}

.form-consent-language p {
    margin: 16px 0;
    font-size: 12px;
    font-style: italic;
    line-height: 140%;
    letter-spacing: 0.01em;
    color: #5D6165;
}

.form-consent-language a, .form-consent-language a:hover {
    color: inherit;
    text-decoration:underline;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-step-count {
    font-size: 12px;
    line-height: 140%;
    letter-spacing: 0.01em;
    color: #9A9EA3;
}

.prev-step-button {
    display: inline-flex;
    align-items: center;
    color: #1E2125;
    font-size: 12px;
    line-height: 140%;
    letter-spacing: 0.01em;
    background: transparent;
    border: none;
}

.prev-step-button .back-arrow {
    width: 12px;
    height: 12px;
    margin-right: 8px;
}

.form-button {
    display: inline-flex;
    align-items: center;
    text-align: center;
    padding: 17px 24px;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0.005em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.form-button:hover {
    text-decoration: none;
}

.form-button:disabled {
    opacity: 0.5;
}

.optin-group p {
    font-size: 14px;
    line-height: 170%;
    letter-spacing: 0.005em;
    color: #000000;
}

.optin-group a, .optin-group a:hover{
    color: inherit;
    text-decoration: underline;
}

.communication-radio-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.communication-radio-group:not(:last-child) {
    margin-bottom: 16px;
}

.radio-group-label {
    font-size: 14px;
    line-height: 170%;
    letter-spacing: 0.005em;
    color: #000000;
}

.radio-group-options {
    display: flex;
    align-items: center;
}

.radio-option {
    display: flex;
    align-items: center;
}

.radio-option:not(:first-child) {
    margin-left: 20px;
}

.radio-field-label {
    display: flex;
    align-items: center;
    font-size: 12px;
    line-height: 18px;
    color: #000000;
}

.radio-field-label .radio-field-button {
    --button-color: #1E2125;

    display: flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    margin-right: 10px;
    position: relative;
    border: 1.5px solid var(--button-color);
    border-radius: 50%;
}

.radio-field-label .radio-field-button::before {
    --offset: -6px;

    content: "";
    display: block;
    position: absolute;
    top: var(--offset);
    bottom: var(--offset);
    left: var(--offset);
    right: var(--offset);
    background-color: #EAEEF3;
    border-radius: 50%;
    opacity: 0;
    z-index: -1;
}

.radio-field-label .radio-field-button::after {
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    background-color: var(--button-color);
    border-radius: 50%;
    opacity: 0;
}

.radio-option:hover .radio-field-label .radio-field-button::before,
.radio-field:focus + .radio-field-label .radio-field-button::before {
    opacity: 1;
}

.radio-field {
    position: absolute;
    opacity: 0;
}

.radio-field:checked +  .radio-field-label .radio-field-button::after {
    opacity: 1;
}

.radio-field:focus + .radio-field-label .radio-field-button {
    outline: 2px solid #1E2125;
    outline-offset: 4px;
}

.radio-field:active + .radio-field-label .radio-field-button::before {
    background-color: #DCE0E5;
}

.radio-field:disabled + .radio-field-label .radio-field-button {
    --button-color: #D7D7D7;
}

.radio-group-error-message {
    display: block;
    width: 100%;
    margin-top: 16px;
}

.radio-group.invalid .radio-field-label .radio-field-button {
    --button-color: #EF3E31;
}

.select-field {
    border-color: #082135;
}

.thank-you-message-wrapper {
    display: flex;
    flex-direction: column;
}

.thank-you-message {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 170%;
    letter-spacing: 0.005em;
    color: #000000;
}

.hidden {
    display: none;
}