/* Contact sales page — pitch on the left, form card on the right.
   Scoped to body.rlc; colours come from the theme tokens in
   rl-theme-dark.css, re-pointed here so the card reads in both themes. */

.rlc {
    --rlc-page: #ffffff;
    --rlc-haze-a: rgba(77, 168, 218, .22);
    --rlc-haze-b: rgba(43, 95, 217, .14);
    --rlc-card: #ffffff;
    --rlc-card-line: rgba(15, 23, 42, .1);
    --rlc-field: #f5f7fa;
    --rlc-field-line: rgba(15, 23, 42, .12);
    --rlc-text: #0f172a;
    --rlc-muted: rgba(15, 23, 42, .62);
    --rlc-faint: rgba(15, 23, 42, .45);
    --rlc-accent: #063F5B;
    --rlc-btn-bg: #0f172a;
    --rlc-btn-fg: #ffffff;
    --rlc-logo-filter: brightness(0);
    background: var(--rlc-page);
    color: var(--rlc-text);
}
html[data-theme="dark"] .rlc {
    --rlc-page: #050608;
    --rlc-haze-a: rgba(77, 168, 218, .28);
    --rlc-haze-b: rgba(43, 95, 217, .22);
    --rlc-card: #0b0c0f;
    --rlc-card-line: rgba(255, 255, 255, .1);
    --rlc-field: #16181d;
    --rlc-field-line: rgba(255, 255, 255, .12);
    --rlc-text: #f4f6f8;
    --rlc-muted: rgba(244, 246, 248, .7);
    --rlc-faint: rgba(244, 246, 248, .5);
    --rlc-accent: #4DA8DA;
    --rlc-btn-bg: #ffffff;
    --rlc-btn-fg: #0a0b0d;
    --rlc-logo-filter: brightness(0) invert(1);
}

.rlc-main {
    position: relative;
    isolation: isolate;
    padding: 72px 0 112px;
}
/* soft haze along the top of the page, like a sky behind the header */
.rlc-main::before {
    content: "";
    position: absolute;
    inset: -80px 0 auto 0;
    height: 480px;
    z-index: -1;
    background:
        radial-gradient(60% 90% at 30% 0%, var(--rlc-haze-a), transparent 70%),
        radial-gradient(50% 80% at 80% 0%, var(--rlc-haze-b), transparent 70%);
    pointer-events: none;
}

.rlc-wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
    gap: 64px;
    align-items: start;
}

/* ---- Pitch -------------------------------------------------------------- */
.rlc-pitch { padding-top: 32px; }
.rlc h1.rlc-title {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.02em;
    color: var(--rlc-text);
    margin: 0 0 1.25rem;
    max-width: 7.5em; /* "Contact our / sales team" */
}
.rlc-lead { color: var(--rlc-muted); font-size: 1rem; margin: 0 0 2.75rem; max-width: 26rem; }
.rlc-label { color: var(--rlc-faint); font-size: .85rem; margin: 0 0 .9rem; }
.rlc-features { list-style: none; padding: 0; margin: 0 0 3rem; }
.rlc-features li { display: flex; align-items: center; gap: .75rem; color: var(--rlc-text); font-size: .92rem; margin-bottom: .85rem; }
.rlc-features .svg-inline--fa, .rlc-features i { width: 1rem; color: var(--rlc-accent); flex-shrink: 0; }
.rlc-logos { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
.rlc-logos img { height: 22px; width: auto; filter: var(--rlc-logo-filter); opacity: .9; }
.rlc-logos img.tall { height: 36px; }

/* ---- Form card ---------------------------------------------------------- */
.rlc-card {
    background: var(--rlc-card);
    border: 1px solid var(--rlc-card-line);
    border-radius: 18px;
    padding: 24px 22px 20px;
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .35);
}
.rlc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.rlc-field { display: flex; flex-direction: column; min-width: 0; }
.rlc-field--full { grid-column: 1 / -1; }
.rlc .rlc-field label {
    font-size: .82rem;
    font-weight: 500;
    color: var(--rlc-text);
    margin-bottom: .45rem;
}
.rlc-field label .req { color: var(--rlc-muted); margin-left: 2px; }
.rlc-field label .opt { color: var(--rlc-faint); font-weight: 400; }
.rlc.rlc .rlc-field input,
.rlc.rlc .rlc-field select,
.rlc.rlc .rlc-field textarea {
    width: 100%;
    background-color: var(--rlc-field);
    border: 1px solid var(--rlc-field-line);
    color: var(--rlc-text);
    font: inherit;
    font-size: .9rem;
    border-radius: 999px;
    padding: .62rem 1rem;
    min-height: 0;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.rlc.rlc .rlc-field textarea { border-radius: 12px; min-height: 8.5rem; resize: vertical; }
.rlc.rlc .rlc-field select {
    appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238a8f98' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 6l5 5 5-5'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}
.rlc.rlc .rlc-field select:invalid { color: var(--rlc-faint); }
.rlc.rlc .rlc-field input::placeholder,
.rlc.rlc .rlc-field textarea::placeholder { color: var(--rlc-faint); }
.rlc.rlc .rlc-field input:focus,
.rlc.rlc .rlc-field select:focus,
.rlc.rlc .rlc-field textarea:focus {
    outline: none;
    border-color: var(--rlc-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rlc-accent) 25%, transparent);
}
.rlc.rlc .rlc-field.is-invalid input,
.rlc.rlc .rlc-field.is-invalid select { border-color: #e5484d; }

.rlc-submit {
    grid-column: 1 / -1;
    margin-top: 2.5rem;
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: .7rem 1rem;
    font-weight: 500;
    font-size: .92rem;
    background: var(--rlc-btn-bg);
    color: var(--rlc-btn-fg);
    transition: opacity .15s ease;
}
.rlc-submit:hover { opacity: .88; }
.rlc-submit:disabled { opacity: .6; cursor: progress; }
.rlc-error {
    grid-column: 1 / -1;
    border-radius: 12px;
    padding: .7rem 1rem;
    font-size: .85rem;
    background: rgba(229, 72, 77, .12);
    border: 1px solid rgba(229, 72, 77, .4);
    color: var(--rlc-text);
}
.rlc-error[hidden] { display: none; }
.rlc-foot { margin: 1.4rem 0 0; font-size: .82rem; color: var(--rlc-muted); }
.rlc-foot a { color: var(--rlc-text) !important; text-decoration: underline; }

/* Thank-you / failure state, swapped in for the form */
.rlc-done { padding: 2rem .5rem 1rem; }
.rlc .rlc-done h2 { color: var(--rlc-text); font-weight: 500; font-size: 1.8rem; margin-bottom: .75rem; }
.rlc-done p { color: var(--rlc-muted); margin-bottom: 1.75rem; }
/* an <a> here, so it has to out-rank the theme's link colour */
.rlc a.rlc-submit { margin-top: 0; display: inline-block; text-align: center; text-decoration: none; color: var(--rlc-btn-fg); }

@media (max-width: 899.98px) {
    .rlc-main { padding: 40px 0 80px; }
    .rlc-wrap { grid-template-columns: 1fr; gap: 40px; }
    .rlc-pitch { padding-top: 8px; }
    .rlc-lead { margin-bottom: 2rem; }
    .rlc-features { margin-bottom: 2rem; }
}
@media (max-width: 479.98px) {
    .rlc-wrap { padding: 0 16px; }
    .rlc-form { grid-template-columns: 1fr; }
    .rlc-card { padding: 20px 16px 16px; }
}
