/* ===================================================================
   OptionsGym — waitlist widget. Self-sufficient: also renders on CMS
   pages where the landing stylesheet is not loaded.
   =================================================================== */

.og-waitlist,
.og-waitlist *,
.og-waitlist *::before,
.og-waitlist *::after {
    box-sizing: border-box;
}

/* zero-specificity reset: neutralizes host-page heading/paragraph margins
   without overriding the component classes below */
.og-waitlist :where(h1, h2, h3, p) {
    margin: 0;
}

.og-waitlist {
    background: linear-gradient(180deg, var(--og-raised), var(--og-panel));
    border: 1px solid var(--og-line);
    border-radius: 16px;
    padding: 28px;
    color: var(--og-text);
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.og-waitlist__title {
    font-size: clamp(1.4rem, 3.8vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -.01em;
    margin-bottom: 12px;
}

.og-waitlist__text {
    color: var(--og-muted);
    font-size: 1.02rem;
    max-width: 34em;
}

.og-waitlist__form {
    align-self: center;
}

.og-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.og-input {
    flex: 1 1 auto;
    min-width: 0;
    background: var(--og-bg);
    border: 1px solid var(--og-line);
    border-radius: 11px;
    padding: 13px 16px;
    color: var(--og-text);
    font-size: 1rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.og-input::placeholder {
    color: #6e7681;
}

.og-input:focus {
    outline: none;
    border-color: var(--og-accent);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, .2);
}

.og-waitlist__msg {
    min-height: 1.2em;
    margin-top: 12px;
    font-size: .92rem;
}

.og-waitlist__msg[data-kind="ok"] {
    color: var(--og-green);
}

.og-waitlist__msg[data-kind="err"] {
    color: var(--og-red);
}

.og-waitlist__msg[data-kind="muted"] {
    color: var(--og-muted);
}

.og-waitlist__fine {
    color: var(--og-muted);
    font-size: .78rem;
    margin-top: 8px;
}

@media (min-width: 520px) {
    .og-field {
        flex-direction: row;
    }
}

@media (min-width: 880px) {
    .og-waitlist {
        grid-template-columns: 1.05fr .95fr;
        align-items: center;
        gap: 32px;
    }
}
