:root {
    --mcrvip-navy: #0d2340;
    --mcrvip-blue: #1769e0;
    --mcrvip-cyan: #64d1f5;
    --mcrvip-soft: #eef3f8;
    --mcrvip-text: #50677b;
    --mcrvip-border: #dce6ef;
}

html.mcrvip-open {
    overflow: hidden;
}

.mcrvip-overlay,
.mcrvip-overlay * {
    box-sizing: border-box;
}

.mcrvip-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 25, 44, .64);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.mcrvip-overlay.is-open {
    display: flex;
}

.mcrvip-modal {
    position: relative;
    width: min(560px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(5, 22, 40, .24);
}

.mcrvip-close {
    position: absolute;
    z-index: 3;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 1px solid #dbe5ee;
    border-radius: 999px;
    background: #fff;
    color: var(--mcrvip-navy);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.mcrvip-close:hover {
    border-color: var(--mcrvip-blue);
    color: var(--mcrvip-blue);
}

.mcrvip-header {
    padding: 34px 68px 26px 32px;
    border-bottom: 1px solid #e5edf4;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f5f9fd 100%
        );
}

.mcrvip-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--mcrvip-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.mcrvip-header h2 {
    margin: 0 0 10px;
    color: var(--mcrvip-navy);
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.05;
    letter-spacing: -.025em;
}

.mcrvip-header p {
    margin: 0;
    color: var(--mcrvip-text);
    font-size: 14px;
    line-height: 1.65;
}

.mcrvip-body {
    padding: 28px 32px 32px;
}

.mcrvip-field {
    margin-bottom: 18px;
}

.mcrvip-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--mcrvip-navy);
    font-size: 13px;
    font-weight: 750;
}

.mcrvip-field input,
.mcrvip-field select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #ccd8e3;
    border-radius: 10px;
    background: #fff;
    color: var(--mcrvip-navy);
    font: inherit;
    outline: none;
}

.mcrvip-field input:focus,
.mcrvip-field select:focus {
    border-color: var(--mcrvip-blue);
    box-shadow: 0 0 0 3px rgba(23,105,224,.10);
}

.mcrvip-privacy {
    margin: 4px 0 18px;
    color: #718397;
    font-size: 11px;
    line-height: 1.55;
}

.mcrvip-privacy a {
    color: var(--mcrvip-blue);
    text-decoration: underline;
}

.mcrvip-submit,
.mcrvip-download,
.mcrvip-secondary {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.mcrvip-submit,
.mcrvip-download {
    border: 0;
    background: var(--mcrvip-blue);
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(23,105,224,.16);
}

.mcrvip-submit:hover,
.mcrvip-download:hover {
    background: #105dcc;
}

.mcrvip-submit:disabled {
    opacity: .65;
    cursor: wait;
}

.mcrvip-secondary {
    margin-top: 10px;
    border: 1px solid #ccd8e3;
    background: #fff;
    color: var(--mcrvip-navy);
}

.mcrvip-secondary:hover {
    border-color: var(--mcrvip-blue);
    color: var(--mcrvip-blue);
}

.mcrvip-status {
    min-height: 0;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.5;
}

.mcrvip-status.is-error {
    padding: 10px 12px;
    border: 1px solid #f0c8c8;
    border-radius: 9px;
    background: #fff7f7;
    color: #9e2f2f;
}

.mcrvip-success {
    text-align: center;
}

.mcrvip-success-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: #e9f8ef;
    color: #14804a;
    font-size: 28px;
    font-weight: 900;
}

.mcrvip-success h3 {
    margin: 0 0 8px;
    color: var(--mcrvip-navy);
    font-size: 24px;
}

.mcrvip-success p {
    margin: 0 0 20px;
    color: var(--mcrvip-text);
    font-size: 14px;
    line-height: 1.6;
}

.mcrvip-hp {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}

.mcrvip-trigger {
    cursor: pointer;
}

@media (max-width: 600px) {
    .mcrvip-overlay {
        align-items: flex-end;
        padding: 12px;
    }

    .mcrvip-modal {
        max-height: calc(100vh - 24px);
        border-radius: 18px;
    }

    .mcrvip-header {
        padding: 28px 54px 22px 22px;
    }

    .mcrvip-body {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mcrvip-overlay,
    .mcrvip-modal {
        scroll-behavior: auto;
    }
}
