.contact-submission-status,
.otp-modal__message {
    border-radius: 12px;
    font-size: .92rem;
    font-weight: 650;
    line-height: 1.55;
    padding: 13px 15px;
}

.contact-submission-status {
    background: #eaf9f0;
    border: 1px solid #a8e0be;
    color: #166437;
    margin-bottom: 18px;
}

.contact-submission-status.is-error {
    background: #fff0f0;
    border-color: #f1b4b4;
    color: #9f2727;
}

.contact-form-modern.is-processing {
    opacity: .82;
    pointer-events: none;
}

.otp-modal {
    z-index: 1080;
}

.otp-modal .modal-dialog {
    max-width: 540px;
    padding: 18px;
}

.otp-modal__content {
    background: linear-gradient(155deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid rgba(26, 61, 102, .12);
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(8, 25, 48, .26);
    overflow: hidden;
    padding: 40px 42px 34px;
    position: relative;
}

.otp-modal__accent {
    background: linear-gradient(90deg, #00a6c8, #4267d5 52%, #f0b536);
    height: 5px;
    inset: 0 0 auto;
    position: absolute;
}

.otp-modal__close {
    align-items: center;
    background: #edf3f8;
    border: 0;
    border-radius: 50%;
    color: #27435f;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    position: absolute;
    right: 18px;
    top: 18px;
    transition: background .2s ease, transform .2s ease;
    width: 38px;
}

.otp-modal__close:hover,
.otp-modal__close:focus-visible {
    background: #dfeaf3;
    transform: rotate(4deg);
}

.otp-modal__icon {
    align-items: center;
    background: linear-gradient(145deg, #e1f7fb, #e8edff);
    border: 1px solid rgba(0, 143, 175, .16);
    border-radius: 18px;
    color: #007e9d;
    display: inline-flex;
    font-size: 1.65rem;
    height: 58px;
    justify-content: center;
    margin-bottom: 18px;
    width: 58px;
}

.otp-modal__header h2 {
    color: #112b47;
    font-size: clamp(1.65rem, 4vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.035em;
    margin: 6px 0 10px;
}

.otp-modal__header p {
    color: #5b6d7f;
    line-height: 1.65;
    margin: 0 0 24px;
}

.otp-modal__header strong {
    color: #263e57;
    overflow-wrap: anywhere;
}

.otp-inputs {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(6, minmax(38px, 1fr));
    margin: 0 auto 18px;
    max-width: 430px;
}

.otp-input {
    aspect-ratio: 1;
    background: #ffffff;
    border: 1.5px solid #cad7e3;
    border-radius: 13px;
    box-shadow: 0 6px 16px rgba(18, 52, 84, .06);
    color: #142e49;
    font-size: clamp(1.25rem, 5vw, 1.65rem);
    font-weight: 800;
    min-width: 0;
    outline: 0;
    text-align: center;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.otp-input:focus {
    border-color: #008eae;
    box-shadow: 0 0 0 4px rgba(0, 158, 190, .13), 0 8px 18px rgba(18, 52, 84, .08);
    transform: translateY(-2px);
}

.otp-modal__message {
    background: #fff0f0;
    border: 1px solid #f0b6b6;
    color: #9b2b2b;
    margin-bottom: 16px;
}

.otp-modal__message.is-success {
    background: #eaf9f0;
    border-color: #a8e0be;
    color: #166437;
}

.otp-modal__verify {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: center;
    min-height: 52px;
    width: 100%;
}

.otp-modal__verify:disabled,
#resendOtpButton:disabled {
    cursor: not-allowed;
    opacity: .62;
}

.otp-modal__resend {
    align-items: center;
    color: #6b7887;
    display: flex;
    flex-wrap: wrap;
    font-size: .88rem;
    gap: 5px;
    justify-content: center;
    margin-top: 18px;
    text-align: center;
}

#resendOtpButton {
    background: transparent;
    border: 0;
    color: #007f9e;
    font-weight: 750;
    padding: 2px 4px;
}

.otp-modal__hint {
    align-items: center;
    color: #7a8795;
    display: flex;
    font-size: .78rem;
    gap: 7px;
    justify-content: center;
    line-height: 1.5;
    margin: 15px 0 0;
    text-align: center;
}

@media (max-width: 575.98px) {
    .otp-modal .modal-dialog {
        margin: 0;
        padding: 10px;
    }

    .otp-modal__content {
        border-radius: 20px;
        padding: 34px 20px 26px;
    }

    .otp-inputs {
        gap: 6px;
    }

    .otp-input {
        border-radius: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .otp-input,
    .otp-modal__close {
        transition: none;
    }
}
