/* =====================================================
   ROARS AGENCY — FORM PAGES SHARED CSS
   Light theme: white bg, black text, #ea7f39 accent
   ===================================================== */

/* ── Reset ─────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Override main.css dark body for form pages ─────── */
body.page-template-page-logo-branding,
body.page-template-page-meta-ads,
body.page-template-page-pre-onboarding,
body.page-template-page-seo,
body.page-template-page-social-media,
body.page-template-page-website-design {
    background: #ffffff !important;
    color: #111111 !important;
}

/* ── Admin bar fix ──────────────────────────────────── */
#wpadminbar {
    display: none !important;
}

html {
    margin-top: 0 !important;
}

/* ── Form page wrapper ──────────────────────────────── */
.rf-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
}

/* ── Navbar spacer (height = navbar height) ─────────── */
.rf-spacer {
    height: 72px;
}

/* ── Navbar override for light page ────────────────────
   The navbar bg is dark by default — keep it as-is so the
   logo/links stay readable on white pages too.            */

/* ── Hero banner ───────────────────────────────────── */
.rf-hero {
    text-align: center;
    padding: 4rem 1.5rem 3rem;
    position: relative;
    background: #ffffff;
    border-bottom: 1px solid #ebebeb;
    overflow: clip;
}

.rf-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(234, 127, 57, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.rf-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ea7f39;
    border: 1px solid rgba(234, 127, 57, 0.35);
    border-radius: 100px;
    padding: 5px 16px;
    margin-bottom: 1.25rem;
    background: rgba(234, 127, 57, 0.05);
}

.rf-hero-title {
    font-family: 'Anton', 'Inter', sans-serif;
    font-size: clamp(2.25rem, 5.5vw, 4.5rem);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #111111;
    margin-bottom: 1rem;
}

.rf-hero-title span {
    color: #ea7f39;
}

.rf-hero-sub {
    font-size: clamp(0.95rem, 1.4vw, 1.0625rem);
    color: #6b7280;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* ── Form body ──────────────────────────────────────── */
.rf-body {
    flex: 1;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem;
}

/* Two-column layout */
.rf-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .rf-cols {
        grid-template-columns: 1fr;
    }
}

.rf-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ── Section card ───────────────────────────────────── */
.rf-section {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.75rem 1.75rem 1.5rem;
    transition: border-color 0.25s, box-shadow 0.25s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.rf-section:focus-within {
    border-color: rgba(234, 127, 57, 0.4);
    box-shadow: 0 0 0 3px rgba(234, 127, 57, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.rf-section-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid #f0f0f0;
}

.rf-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(234, 127, 57, 0.1);
    border: 1.5px solid rgba(234, 127, 57, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    color: #ea7f39;
    flex-shrink: 0;
}

.rf-section-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111111;
    margin: 0;
}

/* ── Field ──────────────────────────────────────────── */
.rf-g2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 600px) {
    .rf-g2 {
        grid-template-columns: 1fr;
    }
}

.rf-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.rf-field:last-child {
    margin-bottom: 0;
}

.rf-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.01em;
}

.rf-label .req {
    color: #ea7f39;
    margin-left: 2px;
}

.rf-hint {
    font-size: 0.72rem;
    color: #9ca3af;
    font-style: italic;
    margin: -0.15rem 0 0.35rem;
}

/* ── Inputs / Textarea / Select ─────────────────────── */
.rf-input,
.rf-textarea,
.rf-select {
    width: 100%;
    background: #f9fafb;
    border: 1.5px solid #d1d5db;
    border-radius: 0.625rem;
    padding: 0.7rem 0.875rem;
    color: #111111;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.rf-input::placeholder,
.rf-textarea::placeholder {
    color: #c4c9d4;
}

.rf-input:focus,
.rf-textarea:focus,
.rf-select:focus {
    border-color: #ea7f39;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(234, 127, 57, 0.12);
}

.rf-textarea {
    resize: vertical;
    min-height: 96px;
    line-height: 1.6;
}

.rf-sel-wrap {
    position: relative;
}

.rf-sel-wrap::after {
    content: '▾';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 11px;
    pointer-events: none;
}

.rf-select option {
    background: #ffffff;
    color: #111111;
}

/* ── Checkbox / Radio chip items ────────────────────── */
.rf-chip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.rf-chip-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.rf-chip-grid--5 {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 600px) {

    .rf-chip-grid,
    .rf-chip-grid--3,
    .rf-chip-grid--5 {
        grid-template-columns: 1fr 1fr;
    }
}

.rf-chip {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.625rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.83rem;
    color: #4b5563;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
    user-select: none;
    cursor: pointer;
}

.rf-chip:hover {
    border-color: rgba(234, 127, 57, 0.45);
    color: #111111;
}

.rf-chip input[type="checkbox"],
.rf-chip input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 3px;
    flex-shrink: 0;
    position: relative;
    transition: background 0.16s, border-color 0.16s;
    cursor: pointer;
}

.rf-chip input[type="radio"] {
    border-radius: 50%;
}

.rf-chip input[type="checkbox"]:checked,
.rf-chip input[type="radio"]:checked {
    background: #ea7f39;
    border-color: #ea7f39;
}

.rf-chip input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 1.5px;
    left: 3px;
    width: 5px;
    height: 8px;
    border: 2px solid #ffffff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.rf-chip input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: #ffffff;
    border-radius: 50%;
}

.rf-chip:has(input:checked) {
    border-color: rgba(234, 127, 57, 0.6);
    background: rgba(234, 127, 57, 0.07);
    color: #111111;
    font-weight: 600;
}

/* Style chips (icon + label, vertical) */
.rf-style-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.875rem 0.4rem;
    font-size: 0.73rem;
    color: #6b7280;
    text-align: center;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
    user-select: none;
    cursor: pointer;
}

.rf-style-chip:hover {
    border-color: rgba(234, 127, 57, 0.45);
    color: #111111;
}

.rf-style-chip input {
    display: none;
}

.rf-style-chip:has(input:checked) {
    border-color: #ea7f39;
    background: rgba(234, 127, 57, 0.08);
    color: #111111;
    font-weight: 700;
}

.rf-style-icon {
    font-size: 1.35rem;
    line-height: 1;
}

/* ── Upload box ─────────────────────────────────────── */
.rf-upload-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: #fafafa;
    border: 1.5px dashed #d1d5db;
    border-radius: 0.875rem;
    padding: 1.75rem 1rem;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 0.75rem;
}

.rf-upload-box:hover {
    border-color: rgba(234, 127, 57, 0.5);
    background: rgba(234, 127, 57, 0.02);
}

.rf-upload-box.has-file {
    border-color: rgba(234, 127, 57, 0.55);
    background: rgba(234, 127, 57, 0.04);
}

.rf-upload-box input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.rf-upload-icon {
    font-size: 1.6rem;
    line-height: 1;
    pointer-events: none;
}

.rf-upload-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    pointer-events: none;
}

.rf-upload-box.has-file .rf-upload-name {
    color: #ea7f39;
}

.rf-upload-sub {
    font-size: 0.7rem;
    color: #9ca3af;
    pointer-events: none;
}

/* ── Color picker row ───────────────────────────────── */
.rf-color-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rf-color-picker {
    width: 40px;
    height: 40px;
    padding: 2px;
    border: 1.5px solid #d1d5db;
    border-radius: 0.5rem;
    background: #f9fafb;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.rf-color-picker:focus {
    border-color: #ea7f39;
    outline: none;
}

/* ── Access input row ───────────────────────────────── */
.rf-access-row {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.625rem;
    overflow: hidden;
    margin-bottom: 0.625rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rf-access-row:focus-within {
    border-color: #ea7f39;
    box-shadow: 0 0 0 3px rgba(234, 127, 57, 0.1);
}

.rf-access-icon {
    padding: 0 0.75rem;
    font-size: 0.875rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.rf-access-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.7rem 0.875rem 0.7rem 0;
    color: #111111;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
}

.rf-access-input::placeholder {
    color: #c4c9d4;
}

/* ── Divider ────────────────────────────────────────── */
.rf-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 1rem 0;
}

/* ── Submit row ─────────────────────────────────────── */
.rf-submit-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 0 3rem;
}

.rf-submit {
    background: #ea7f39;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border: none;
    border-radius: 9999px;
    padding: 0.9rem 3.25rem;
    min-width: 260px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 20px rgba(234, 127, 57, 0.28);
}

.rf-submit:hover {
    background: #d4702e;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(234, 127, 57, 0.35);
}

.rf-submit:active {
    transform: translateY(0);
}

.rf-privacy {
    font-size: 0.72rem;
    color: #9ca3af;
    text-align: center;
}

/* ── Success card ───────────────────────────────────── */
.rf-success {
    display: none;
    max-width: 500px;
    margin: 2.5rem auto 4rem;
    background: #ffffff;
    border: 1.5px solid rgba(234, 127, 57, 0.3);
    border-radius: 1rem;
    padding: 3rem 2.25rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.rf-success.visible {
    display: block;
}

.rf-success-icon {
    width: 52px;
    height: 52px;
    background: rgba(234, 127, 57, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1.25rem;
    color: #ea7f39;
}

.rf-success h2 {
    font-family: 'Anton', 'Inter', sans-serif;
    font-size: 1.875rem;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    color: #111111;
}

.rf-success p {
    color: #6b7280;
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ── Footer override for form pages ────────────────────
   Keep footer dark (matches main site design)           */