html.irm-lock,
html.irm-lock body {
    overflow: hidden !important;
}

.irm-modal,
.irm-modal * {
    box-sizing: border-box;
}

.irm-modal[hidden] {
    display: none !important;
}

.irm-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 20px;
    font-family: Tahoma, Arial, sans-serif;
    direction: rtl;
}

.irm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 13, 8, .72);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity .18s ease;
}

.irm-modal__dialog {
    position: relative;
    width: min(100%, 520px);
    max-height: calc(100vh - 40px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 34px;
    border: 1px solid rgba(255, 196, 12, .28);
    border-radius: 22px;
    background: #fff;
    color: #261100;
    box-shadow: 0 28px 85px rgba(0, 0, 0, .28);
    opacity: 0;
    transform: translateY(14px) scale(.985);
    transition: opacity .18s ease, transform .18s ease;
    outline: none;
}

.irm-modal.is-open .irm-modal__backdrop,
.irm-modal.is-open .irm-modal__dialog {
    opacity: 1;
}

.irm-modal.is-open .irm-modal__dialog {
    transform: translateY(0) scale(1);
}

.irm-modal__close {
    position: absolute;
    top: 14px;
    left: 14px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f5f1ed;
    color: #261100;
    font: 28px/1 Arial, sans-serif;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

.irm-modal__close:hover {
    background: #eee5dc;
    transform: rotate(4deg);
}

.irm-modal__header {
    margin-bottom: 24px;
    padding-left: 34px;
}

.irm-modal__eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 196, 12, .18);
    color: #6e4b00;
    font-size: 12px;
    font-weight: 700;
}

.irm-modal__header h2,
.irm-success h2 {
    margin: 0 0 8px;
    color: #261100;
    font-size: clamp(25px, 5vw, 34px);
    line-height: 1.25;
}

.irm-modal__header p,
.irm-success p {
    margin: 0;
    color: #6f6259;
    font-size: 15px;
    line-height: 1.8;
}

.irm-field {
    margin-bottom: 17px;
}

.irm-field > label {
    display: block;
    margin-bottom: 7px;
    color: #33251b;
    font-size: 14px;
    font-weight: 700;
}

.irm-field input[type="text"],
.irm-field input[type="email"],
.irm-field input[type="tel"],
.irm-field input[type="password"] {
    display: block;
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #d9d2cc;
    border-radius: 11px;
    background: #fff;
    color: #261100;
    font: 15px/1 Tahoma, Arial, sans-serif;
    direction: ltr;
    text-align: left;
    outline: none;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.irm-field input:focus {
    border-color: #d9a400;
    box-shadow: 0 0 0 3px rgba(255, 196, 12, .2);
}

.irm-field.has-error input {
    border-color: #d93025;
    box-shadow: 0 0 0 3px rgba(217, 48, 37, .1);
}

.irm-hint {
    display: block;
    margin-top: 6px;
    color: #7a6e65;
    font-size: 12px;
    line-height: 1.6;
}

.irm-field__error {
    min-height: 0;
    margin-top: 5px;
    color: #c5221f;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.55;
}

.irm-field__error:empty {
    display: none;
}

.irm-password {
    position: relative;
}

.irm-password input {
    padding-right: 14px !important;
    padding-left: 72px !important;
}

.irm-password__toggle {
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    padding: 7px 10px;
    border: 0;
    border-radius: 8px;
    background: #f4f0ec;
    color: #4a3728;
    font: 12px/1 Tahoma, Arial, sans-serif;
    cursor: pointer;
}

.irm-field--agreement {
    margin-top: 2px;
}

.irm-checkbox {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin: 0 !important;
    color: #57483e !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.8;
    cursor: pointer;
}

.irm-checkbox input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 4px 0 0;
    accent-color: #e3ad00;
}

.irm-checkbox a {
    color: #8b6500;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.irm-turnstile {
    min-height: 65px;
    margin: 14px 0 5px;
    overflow: hidden;
}

.irm-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.7;
}

.irm-alert--error {
    border: 1px solid rgba(217, 48, 37, .25);
    background: #fff1f0;
    color: #a61b18;
}

.irm-submit {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 22px;
    border: 0;
    border-radius: 12px;
    background: #ffc40c;
    color: #261100;
    font: 700 15px/1.4 Tahoma, Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 196, 12, .25);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.irm-submit:hover {
    color: #261100;
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(255, 196, 12, .32);
}

.irm-submit:disabled {
    cursor: wait;
    opacity: .72;
    transform: none;
}

.irm-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(38, 17, 0, .28);
    border-top-color: #261100;
    border-radius: 50%;
    animation: irm-spin .65s linear infinite;
}

.irm-submit.is-loading .irm-spinner {
    display: inline-block;
}

@keyframes irm-spin {
    to { transform: rotate(360deg); }
}

.irm-security-note {
    margin: 11px 0 0;
    color: #897c72;
    font-size: 11px;
    text-align: center;
}

.irm-success {
    padding: 26px 0 12px;
    text-align: center;
}

.irm-success__icon {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #edf8ef;
    color: #188038;
    font: 700 42px/1 Arial, sans-serif;
}

.irm-success .irm-submit--link {
    margin-top: 24px;
}

@media (max-width: 600px) {
    .irm-modal {
        align-items: end;
        padding: 0;
    }

    .irm-modal__dialog {
        width: 100%;
        max-height: 94vh;
        padding: 28px 20px 24px;
        border-radius: 22px 22px 0 0;
        transform: translateY(25px);
    }

    .irm-modal__header {
        padding-left: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .irm-modal__backdrop,
    .irm-modal__dialog,
    .irm-submit,
    .irm-modal__close {
        transition: none !important;
    }

    .irm-spinner {
        animation-duration: 1.2s;
    }
}
