/*
 * Flock Theme — register.css
 * Prefixo: rg-
 * Usado em: template-register.php
 */

/* ── HERO ──────────────────────────────────────────────────── */
.rg-hero {
    background: #30493a;
    padding: 120px 5% 72px;
    position: relative;
    overflow: hidden;
}
.rg-hero::before {
    content: '';
    position: absolute; top: -200px; right: -200px;
    width: 600px; height: 600px; border-radius: 50%;
    background: rgba(74,155,111,0.08);
    pointer-events: none;
}
.rg-hero__inner {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.rg-hero__title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: #fff;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
}
.rg-hero__sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.75);
    line-height: 1.7;
}

/* ── SECÇÃO / INNER ─────────────────────────────────────────── */
.rg-section {
    background: var(--cream, #f8f7f4);
    padding: 56px 0 80px;
}
.rg-section__inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── CARD ───────────────────────────────────────────────────── */
.rg-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-sm, 0 2px 12px rgba(26,61,31,.08));
    border: 1px solid var(--border, rgba(45,106,53,.15));
}

/* ── PLANO BADGE ─────────────────────────────────────────────── */
.rg-plan-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: #f0faf4;
    border: 2px solid #e1e4cb;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 28px;
}
.rg-plan-badge__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.rg-plan-badge__label {
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ink-light, #6b7c65);
}
.rg-plan-badge__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a3d1f;
}
.rg-plan-badge__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.rg-plan-badge__price {
    font-size: .9rem;
    font-weight: 700;
    color: #2d6b4a;
    background: #e1e4cb;
    padding: 4px 12px;
    border-radius: 999px;
}
.rg-plan-badge__change {
    font-size: .82rem;
    color: var(--ink-light, #6b7c65);
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}
.rg-plan-badge__change:hover {
    color: #2d6b4a;
}

/* ── FORM ────────────────────────────────────────────────────── */
.rg-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.rg-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.rg-form__row .rg-form__field {
    margin-bottom: 0;
}
.rg-form__field label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink, #1a1f1c);
}
.rg-form__field input[type="text"],
.rg-form__field input[type="email"],
.rg-form__field input[type="tel"],
.rg-form__field select {
    padding: 12px 14px;
    border: 1.5px solid rgba(45,106,53,.25);
    border-radius: 10px;
    font-size: .95rem;
    font-family: inherit;
    color: var(--ink, #1a1f1c);
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .2s;
    outline: none;
    -webkit-appearance: none;
}
.rg-form__field input:focus,
.rg-form__field select:focus {
    border-color: #2d6b4a;
    box-shadow: 0 0 0 3px rgba(45,107,74,.08);
}

/* Billing options */
.rg-billing-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 2px;
}
.rg-billing-option {
    cursor: pointer;
}
.rg-billing-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.rg-billing-option__box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 2px solid rgba(45,106,53,.2);
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s, background .2s;
    user-select: none;
}
.rg-billing-option input:checked + .rg-billing-option__box {
    border-color: #2d6b4a;
    background: #f0faf4;
}
.rg-billing-option__title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--ink, #1a1f1c);
}
.rg-billing-option__desc {
    font-size: .78rem;
    color: var(--ink-light, #6b7c65);
}

/* ── SUBMIT + EXTRAS ─────────────────────────────────────────── */
.rg-form__submit {
    width: 100%;
    margin-top: 8px;
    font-size: 1rem;
    padding: 16px;
    box-sizing: border-box;
    display: block;
    text-align: center;
}
.rg-form__security {
    text-align: center;
    font-size: .8rem;
    color: var(--ink-light, #6b7c65);
    margin-top: 12px;
}

/* ── FEEDBACK ────────────────────────────────────────────────── */
.rg-feedback {
    display: none;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.5;
}
.rg-feedback.is-success {
    display: block;
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}
.rg-feedback.is-error {
    display: block;
    background: #fdecea;
    color: #b71c1c;
    border: 1px solid #ef9a9a;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 640px) {
    .rg-card {
        padding: 28px 20px;
    }
    .rg-form__row {
        grid-template-columns: 1fr;
    }
    .rg-billing-options {
        grid-template-columns: 1fr;
    }
    .rg-hero {
        padding: 64px 5% 40px;
    }
    .rg-plan-badge {
        flex-direction: column;
        align-items: flex-start;
    }
}
