/* ===================================================
   NIK Recruitment Form – Frontend CSS
   =================================================== */

:root {
    --nik-primary   : #1a56a0;
    --nik-secondary : #0ea5e9;
    --nik-success   : #16a34a;
    --nik-danger    : #dc2626;
    --nik-bg        : #f8fafc;
    --nik-border    : #e2e8f0;
    --nik-text      : #1e293b;
    --nik-muted     : #64748b;
    --nik-radius    : 10px;
}

/* Wrap */
.nik-recruit-wrap {
    max-width: 760px;
    margin: 32px auto;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--nik-text);
}

.nik-recruit-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--nik-primary);
    margin: 0 0 6px;
}

.nik-recruit-subtitle {
    color: var(--nik-muted);
    margin: 0 0 24px;
    font-size: 0.95rem;
}

/* Alert */
.nik-recruit-alert {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: var(--nik-danger);
    padding: 14px 18px;
    border-radius: var(--nik-radius);
    margin-bottom: 20px;
    font-size: 0.92rem;
    line-height: 1.7;
}

/* Field group */
.nik-field-group {
    margin-bottom: 20px;
}

.nik-field-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--nik-text);
    margin-bottom: 6px;
}

.nik-field-group label small {
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: none;
    color: var(--nik-muted);
    margin-left: 6px;
    letter-spacing: 0;
}

.nik-field-group .req {
    color: var(--nik-danger);
}

.nik-field-group input[type="text"],
.nik-field-group input[type="tel"],
.nik-field-group select,
.nik-field-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1.5px solid var(--nik-border);
    border-radius: var(--nik-radius);
    font-size: 0.97rem;
    font-family: inherit;
    background: #fff;
    color: var(--nik-text);
    transition: border-color 0.2s;
    outline: none;
}

.nik-field-group input:focus,
.nik-field-group select:focus,
.nik-field-group textarea:focus {
    border-color: var(--nik-secondary);
    box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}

.nik-field-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Word counter */
.word-counter {
    text-align: right;
    font-size: 0.82rem;
    color: var(--nik-muted);
    margin-top: 4px;
}

.word-counter.warn { color: #d97706; }
.word-counter.ok   { color: var(--nik-success); }

/* File hint */
.nik-file-hint {
    font-size: 0.85rem;
    color: var(--nik-muted);
    margin: 0 0 10px;
    line-height: 1.6;
}

/* Dropzone */
.nik-dropzone {
    border: 2.5px dashed var(--nik-border);
    border-radius: var(--nik-radius);
    background: var(--nik-bg);
    padding: 32px 20px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}

.nik-dropzone.drag-over {
    border-color: var(--nik-secondary);
    background: #eff6ff;
}

.nik-dropzone-icon {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.nik-dropzone p {
    margin: 0 0 12px;
    color: var(--nik-muted);
    font-size: 0.93rem;
}

.nik-btn-choose {
    display: inline-block;
    padding: 8px 22px;
    background: var(--nik-primary);
    color: #fff;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.nik-btn-choose:hover {
    background: #1344820;
}

/* File list */
.nik-file-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.nik-file-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 6px;
    font-size: 0.88rem;
}

.nik-file-list .file-icon { font-size: 1.2rem; }

.nik-file-list .file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nik-file-list .file-size {
    color: var(--nik-muted);
    font-size: 0.8rem;
}

.nik-file-list .file-remove {
    cursor: pointer;
    color: var(--nik-danger);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
    border: none;
    background: transparent;
    padding: 0 4px;
}

/* Submit */
.nik-submit-wrap {
    margin-top: 28px;
}

.nik-btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--nik-primary);
    color: #fff;
    border: none;
    border-radius: var(--nik-radius);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
}

.nik-btn-submit:hover { background: #164e9a; }
.nik-btn-submit:active { transform: scale(0.99); }
.nik-btn-submit:disabled { background: #94a3b8; cursor: not-allowed; }

/* Success */
.nik-success-msg {
    text-align: center;
    padding: 60px 20px;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: var(--nik-radius);
}

.nik-success-msg .success-icon { font-size: 3.5rem; margin-bottom: 12px; }
.nik-success-msg h3 { color: var(--nik-success); font-size: 1.5rem; margin: 0 0 10px; }
.nik-success-msg p  { color: var(--nik-muted); font-size: 0.97rem; }

/* Responsive */
@media (max-width: 600px) {
    .nik-recruit-wrap { margin: 16px; }
    .nik-recruit-title { font-size: 1.4rem; }
}
