/* ===== Affiliate Partner Page ===== */

.af-page {
    min-height: 100vh;
    background: #f8fafc;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 1.5rem 2.5rem;
    overflow-x: clip;
    font-family: 'Inter', system-ui, sans-serif;
}

.af-glow { position: absolute; pointer-events: none; border-radius: 50%; z-index: 0; filter: blur(60px); }
.af-glow--tl { top: -100px; left: -120px; width: 580px; height: 580px; background: radial-gradient(circle, rgba(0,168,150,0.08) 0%, transparent 65%); }
.af-glow--br { bottom: -80px; right: -100px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(0,168,150,0.06) 0%, transparent 65%); }

.af-watermark {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(56px, 10vw, 130px);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: rgba(0,0,0,0.06);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

.af-shell { position: relative; z-index: 2; width: 100%; max-width: 1080px; }

.af-head { text-align: center; margin-top: 4rem; margin-bottom: 1.6rem; }
.af-tag {
    display: inline-block;
    border: 1px solid rgba(0,168,150,0.4);
    color: #00A896;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 999px;
    background: rgba(0,168,150,0.06);
    margin-bottom: 0.9rem;
}
.af-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: #0f172a; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 0.45rem; }
.af-title-accent { color: #00A896; }
.af-sub { font-size: 0.92rem; color: #64748b; line-height: 1.55; max-width: 620px; margin: 0 auto; }

/* Card */
.af-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 2px 4px rgba(15,23,42,0.03), 0 20px 50px rgba(15,23,42,0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 600px;
}

.af-aside {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.af-aside-brand img { height: 28px; width: auto; display: block; }
.af-aside-title { font-size: 1.5rem; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }

.af-main { display: flex; flex-direction: column; }

/* Vertical stepper */
.af-stepper { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.af-stepnav-item { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.af-stepnav-dot {
    width: 30px; height: 30px; border-radius: 50%;
    background: #ffffff; border: 1.5px solid #cbd5e1; color: #94a3b8;
    font-size: 0.82rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.25s;
}
.af-stepnav-num { display: block; }
.af-stepnav-check { width: 14px; height: 14px; display: none; }
.af-stepnav-item--active .af-stepnav-dot { background: linear-gradient(180deg, #00bfac 0%, #00A896 100%); border-color: #00A896; color: #ffffff; box-shadow: 0 4px 10px rgba(0,168,150,0.35); }
.af-stepnav-item--done .af-stepnav-dot { background: rgba(0,168,150,0.1); border-color: rgba(0,168,150,0.4); color: #00A896; }
.af-stepnav-item--done .af-stepnav-num { display: none; }
.af-stepnav-item--done .af-stepnav-check { display: block; }
.af-stepnav-label { font-size: 0.85rem; font-weight: 600; color: #94a3b8; white-space: nowrap; transition: color 0.2s; }
.af-stepnav-item--active .af-stepnav-label { color: #0f172a; }
.af-stepnav-item--done .af-stepnav-label { color: #00A896; }
.af-stepnav-bar { width: 2px; height: 22px; background: #e2e8f0; border-radius: 999px; margin-left: 14px; transition: background 0.3s; }
.af-stepnav-bar--done { background: rgba(0,168,150,0.45); }

/* Form */
.af-form { display: flex; flex-direction: column; }
.af-body { padding: 30px 36px 8px; }

.af-step { display: none; animation: af-fade 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.af-step--active { display: block; }
@keyframes af-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.af-step-title { font-size: 1.3rem; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 0.35rem; }
.af-step-sub { font-size: 0.9rem; color: #64748b; line-height: 1.55; margin-bottom: 1.3rem; }

/* Form fields (floating-label) */
.af-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.af-section-eyebrow { display: block; font-size: 0.72rem; font-weight: 700; color: #64748b; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; }

.af-field { position: relative; display: block; margin-bottom: 18px; }
.af-field:last-child { margin-bottom: 0; }

.af-input {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 14px 14px;
    font-size: 0.95rem;
    color: #0f172a;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.af-input::placeholder { color: transparent; }
.af-input:focus { border-color: rgba(0,168,150,0.6); box-shadow: 0 0 0 3px rgba(0,168,150,0.1); }

.af-label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    padding: 0 6px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #94a3b8;
    pointer-events: none;
    transition: top 0.18s ease, font-size 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.af-label-opt { color: #cbd5e1; font-weight: 500; font-size: 0.78rem; }

.af-field:has(.af-input:focus) .af-label,
.af-field:has(.af-input:not(:placeholder-shown)) .af-label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.74rem;
    color: #00A896;
    font-weight: 600;
}

.af-field:has(.af-textarea) .af-label { top: 18px; transform: translateY(-50%); }
.af-field:has(.af-textarea:focus) .af-label,
.af-field:has(.af-textarea:not(:placeholder-shown)) .af-label { top: 0; font-size: 0.74rem; }

.af-textarea { resize: vertical; min-height: 96px; line-height: 1.55; }

.af-block-label { display: block; font-size: 0.78rem; font-weight: 700; color: #475569; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }

/* Chips */
.af-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.af-chip {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.18s;
}
.af-chip:hover { border-color: rgba(0,168,150,0.5); color: #00A896; }
.af-chip--on {
    background: rgba(0,168,150,0.1);
    border-color: #00A896;
    color: #00A896;
}

/* Summary */
.af-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1rem;
}
.af-summary-row { display: grid; grid-template-columns: 140px 1fr; gap: 12px; font-size: 0.9rem; }
.af-summary-key { color: #94a3b8; font-weight: 600; }
.af-summary-val { color: #0f172a; font-weight: 600; }
.af-summary-row--highlight { border-top: 1px solid #e2e8f0; padding-top: 10px; }

.af-msg { display: none; padding: 12px 16px; border-radius: 10px; font-size: 0.88rem; margin-top: 10px; }
.af-msg--success { background: rgba(0,168,150,0.1); color: #00A896; border: 1px solid rgba(0,168,150,0.3); }
.af-msg--error { background: rgba(239,68,68,0.08); color: #dc2626; border: 1px solid rgba(239,68,68,0.3); }

/* Actions */
.af-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 36px; border-top: 1px solid #e2e8f0; background: #ffffff; }
.af-actions .af-btn--primary { margin-left: auto; }
.af-step-counter { font-size: 0.82rem; color: #94a3b8; font-weight: 600; }
.af-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 12px 28px; font-family: inherit; font-size: 0.92rem; font-weight: 700; cursor: pointer; border: 1.5px solid transparent; transition: all 0.2s; }
.af-btn svg { width: 14px; height: 14px; }
.af-btn--primary { background: linear-gradient(180deg, #00bfac 0%, #00A896 100%); color: #ffffff; box-shadow: 0 4px 14px rgba(0,168,150,0.4); }
.af-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,168,150,0.55); }
.af-btn--primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.af-btn--ghost { background: transparent; color: #475569; border-color: #e2e8f0; }
.af-btn--ghost:hover:not(:disabled) { background: #ffffff; color: #0f172a; border-color: #cbd5e1; }
.af-btn--ghost:disabled { opacity: 0.4; cursor: not-allowed; }

.af-contact { margin-top: 1.4rem; text-align: center; font-size: 0.85rem; color: #64748b; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; }
.af-contact a { color: #00A896; font-weight: 600; text-decoration: none; }
.af-contact a:hover { color: #006d63; }
.af-contact span { color: #cbd5e1; }

/* Responsive */
@media (max-width: 760px) {
    .af-watermark { top: 3rem; font-size: 14vw; }
    .af-card { grid-template-columns: 1fr; min-height: 0; }
    .af-aside { border-right: none; border-bottom: 1px solid #e2e8f0; padding: 18px 22px; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
    .af-aside-title { font-size: 1.1rem; }
    .af-stepper { flex-direction: row; gap: 2px; width: 100%; overflow-x: auto; }
    .af-stepnav-bar { width: 18px; height: 2px; margin-left: 0; flex-shrink: 0; }
    .af-stepnav-item { gap: 8px; }
    .af-stepnav-label { display: none; }
    .af-body { padding: 22px 22px 6px; }
    .af-actions { padding: 14px 22px; }
    .af-grid { grid-template-columns: 1fr; }
    .af-summary-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 480px) {
    .af-page { padding: 4rem 1rem 2rem; }
    .af-actions { flex-direction: column-reverse; gap: 10px; }
    .af-actions .af-btn { width: 100%; justify-content: center; margin-left: 0; }
    .af-step-counter { order: -1; }
}
