[hidden] {
    display: none !important;
}

.enteco-otp-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.enteco-otp-form label {
    display: grid;
    gap: 7px;
    color: var(--color-muted);
    font-family: var(--font-medium);
    font-size: var(--fs-micro);
    align-items: center;
}

.enteco-otp-form input,
.enteco-otp-form textarea,
.country-current {
    width: 100%;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    min-height: 52px;
    padding: 0 14px;
    background: #fafafa;
    color: var(--color-text);
    font-family: var(--font-regular);
    font-size: var(--fs-sm);
}

.enteco-otp-form input[type="checkbox"]{
    min-height: 10px;
}

.enteco-otp-form textarea {
    min-height: 150px;
    padding-top: 14px;
    resize: vertical;
}

.form-two-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.phone-combo {
    position: relative;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
}

.country-current {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.country-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 0;
    width: min(390px, 100%);
    max-height: 330px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-xl);
    background: var(--color-white);
    box-shadow: var(--shadow-main);
}

.country-menu input {
    margin-bottom: 8px;
}

.country-menu button {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    cursor: pointer;
    font-family: var(--font-medium);
    color: var(--color-text);
}

.country-menu button:hover {
    background: var(--color-olive-soft);
}

.country-option-name {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.country-menu button strong {
    flex: 0 0 auto;
}

.otp-step {
    display: grid;
    gap: 10px;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-xl);
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
}

.otp-card {
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
}

.otp-back {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: var(--color-olive);
    font-family: var(--font-bold);
    font-size: var(--fs-micro);
    padding: 0;
}

.otp-back span:first-child {
    font-size: var(--fs-lg);
    line-height: 1;
}

.otp-card-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: var(--radius-lg);
    background: var(--color-olive-soft);
    color: var(--color-olive);
    font-size: var(--fs-xl);
}

.otp-card h3 {
    margin: 0;
    font-family: var(--font-bold);
    font-size: var(--fs-xl);
    color: var(--color-text-dark);
    letter-spacing: -.035em;
}

.otp-email-line,
.otp-timer-line {
    margin: 0;
    max-width: 500px;
    color: var(--color-muted);
    font-size: var(--fs-sm);
    line-height: 1.6;
}

.otp-email-line strong {
    display: inline-flex;
    margin-left: 4px;
    color: var(--color-text-dark);
    font-family: var(--font-bold);
}

.otp-code-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 54px));
    justify-content: center;
    gap: 12px;
    margin: 6px 0;
}

.enteco-otp-form .otp-code-grid input {
    min-height: 56px;
    padding: 0;
    text-align: center;
    border-radius: var(--radius-md);
    background: var(--color-white-soft);
    color: var(--color-text-dark);
    font-family: var(--font-bold);
    font-size: var(--fs-lg);
}

.enteco-otp-form .otp-code-grid input:focus,
.enteco-otp-form input:focus,
.enteco-otp-form textarea:focus {
    border-color: var(--color-olive);
    box-shadow: 0 0 0 4px var(--color-olive-12);
    outline: 0;
}

.form-submit-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    border-radius: var(--radius-pill);
    background: var(--color-olive);
    color: var(--color-white);
    border: 0;
    text-decoration: none;
    font-family: var(--font-bold);
    cursor: pointer;
    padding: 0 24px;
    transition: transform .2s ease, background .2s ease;
}

.form-submit-btn:hover {
    background: var(--color-olive-dark);
    transform: translateY(-1px);
}

.resend-otp {
    border: 1px solid var(--color-olive-35);
    border-radius: var(--radius-pill);
    min-height: 42px;
    background: var(--color-white);
    color: var(--color-olive-dark);
    font-family: var(--font-bold);
    cursor: pointer;
    padding: 0 18px;
}

.form-response {
    min-height: 22px;
    color: var(--color-muted);
    font-size: var(--fs-micro);
    line-height: 1.5;
}

.form-response.is-success {
    color: var(--color-olive-dark);
    font-family: var(--font-bold);
}

.form-response.is-error {
    color: #a83737;
    font-family: var(--font-bold);
}


.consent-line {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 0;
    border: none;
    border-radius: none;
    background: none;
    color: var(--color-muted);
    font-size: var(--fs-micro);
    line-height: 1.55;
    margin: 0;
}

.consent-line input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--color-olive);
}

@media (max-width: 700px) {
    .form-two-cols,
    .phone-combo {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .otp-code-grid {
        grid-template-columns: repeat(6, minmax(0, 40px));
        gap: 7px;
    }

    .enteco-otp-form .otp-code-grid input {
        min-height: 46px;
    }
}

.enteco-otp-form input.is-field-invalid,
.enteco-otp-form textarea.is-field-invalid,
.enteco-otp-form select.is-field-invalid,
.enteco-otp-form .has-field-error > input,
.enteco-otp-form .has-field-error > textarea,
.enteco-otp-form .has-field-error > select,
.enteco-otp-form .has-field-error .country-current,
.enteco-otp-form .has-field-error .mini-calendar-grid,
.enteco-otp-form .has-field-error.otp-code-grid input {
    border-color: var(--color-error) !important;
    background: var(--color-error-soft) !important;
    box-shadow: 0 0 0 4px var(--color-error-20) !important;
}

.enteco-otp-form .consent-line.has-field-error {
    border-color: var(--color-error) !important;
    background: var(--color-error-soft) !important;
    box-shadow: 0 0 0 4px var(--color-error-20) !important;
}

.enteco-otp-form .is-field-invalid:focus,
.enteco-otp-form .has-field-error input:focus,
.enteco-otp-form .has-field-error textarea:focus,
.enteco-otp-form .has-field-error select:focus {
    border-color: var(--color-error) !important;
    box-shadow: 0 0 0 4px var(--color-error-35) !important;
}

.form-submit-btn:disabled,
.form-submit-btn.is-otp-blocked {
    opacity: .72;
    cursor: not-allowed;
    transform: none !important;
    background: var(--color-muted);
    color: var(--color-white);
}

.form-submit-btn.is-otp-blocked {
    min-width: min(100%, 260px);
    white-space: normal;
    text-align: center;
    line-height: 1.25;
}
