/* ══════════════════════════════════════════════════════════
   Job Apply Page  —  prefix: apply-
   ══════════════════════════════════════════════════════════ */

.apply-page {
    background: #f5f4f9;
}

/* ── Hero ──────────────────────────────────────────────────── */
.apply-hero {
    background: linear-gradient(135deg, #07050d 0%, #1a0a2e 50%, #2a0a3e 100%);
    padding: 140px 6% 64px;
    text-align: center;
}

.apply-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 28px;
    transition: color 0.2s;
}
.apply-back:hover { color: #a78bfa; }

.apply-hero-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    margin: 12px 0 20px;
    line-height: 1.2;
}

.apply-accent { color: #a78bfa; }

.apply-job-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
}
.apply-job-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Body ──────────────────────────────────────────────────── */
.apply-body {
    padding: 72px 6% 100px;
}

.apply-body-inner {
    max-width: 760px;
    margin: 0 auto;
}

/* ── Form wrap ─────────────────────────────────────────────── */
.apply-form-wrap {
    background: #fff;
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 8px 40px rgba(118, 28, 130, 0.08);
}

.apply-form-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: #1a0a2e;
    margin-bottom: 8px;
}

.apply-form-sub {
    font-size: 0.88rem;
    color: #7a6a8a;
    margin-bottom: 32px;
}

.apply-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #3a2a4a;
    letter-spacing: 0.3px;
}

.req { color: #761c82; }

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid #e2d9f3;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #2a1a3e;
    background: #faf9fd;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #7c4dff;
    box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.1);
}

.field-error {
    font-size: 0.78rem;
    color: #e53e3e;
}

/* ── CV Upload ─────────────────────────────────────────────── */
.cv-upload-wrap {
    position: relative;
}

.cv-upload-wrap input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.cv-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 24px;
    border: 2px dashed #c4b5f4;
    border-radius: 12px;
    background: #faf8ff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
    pointer-events: none;
}

.cv-upload-wrap:hover .cv-upload-label,
.cv-upload-wrap.has-file .cv-upload-label {
    border-color: #7c4dff;
    background: #f3efff;
}

.cv-upload-label i {
    font-size: 2rem;
    color: #7c4dff;
}

.cv-upload-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #3a2a4a;
}

.cv-upload-hint {
    font-size: 0.78rem;
    color: #9a8aaa;
}

.cv-file-name {
    display: block;
    margin-top: 8px;
    font-size: 0.82rem;
    color: #7c4dff;
    font-weight: 500;
    text-align: center;
    min-height: 18px;
}

/* ── Submit ────────────────────────────────────────────────── */
.apply-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #7c4dff, #5b21b6);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    align-self: flex-start;
}
.apply-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ── Success ───────────────────────────────────────────────── */
.apply-success {
    background: #fff;
    border-radius: 20px;
    padding: 64px 48px;
    box-shadow: 0 8px 40px rgba(118, 28, 130, 0.08);
    text-align: center;
}

.apply-success-icon {
    font-size: 3.5rem;
    color: #22c55e;
    margin-bottom: 20px;
}

.apply-success h2 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a0a2e;
    margin-bottom: 16px;
}

.apply-success p {
    font-size: 0.98rem;
    color: #5a4a6e;
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto 36px;
}

.apply-success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.apply-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: linear-gradient(135deg, #7c4dff, #5b21b6);
    color: #fff;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}
.apply-btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.apply-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border: 1.5px solid #c4b5f4;
    color: #7c4dff;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.apply-btn-ghost:hover { background: #f3efff; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
    .apply-form-wrap,
    .apply-success { padding: 32px 24px; }

    .form-row { grid-template-columns: 1fr; }

    .apply-hero-title { font-size: 2rem; }

    .apply-submit { width: 100%; }
}
