.gruve-rh-overlay {
    position: fixed; inset: 0;
    background: rgba(8, 12, 20, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999998;
    display: none; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.gruve-rh-overlay.is-open { display: flex; opacity: 1; }

.gruve-rh-modal {
    width: 100%; max-width: 720px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden; position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    display: grid; grid-template-columns: 280px 1fr;
    transform: translateY(20px) scale(0.97); opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.gruve-rh-overlay.is-open .gruve-rh-modal { transform: translateY(0) scale(1); opacity: 1; }

.gruve-rh-accent-bar {
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: #EE0000; z-index: 2;
}

.gruve-rh-close {
    position: absolute; top: 14px; right: 14px;
    width: 34px; height: 34px; border-radius: 999px;
    background: #F7F6F1; border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5;
    transition: transform 0.25s ease, background 0.2s ease;
    padding: 0; line-height: 0;
}
.gruve-rh-close:hover { background: #ECEAE0; transform: rotate(90deg); }
.gruve-rh-close svg { width: 16px; height: 16px; stroke: #0F1419; }

.gruve-rh-left {
    background: #FAFAF7;
    padding: 44px 28px 32px;
    display: flex; flex-direction: column; justify-content: space-between;
    border-right: 1px solid rgba(15, 20, 25, 0.08);
    position: relative; min-height: 100%;
}
.gruve-rh-pill {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(238, 0, 0, 0.1);
    padding: 6px 12px; border-radius: 999px;
    font-size: 11px; font-weight: 600; color: #C81010;
    letter-spacing: 0.6px; text-transform: uppercase;
    margin-bottom: 28px; width: fit-content;
}
.gruve-rh-pill-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #EE0000;
    animation: gruve-rh-pulse 1.8s ease-in-out infinite;
}
@keyframes gruve-rh-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}
.gruve-rh-logo {
    width: 100%; max-width: 180px; height: auto;
    display: block; margin-bottom: 24px;
}

.gruve-rh-meta-item {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 12px; color: #5F5E5A; line-height: 1.5;
    margin-bottom: 8px;
}
.gruve-rh-meta-item:last-child { margin-bottom: 0; }
.gruve-rh-meta-item svg {
    width: 14px; height: 14px; stroke: #EE0000;
    flex-shrink: 0; margin-top: 2px;
}
.gruve-rh-meta-strong { font-weight: 600; color: #0F1419; }

.gruve-rh-right {
    padding: 44px 32px 32px;
    display: flex; flex-direction: column; justify-content: center;
}
.gruve-rh-eyebrow {
    font-size: 11px; letter-spacing: 1.8px;
    color: #6B6B6B; text-transform: uppercase;
    margin-bottom: 10px; font-weight: 600;
}
.gruve-rh-title {
    font-size: 24px; line-height: 1.2;
    margin: 0 0 10px; color: #0F1419;
    font-weight: 700; letter-spacing: -0.4px;
}
.gruve-rh-subtitle {
    font-size: 13.5px; color: #5F5E5A; line-height: 1.6;
    margin: 0 0 20px;
}

.gruve-rh-cta-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin-bottom: 20px;
}
.gruve-rh-cta {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; padding: 13px 12px;
    border-radius: 10px; text-decoration: none;
    font-weight: 600; font-size: 13px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    cursor: pointer; text-align: center; line-height: 1.2;
}
.gruve-rh-cta svg { width: 16px; height: 16px; flex-shrink: 0; }

.gruve-rh-cta-primary {
    background: #FFD23F; color: #0F1419;
    border: 1px solid #FFD23F;
}
.gruve-rh-cta-primary svg { stroke: #0F1419; }
.gruve-rh-cta-primary:hover {
    background: #FFCB1A;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 210, 63, 0.35);
    color: #0F1419;
}

.gruve-rh-cta-secondary {
    background: transparent; color: #0F1419;
    border: 1px solid rgba(15, 20, 25, 0.2);
}
.gruve-rh-cta-secondary svg { stroke: #EE0000; }
.gruve-rh-cta-secondary:hover {
    background: #FAFAF7;
    border-color: rgba(15, 20, 25, 0.4);
    transform: translateY(-1px);
    color: #0F1419;
}

.gruve-rh-form-section {
    padding-top: 16px;
    border-top: 1px dashed rgba(15, 20, 25, 0.15);
}
.gruve-rh-form-label {
    font-size: 11px; letter-spacing: 1.2px;
    color: #888780; text-transform: uppercase;
    margin-bottom: 10px; font-weight: 600;
}

@media (max-width: 640px) {
    .gruve-rh-overlay { padding: 12px; align-items: flex-start; overflow-y: auto; }
    .gruve-rh-modal {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 24px);
        overflow-y: auto; margin: 12px 0;
    }
    .gruve-rh-left {
        padding: 32px 22px 22px;
        border-right: none;
        border-bottom: 1px solid rgba(15, 20, 25, 0.08);
        min-height: auto;
    }
    .gruve-rh-logo { max-width: 150px; margin-bottom: 18px; }
    .gruve-rh-pill { margin-bottom: 18px; }
    .gruve-rh-right { padding: 28px 22px 26px; }
    .gruve-rh-title { font-size: 22px; }
    .gruve-rh-cta-row { grid-template-columns: 1fr; }
}