/* ===========================================
   Form Nguyện Vọng Ứng Viên - Frontend Style
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ---- Base ---- */
.fnvuv-wrapper {
    max-width: 720px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
}

/* ---- Notice ---- */
.fnvuv-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
    border: 1px solid #fecdd3;
    border-left: 4px solid #e11d48;
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 28px;
    font-size: 14px;
    font-weight: 500;
    color: #9f1239;
    animation: fnvuv-fadeIn 0.5s ease;
}

.fnvuv-notice-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* ---- Title ---- */
.fnvuv-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 3px solid #1e3a5f;
    letter-spacing: 0.5px;
}

/* ---- Form Fields ---- */
.fnvuv-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fnvuv-field {
    margin-bottom: 24px;
}

.fnvuv-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    line-height: 1.5;
}

.fnvuv-required {
    color: #e11d48;
    font-weight: 700;
}

.fnvuv-highlight {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-color: #93c5fd;
    text-underline-offset: 2px;
}

.fnvuv-field input[type="text"],
.fnvuv-field input[type="date"],
.fnvuv-field textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #1e293b;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.fnvuv-field input[type="text"]:hover,
.fnvuv-field input[type="date"]:hover,
.fnvuv-field textarea:hover {
    border-color: #94a3b8;
    background: #fff;
}

.fnvuv-field input[type="text"]:focus,
.fnvuv-field input[type="date"]:focus,
.fnvuv-field textarea:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.fnvuv-field textarea {
    resize: vertical;
    min-height: 80px;
}

.fnvuv-field input.fnvuv-input-error,
.fnvuv-field textarea.fnvuv-input-error {
    border-color: #e11d48;
    background: #fff1f2;
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.08);
}

.fnvuv-error {
    color: #e11d48;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
    min-height: 0;
    transition: all 0.2s ease;
}

/* ---- Section Divider ---- */
.fnvuv-section-divider {
    margin: 12px 0 28px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
    border-radius: 12px;
    border-left: 4px solid #1e3a5f;
}

.fnvuv-section-desc {
    font-size: 14px;
    font-weight: 600;
    color: #1e3a5f;
    line-height: 1.7;
    margin: 0;
}

/* ---- Submit Button ---- */
.fnvuv-submit-wrapper {
    margin-top: 16px;
    text-align: center;
}

.fnvuv-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 48px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.fnvuv-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.fnvuv-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.fnvuv-submit-btn:hover::before {
    left: 100%;
}

.fnvuv-submit-btn:active {
    transform: translateY(0);
}

.fnvuv-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.fnvuv-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fnvuv-spin 0.7s linear infinite;
}

@keyframes fnvuv-spin {
    to { transform: rotate(360deg); }
}

/* ---- Success Message ---- */
.fnvuv-success {
    text-align: center;
    padding: 48px 32px;
    animation: fnvuv-slideUp 0.5s ease;
}

.fnvuv-success-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.fnvuv-success h3 {
    font-size: 24px;
    color: #059669;
    margin-bottom: 8px;
}

.fnvuv-success p {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 24px;
}

.fnvuv-new-form-btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #2563eb;
    background: #eff6ff;
    border: 2px solid #bfdbfe;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fnvuv-new-form-btn:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

/* ---- Animations ---- */
@keyframes fnvuv-fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fnvuv-slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .fnvuv-wrapper {
        margin: 20px auto;
        padding: 0 16px;
    }

    .fnvuv-title {
        font-size: 20px;
    }

    .fnvuv-field input[type="text"],
    .fnvuv-field input[type="date"],
    .fnvuv-field textarea {
        padding: 10px 14px;
        font-size: 14px;
    }

    .fnvuv-submit-btn {
        width: 100%;
        padding: 14px 24px;
    }
}
