/* ==========================================================================
   WPIT Register Page — wpit-register-page.css
   Design: WPITMediaCloud — dark navy, gold accents, editorial
   ========================================================================== */

:root {
    --reg-navy:        #0a1628;
    --reg-navy-mid:    #1a3a5c;
    --reg-navy-light:  #1e4a6e;
    --reg-gold:        #f0c040;
    --reg-gold-dim:    #c8a030;
    --reg-white:       #ffffff;
    --reg-white-80:    rgba(255,255,255,0.80);
    --reg-white-50:    rgba(255,255,255,0.50);
    --reg-white-20:    rgba(255,255,255,0.12);
    --reg-white-08:    rgba(255,255,255,0.06);
    --reg-error:       #e05555;
    --reg-green:       #4caf7d;
    --reg-radius:      12px;
    --reg-radius-sm:   7px;
    --reg-trans:       0.22s ease;
}

/* ── Reset for this component ─────────────────────────────────────────────── */
.wpit-reg-wrap * { box-sizing: border-box; }
.wpit-reg-wrap p { margin: 0; }

/* ── Outer wrap ───────────────────────────────────────────────────────────── */
.wpit-reg-wrap {
    display: flex;
    min-height: 100vh;
    width: 100%;
    font-family: 'Source Serif 4', Georgia, serif;
    background: var(--reg-navy);
    overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════════════════════
   LEFT PANEL
   ══════════════════════════════════════════════════════════════════════════════ */
.wpit-reg-left {
    flex: 0 0 52%;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 80% 10%, rgba(240,192,64,0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 90%, rgba(30,74,110,0.8) 0%, transparent 60%),
        linear-gradient(155deg, #0d2040 0%, #1a3a5c 50%, #0a1628 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Decorative grid lines */
.wpit-reg-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

/* Gold accent line top */
.wpit-reg-left::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--reg-gold), transparent);
    pointer-events: none;
}

.wpit-reg-left__inner {
    position: relative;
    z-index: 1;
    padding: 48px 44px 44px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    height: 100%;
}

/* Logo */
.wpit-reg-logo {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: sans-serif;
}
.wpit-reg-logo__brand  { color: var(--reg-white); }
.wpit-reg-logo__media  { color: var(--reg-gold); }
.wpit-reg-logo__cloud  { color: var(--reg-white-50); }

/* Headline */
.wpit-reg-headline {
    font-size: clamp(1.9rem, 3.2vw, 3rem);
    font-weight: 300;
    line-height: 1.12;
    color: var(--reg-white);
    margin: 0;
    letter-spacing: -0.01em;
}
.wpit-reg-headline em {
    color: var(--reg-gold);
    font-style: normal;
    font-weight: 700;
}

/* Sub */
.wpit-reg-sub {
    color: var(--reg-white-80);
    font-size: 0.9rem;
    line-height: 1.7;
    font-weight: 300;
}

/* Section labels */
.wpit-reg-section-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--reg-gold);
    margin: 0 0 12px;
    font-family: sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wpit-reg-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(240,192,64,0.4), transparent);
}

/* ── Account type cards ────────────────────────────────────────────────────── */
.wpit-reg-type-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpit-reg-type-card {
    background: var(--reg-white-08);
    border: 1px solid var(--reg-white-20);
    border-radius: var(--reg-radius);
    padding: 12px 14px;
    transition: all var(--reg-trans);
    border-left: 3px solid transparent;
}
.wpit-reg-type-card.active {
    background: rgba(240,192,64,0.08);
    border-color: rgba(240,192,64,0.25);
    border-left-color: var(--reg-gold);
}

.wpit-reg-type-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}
.wpit-reg-type-card__emoji {
    font-size: 1.3rem;
    flex-shrink: 0;
}
.wpit-reg-type-card__top > div {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.wpit-reg-type-card strong {
    color: var(--reg-white);
    font-size: 0.82rem;
    font-family: sans-serif;
    font-weight: 600;
}
.wpit-reg-type-card p {
    color: var(--reg-white-50);
    font-size: 0.72rem;
    line-height: 1.5;
    font-family: sans-serif;
    padding-left: 38px;
}
.wpit-reg-type-card__badge {
    font-size: 0.6rem;
    font-family: sans-serif;
    font-weight: 700;
    letter-spacing: 0.07em;
    padding: 2px 7px;
    border-radius: 20px;
    white-space: nowrap;
}
.wpit-reg-type-card__badge--free {
    background: rgba(76,175,125,0.15);
    color: var(--reg-green);
    border: 1px solid rgba(76,175,125,0.3);
}
.wpit-reg-type-card__badge--paid {
    background: rgba(240,192,64,0.12);
    color: var(--reg-gold);
    border: 1px solid rgba(240,192,64,0.25);
}

/* Approval note */
.wpit-reg-approval-note {
    color: var(--reg-white-50);
    font-size: 0.72rem;
    font-family: sans-serif;
    margin-top: 6px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
}

/* ── Process flow ─────────────────────────────────────────────────────────── */
.wpit-reg-flow {
    display: none;
}
.wpit-reg-flow.active {
    display: block;
    animation: wpit-fadein 0.35s ease;
}

@keyframes wpit-fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Steps row */
.wpit-reg-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
}
.wpit-reg-steps--brand {
    /* 5 steps — slightly smaller icons on brand flow */
}

/* Individual step */
.wpit-reg-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.wpit-reg-step__icon {
    width: 104px;
    height: 104px;
    color: var(--reg-white-80);
    transition: color var(--reg-trans);
    filter: drop-shadow(0 2px 8px rgba(240,192,64,0.15));
}
.wpit-reg-step--final .wpit-reg-step__icon {
    color: var(--reg-gold);
    filter: drop-shadow(0 2px 12px rgba(240,192,64,0.4));
}
.wpit-reg-steps--brand .wpit-reg-step__icon {
    width: 84px;
    height: 84px;
}

.wpit-reg-step__icon svg {
    width: 100%;
    height: 100%;
}

.wpit-reg-step__label {
    font-size: 0.75rem;
    font-family: sans-serif;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--reg-white-50);
    text-align: center;
    max-width: 110px;
    line-height: 1.3;
}
.wpit-reg-step--final .wpit-reg-step__label {
    color: var(--reg-gold);
}

/* Connector */
.wpit-reg-step__connector {
    flex-shrink: 0;
    width: 72px;
    margin-top: 28px;
    opacity: 0.7;
}
.wpit-reg-steps--brand .wpit-reg-step__connector {
    width: 56px;
    margin-top: 18px;
}
.wpit-reg-step__connector svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* ══════════════════════════════════════════════════════════════════════════════
   RIGHT PANEL — FORM
   ══════════════════════════════════════════════════════════════════════════════ */
.wpit-reg-right {
    flex: 0 0 48%;
    background: #f4f1ec;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 40px 48px;
    overflow-y: auto;
    min-height: 100vh;
}

.wpit-reg-form-wrap {
    width: 100%;
    max-width: 460px;
}

.wpit-reg-form-title {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--reg-navy);
    margin: 0 0 28px;
    letter-spacing: -0.01em;
}

/* ── Fields ──────────────────────────────────────────────────────────────── */
.wpit-reg-field {
    margin-bottom: 15px;
}
.wpit-reg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.wpit-reg-row .wpit-reg-field { margin-bottom: 15px; }

.wpit-reg-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #556;
    margin-bottom: 6px;
}
.wpit-reg-req { color: var(--reg-error); margin-left: 2px; }

.wpit-reg-input {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #ddd;
    border-radius: var(--reg-radius-sm);
    background: #fff;
    font-size: 0.88rem;
    font-family: sans-serif;
    color: #222;
    transition: border-color var(--reg-trans), box-shadow var(--reg-trans);
    appearance: none;
    -webkit-appearance: none;
}
.wpit-reg-input:focus {
    outline: none;
    border-color: var(--reg-navy-mid);
    box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}
select.wpit-reg-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23556' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}
.wpit-reg-hint {
    display: block;
    font-size: 0.7rem;
    color: #999;
    font-family: sans-serif;
    margin-top: 4px;
    font-style: italic;
}

/* ── Type tabs (in form) ─────────────────────────────────────────────────── */
.wpit-reg-type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}
.wpit-reg-type-tab {
    padding: 6px 12px;
    border: 1.5px solid #ddd;
    border-radius: 20px;
    background: #fff;
    font-size: 0.75rem;
    font-family: sans-serif;
    color: #556;
    cursor: pointer;
    transition: all var(--reg-trans);
    white-space: nowrap;
}
.wpit-reg-type-tab:hover {
    border-color: var(--reg-navy-mid);
    color: var(--reg-navy);
}
.wpit-reg-type-tab.active {
    background: var(--reg-navy);
    border-color: var(--reg-navy);
    color: #fff;
}

/* ── Checkboxes ─────────────────────────────────────────────────────────── */
.wpit-reg-checks {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 18px 0 22px;
}
.wpit-reg-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}
.wpit-reg-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.wpit-reg-check__box {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: #fff;
    transition: all var(--reg-trans);
    margin-top: 1px;
    position: relative;
}
.wpit-reg-check input:checked + .wpit-reg-check__box {
    background: var(--reg-navy);
    border-color: var(--reg-navy);
}
.wpit-reg-check input:checked + .wpit-reg-check__box::after {
    content: '';
    position: absolute;
    left: 4px; top: 1px;
    width: 6px; height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}
.wpit-reg-check__text {
    font-size: 0.78rem;
    color: #556;
    line-height: 1.55;
    font-family: sans-serif;
}
.wpit-reg-check__text a {
    color: var(--reg-navy-mid);
    text-decoration: underline;
}

/* ── Submit button ──────────────────────────────────────────────────────── */
.wpit-reg-btn {
    width: 100%;
    padding: 13px 24px;
    background: var(--reg-navy);
    color: #fff;
    border: none;
    border-radius: var(--reg-radius-sm);
    font-size: 0.95rem;
    font-family: sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background var(--reg-trans), transform var(--reg-trans), box-shadow var(--reg-trans);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(10,22,40,0.25);
}
.wpit-reg-btn:hover {
    background: var(--reg-navy-mid);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10,22,40,0.3);
}
.wpit-reg-btn:active { transform: translateY(0); }

.wpit-reg-login-link {
    text-align: center;
    font-size: 0.78rem;
    font-family: sans-serif;
    color: #999;
    margin-top: 28px;
}
.wpit-reg-login-link a {
    color: var(--reg-navy-mid);
    font-weight: 600;
    text-decoration: none;
}
.wpit-reg-login-link a:hover { text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .wpit-reg-wrap { flex-direction: column; }
    .wpit-reg-left { flex: none; min-height: auto; }
    .wpit-reg-left__inner { padding: 36px 24px 28px; gap: 20px; }
    .wpit-reg-right { flex: none; min-height: auto; padding: 36px 24px; }
    .wpit-reg-headline { font-size: 2rem; }
}
@media (max-width: 520px) {
    .wpit-reg-row { grid-template-columns: 1fr; gap: 0; }
    .wpit-reg-type-tabs { flex-direction: column; }
    .wpit-reg-step__icon { width: 76px; height: 76px; }
    .wpit-reg-steps--brand .wpit-reg-step__icon { width: 64px; height: 64px; }
    .wpit-reg-step__connector { width: 48px; }
}
