/* Send OTP button lives inside the Work Mail field group, directly below
   the input. Base sizing/color mostly comes from copied Elementor classes;
   this just guarantees correct stacking + spacing. */
.tn-otp-button-send {
    margin-top: 10px !important;
}

/* Compact OTP panel, inserted immediately after the Work Mail field group
   and before the next field (e.g. Position). No card/border, no large
   padding -- it should read as part of the form, not a separate block. */
.tn-otp-panel {
    width: 100%;
    box-sizing: border-box;
    margin: 15px 0 15px;
    padding: 0;
}

.tn-otp-title {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    text-align: left;
}

.tn-otp-input {
    display: block !important;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    box-sizing: border-box !important;
    margin: 0 0 10px !important;
    padding: 8px 14px !important;
    border: 1px solid #d6d9e0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #222 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    letter-spacing: 4px !important;
    text-align: center !important;
    outline: none !important;
    box-shadow: none !important;
}

.tn-otp-input::placeholder {
    color: #8a8a8a !important;
    opacity: 1 !important;
    letter-spacing: 2px !important;
}

.tn-otp-input:focus {
    border-color: #3158ee !important;
    outline: 0 !important;
    box-shadow: 0 0 0 2px rgba(49, 88, 238, 0.12) !important;
}

.tn-otp-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tn-otp-actions .tn-otp-button {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box !important;
    white-space: nowrap;
}

.tn-otp-actions .tn-otp-button-verify {
    background: #3158ee !important;
    border-color: #3158ee !important;
    color: #fff !important;
}

.tn-otp-actions .tn-otp-button-resend {
    background: #8f9bea !important;
    border-color: #8f9bea !important;
    color: #fff !important;
    opacity: 1 !important;
}

.tn-otp-button:disabled {
    opacity: .5 !important;
    cursor: not-allowed;
}

.tn-otp-countdown {
    min-height: 16px;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    color: #777;
}

.tn-otp-inline-message,
.tn-otp-status {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.tn-otp-inline-message:empty {
    margin-top: 0;
}

.tn-otp-inline-message.is-error,
.tn-otp-status.is-error {
    color: #b42318;
}

.tn-otp-inline-message.is-success,
.tn-otp-status.is-success {
    color: #067647;
}

@media (max-width: 480px) {
    .tn-otp-panel {
        margin: 12px 0 12px;
    }

    .tn-otp-actions {
        gap: 8px !important;
    }

    .tn-otp-actions .tn-otp-button {
        padding-left: 12px !important;
        padding-right: 12px !important;
        font-size: 14px !important;
    }
}


/* Compact validation tooltip anchored to the Work Mail field. */
.tn-otp-email-tooltip {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    z-index: 9999;
    display: none;
    max-width: min(360px, calc(100vw - 32px));
    box-sizing: border-box;
    padding: 8px 11px;
    border-radius: 6px;
    background: #222;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    pointer-events: none;
}

.tn-otp-email-tooltip::before {
    content: '';
    position: absolute;
    left: 14px;
    top: -5px;
    width: 10px;
    height: 10px;
    background: #222;
    transform: rotate(45deg);
}

.tn-otp-email-tooltip.is-visible {
    display: block;
}
