/* affiliate-apply Styles */

* { box-sizing: border-box; }

.apply-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 1.5rem 6rem;
}

/* ── Back link ── */
.apply-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    transition: color 0.2s;
}
.apply-back:hover { color: #d10a10; }

/* ── Header ── */
.apply-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.apply-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #d10a10;
    background: rgba(209, 10, 16,0.1);
    border: 1px solid rgba(209, 10, 16,0.25);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
}
.apply-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.15;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    background: none;
    text-shadow: 0 0 18px rgba(194, 58, 61,0.85), 0 0 48px rgba(165, 15, 18,0.48), 0 2px 6px rgba(0,0,0,0.60);
    margin-bottom: 0.75rem;
}
.apply-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* ── Form card ── */
.apply-card {
    background: var(--card-bg, rgba(255,255,255,0.03));
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
    border-radius: 16px;
    padding: 2rem;
}

.apply-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d10a10;
    margin: 1.75rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(209, 10, 16,0.2);
}
.apply-section-title:first-child { margin-top: 0; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light, #ccc);
}
label .req {
    color: #d10a10;
    margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: var(--text-light, #fff);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    padding: 0.65rem 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #d10a10;
    box-shadow: 0 0 0 3px rgba(209, 10, 16,0.1);
}
select option { background: #0e1013; color: #fff; }
textarea { resize: vertical; min-height: 100px; }

.field-hint {
    font-size: 0.78rem;
    color: var(--text-muted, #888);
    line-height: 1.4;
}

/* ── Submit ── */
.apply-submit-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    text-align: center;
}
.btn-apply {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.5rem;
    background: linear-gradient(135deg, #d10a10, #a50f12);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
}
.btn-apply:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(209, 10, 16,0.35); opacity: 0.95; }
.btn-apply:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.apply-terms {
    font-size: 0.78rem;
    color: var(--text-muted, #888);
    line-height: 1.5;
}

/* ── Alert messages ── */
.apply-alert {
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.apply-alert.error {
    background: rgba(255,80,80,0.1);
    border: 1px solid rgba(255,80,80,0.3);
    color: #ff9090;
}

/* ── Success state ── */
.apply-success {
    text-align: center;
    padding: 3rem 2rem;
}
.apply-success-icon {
    width: 72px;
    height: 72px;
    background: rgba(0,204,102,0.12);
    border: 2px solid rgba(0,204,102,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}
.apply-success h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.6rem;
    font-weight: 900;
    color: #00cc66;
    margin-bottom: 0.75rem;
}
.apply-success p {
    color: rgba(255, 255, 255, 0.5);
    max-width: 420px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .apply-card { padding: 1.5rem 1rem; }
    .apply-submit-row { flex-direction: column; align-items: center; }
}
    