:root {
    --odb-lead-primary: #1867B2;
    --odb-lead-dark: #104A86;
    --odb-lead-ink: #18344F;
    --odb-lead-text: #4A6279;
    --odb-lead-line: #DBE8F3;
    --odb-lead-soft: #EDF4FB;
}

body.odb-modal-open {
    overflow: hidden !important;
}

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

.odb-lead-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    direction: rtl;
    color: var(--odb-lead-text);
    font-family: Peyda, Vazirmatn, IRANSansX, Tahoma, sans-serif;
}

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

.odb-lead-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 31, 55, .68);
    backdrop-filter: blur(5px);
    animation: odb-lead-fade .2s ease both;
}

.odb-lead-dialog {
    position: relative;
    width: min(660px, 100%);
    min-width: 0;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 26px;
    outline: 0;
    background:
        radial-gradient(circle at 0 0, rgba(24, 103, 178, .13), transparent 31%),
        #fff;
    box-shadow: 0 30px 90px rgba(8, 40, 72, .3);
    animation: odb-lead-rise .25s ease both;
}

.odb-lead-heading,
.odb-lead-form,
.odb-lead-grid,
.odb-lead-grid > label,
.odb-lead-consent,
.odb-lead-result {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.odb-lead-form {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
}

.odb-lead-modal .odb-lead-dialog > .odb-lead-close {
    position: absolute !important;
    z-index: 30 !important;
    top: 16px !important;
    right: auto !important;
    left: 16px !important;
    display: grid !important;
    place-items: center !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    color: transparent !important;
    background: linear-gradient(135deg, #ff6677, #d93652) !important;
    box-shadow: 0 9px 22px rgba(217, 54, 82, .34) !important;
    font-size: 0 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    appearance: none !important;
    transform: none !important;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
}

.odb-lead-modal .odb-lead-close::before,
.odb-lead-modal .odb-lead-close::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 19px !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: none !important;
    transform-origin: center !important;
}

.odb-lead-modal .odb-lead-close::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

.odb-lead-modal .odb-lead-close::after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.odb-lead-modal .odb-lead-close:hover {
    filter: brightness(.94) !important;
    transform: scale(1.08) !important;
    box-shadow: 0 12px 27px rgba(217, 54, 82, .42) !important;
}

.odb-lead-modal .odb-lead-close:focus-visible {
    outline: 3px solid rgba(255, 102, 119, .25) !important;
    outline-offset: 3px !important;
}

.odb-lead-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--odb-lead-dark);
}

.odb-lead-brand span {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--odb-lead-primary);
    box-shadow: 0 0 0 6px rgba(24, 103, 178, .13);
}

.odb-lead-brand b {
    font-size: 13px;
}

.odb-lead-heading {
    padding-left: 48px;
}

.odb-lead-eyebrow {
    color: var(--odb-lead-dark);
    font-size: 12px;
    font-weight: 800;
}

.odb-lead-heading h2 {
    margin: 7px 0 6px !important;
    color: var(--odb-lead-ink) !important;
    font: 900 clamp(23px, 4vw, 31px)/1.5 Peyda, Vazirmatn, IRANSansX, Tahoma, sans-serif !important;
}

.odb-lead-heading p {
    margin: 0 0 24px;
    color: var(--odb-lead-text);
    font-size: 13.5px;
    line-height: 1.9;
}

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

.odb-lead-grid label {
    display: grid;
    gap: 7px;
    margin: 0;
}

.odb-lead-grid label > span {
    color: var(--odb-lead-ink);
    font-size: 12.5px;
    font-weight: 800;
}

.odb-lead-grid input,
.odb-lead-grid textarea {
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 1px solid var(--odb-lead-line);
    border-radius: 12px;
    outline: 0;
    color: var(--odb-lead-ink);
    background: #fff;
    box-shadow: none;
    font: 500 14px/1.8 Peyda, Vazirmatn, IRANSansX, Tahoma, sans-serif;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.odb-lead-grid input {
    height: 48px;
    padding: 0 13px;
}

.odb-lead-grid textarea {
    min-height: 105px;
    padding: 11px 13px;
    resize: vertical;
}

.odb-lead-grid input:focus,
.odb-lead-grid textarea:focus {
    border-color: var(--odb-lead-primary);
    box-shadow: 0 0 0 4px rgba(24, 103, 178, .12);
}

.odb-lead-full {
    grid-column: 1 / -1;
}

.odb-lead-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 16px 0;
    color: var(--odb-lead-text);
    font-size: 11.5px;
    line-height: 1.8;
}

.odb-lead-consent input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 4px 0 0;
    accent-color: var(--odb-lead-primary);
}

.odb-lead-submit,
.odb-lead-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid var(--odb-lead-primary);
    border-radius: 12px;
    color: #fff !important;
    background: var(--odb-lead-primary);
    box-shadow: 0 10px 25px rgba(24, 103, 178, .22);
    font-family: Peyda, Vazirmatn, IRANSansX, Tahoma, sans-serif;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
    transition: .2s ease;
}

.odb-lead-modal .odb-lead-form .odb-lead-submit {
    position: relative !important;
    isolation: isolate;
    overflow: hidden !important;
    width: 100%;
    min-height: 54px !important;
    padding: 12px 20px !important;
    border: 0 !important;
    border-radius: 14px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #2479C9 0%, #1867B2 55%, #104A86 100%) !important;
    box-shadow: 0 12px 28px rgba(24, 103, 178, .32) !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    animation: odb-lead-cta-pulse 2.2s ease-in-out infinite;
}

.odb-lead-modal .odb-lead-form .odb-lead-submit::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: -80%;
    left: -45%;
    width: 34%;
    height: 260%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
    transform: rotate(18deg);
    animation: odb-lead-cta-shine 2.8s ease-in-out infinite;
    pointer-events: none;
}

.odb-lead-button {
    padding: 10px 20px;
}

.odb-lead-modal .odb-lead-form .odb-lead-submit:hover,
.odb-lead-modal .odb-lead-form .odb-lead-submit:focus-visible,
.odb-lead-button:hover,
.odb-lead-button:focus-visible {
    border-color: transparent !important;
    color: #fff !important;
    background: linear-gradient(135deg, #1D72BF 0%, #0D4C8D 100%) !important;
    box-shadow: 0 15px 34px rgba(16, 74, 134, .4) !important;
    transform: translateY(-2px) !important;
}

.odb-lead-modal .odb-lead-form .odb-lead-submit:disabled {
    color: #fff !important;
    background: linear-gradient(135deg, #5E9BD4 0%, #3E82C2 100%) !important;
    cursor: wait !important;
    opacity: .76 !important;
    animation: none !important;
    transform: none !important;
}

.odb-lead-result {
    display: none;
    margin-top: 13px;
    padding: 12px 14px;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.8;
}

.odb-lead-result.is-success,
.odb-lead-result.is-error {
    display: grid;
    gap: 4px;
}

.odb-lead-result.is-success {
    color: #116b43;
    background: #e7f8ee;
}

.odb-lead-result.is-error {
    color: #9d3030;
    background: #ffeded;
}

.odb-lead-privacy {
    margin: 13px 0 0;
    color: #82969a;
    font-size: 10.5px;
    text-align: center;
}

.odb-lead-hp {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.odb-lead-hp input {
    width: 1px !important;
    min-width: 0 !important;
    height: 1px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

@keyframes odb-lead-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes odb-lead-rise {
    from { opacity: 0; transform: translateY(18px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes odb-lead-cta-pulse {
    0%, 100% { box-shadow: 0 12px 28px rgba(24, 103, 178, .28); }
    50% { box-shadow: 0 14px 34px rgba(24, 103, 178, .46), 0 0 0 6px rgba(24, 103, 178, .09); }
}

@keyframes odb-lead-cta-shine {
    0%, 45% { left: -45%; opacity: 0; }
    55% { opacity: 1; }
    82%, 100% { left: 115%; opacity: 0; }
}

@media (max-width: 620px) {
    .odb-lead-modal {
        align-items: end;
        padding: 0;
    }

    .odb-lead-dialog {
        width: 100%;
        max-width: 100vw;
        max-height: 94vh;
        padding: 25px 18px 20px;
        border-radius: 24px 24px 0 0;
    }

    .odb-lead-modal .odb-lead-dialog > .odb-lead-close {
        position: sticky !important;
        top: 10px !important;
        left: 0 !important;
        float: left !important;
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;
        margin: -10px 0 0 !important;
    }

    .odb-lead-modal .odb-lead-form .odb-lead-submit {
        min-height: 56px !important;
        font-size: 14.5px !important;
    }

    .odb-lead-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .odb-lead-full {
        grid-column: auto;
    }

    .odb-lead-heading {
        padding-left: 58px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .odb-lead-backdrop,
    .odb-lead-dialog,
    .odb-lead-modal .odb-lead-form .odb-lead-submit,
    .odb-lead-modal .odb-lead-form .odb-lead-submit::after {
        animation: none !important;
    }
}
