/* ===== Interview Modal ===== */
.interview-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.interview-modal.open {
    opacity: 1;
    pointer-events: all;
}

.im-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(4px);
}

.im-card {
    position: relative;
    z-index: 10;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    width: 820px;
    max-width: 95vw;
    max-height: 90vh;
    box-shadow: 0 40px 80px rgba(0,0,0,0.3);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.interview-modal.open .im-card {
    transform: scale(1) translateY(0);
}

.im-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(0,0,0,0.08);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #18181b;
    transition: background 0.2s;
}

.im-close:hover {
    background: rgba(0,0,0,0.15);
}

/* -- Video Side -- */
.im-video-side {
    width: 320px;
    flex-shrink: 0;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.im-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -- Content Side -- */
.im-content-side {
    flex: 1;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(145deg, #0f172a 0%, #1a2e44 100%);
    color: #fff;
}

.im-tag {
    display: inline-block;
    background: #00A896;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    align-self: flex-start;
}

.im-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.im-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.im-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.im-list li {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.im-list li span {
    color: #00A896;
    margin-right: 6px;
}

.im-cta {
    display: inline-block;
    background: #00A896;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    align-self: flex-start;
    transition: background 0.2s, transform 0.2s;
    letter-spacing: 0.02em;
}

.im-cta:hover {
    background: #007a6e;
    transform: translateY(-2px);
}

.im-email-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.im-email-input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 0.88rem;
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
    min-width: 0;
}

.im-email-input::placeholder {
    color: rgba(255,255,255,0.35);
}

.im-email-input:focus {
    border-color: #00A896;
}

.im-gate-note {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    margin: 0 0 8px 0;
}

/* Disabled CTA */
.im-cta:disabled {
    background: #2d4a47;
    color: rgba(255,255,255,0.35);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* No work email link */
.im-no-email-link {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.im-no-email-link:hover {
    color: rgba(255,255,255,0.7);
}

/* Secondary no-email popup */
.im-noemail-popup {
    position: absolute;
    bottom: 80px;
    right: 36px;
    background: #1e3a4a;
    border: 1px solid rgba(0,168,150,0.3);
    border-radius: 14px;
    padding: 20px 22px;
    width: 260px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    z-index: 30;
    display: none;
}

.im-noemail-popup.open {
    display: block;
    animation: pop-in 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes pop-in {
    from { opacity: 0; transform: scale(0.85) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.im-noemail-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
}

.im-noemail-title {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 14px;
    font-weight: 500;
}

.im-noemail-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.im-noemail-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: transform 0.15s, opacity 0.15s;
}

.im-noemail-cta:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.im-noemail-cta svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.im-noemail-demo    { background: #00A896; }
.im-noemail-contact { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); }

/* -- Email Gate -- */
.im-gate {
    width: 100%;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(145deg, #0f172a 0%, #1a2e44 100%);
    color: #fff;
}

.im-gate-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0,168,150,0.3);
}

.im-gate-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.im-gate-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.im-gate-desc {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    max-width: 380px;
    margin-bottom: 28px;
}

.im-gate-form {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    margin-bottom: 14px;
}

.im-gate-input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 0.95rem;
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.im-gate-input::placeholder {
    color: rgba(255,255,255,0.35);
}

.im-gate-input:focus {
    border-color: #00A896;
}

.im-gate-btn {
    background: #00A896;
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
}

.im-gate-btn:hover {
    background: #007a6e;
    transform: translateY(-1px);
}

.im-gate-note {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
}

/* im-main wraps the two-column video+content layout */
.im-main {
    display: flex;
    width: 100%;
    height: 100%;
}

/* ── Tablet ── */
@media (max-width: 820px) {
    .im-card {
        flex-direction: column;
        width: 95vw;
        max-height: 92vh;
        overflow-y: auto;
    }

    .im-video-side {
        width: 100%;
        height: 260px;
        flex-shrink: 0;
    }

    .im-content-side {
        padding: 28px 28px 32px;
    }

    .im-title {
        font-size: 1.35rem;
    }

    .im-noemail-popup {
        right: 16px;
        bottom: auto;
        top: 16px;
        width: calc(100% - 32px);
    }
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .im-card {
        width: 100vw;
        max-height: 100dvh;
        border-radius: 16px 16px 0 0;
        align-self: flex-end;
    }

    .im-video-side {
        height: 200px;
    }

    .im-content-side {
        padding: 22px 18px 28px;
    }

    .im-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .im-desc {
        font-size: 0.82rem;
        margin-bottom: 14px;
    }

    .im-list {
        margin-bottom: 16px;
    }

    .im-list li {
        font-size: 0.78rem;
    }

    .im-email-row {
        flex-direction: column;
        gap: 8px;
    }

    .im-email-input,
    .im-cta {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .im-close {
        top: 10px;
        right: 12px;
    }

    .im-noemail-popup {
        width: calc(100% - 24px);
        right: 12px;
        left: 12px;
        bottom: auto;
        top: 12px;
    }
}

/* ── OTP step (step 2 of the talk-to-Sia flow) ───────────────── */
.im-otp-step { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.im-otp-lead { margin: 0; color: var(--im-muted, #64748b); font-size: 0.92rem; line-height: 1.55; }
.im-otp-lead strong { color: #0f172a; }
.im-otp-inputs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.im-otp-cell {
    width: 100%; aspect-ratio: 1;
    text-align: center; font-size: 1.4rem; font-weight: 700; color: #0f172a;
    background: #f5f9fc; border: 1.5px solid #d6dee8; border-radius: 12px;
    font-family: 'Courier New', monospace;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.im-otp-cell:focus {
    outline: none; border-color: #00A896; background: #fff;
    box-shadow: 0 0 0 4px rgba(0,168,150,0.18);
}
.im-otp-cell.is-filled { border-color: #00A896; background: #fff; }
.im-otp-error {
    margin: 0; color: #ef4444; font-size: 0.85rem; line-height: 1.4;
    background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25);
    border-radius: 10px; padding: 8px 12px;
}
.im-otp-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.im-otp-link {
    background: none; border: none; padding: 0; cursor: pointer;
    color: var(--im-muted, #64748b); font-size: 0.85rem;
    text-decoration: underline; text-underline-offset: 3px;
    font-family: inherit;
}
.im-otp-link:hover { color: #0f172a; }
.im-otp-link:disabled { opacity: 0.5; cursor: not-allowed; text-decoration: none; }
.im-otp-step .im-cta:disabled { opacity: 0.55; cursor: not-allowed; }

@media (max-width: 540px) {
    .im-otp-cell { font-size: 1.15rem; }
    .im-otp-inputs { gap: 6px; }
}

/* `hidden` attribute must beat `.im-otp-step { display: flex }` — otherwise
   the OTP step shows on page load (class selector beats UA [hidden] rule). */
.im-otp-step[hidden],
.im-email-row[hidden],
.im-gate-note[hidden],
.im-no-email-link[hidden] { display: none !important; }
