/* Employment / Careers Page Styles */

/* ── Toast notification ──────────────────────────────── */
.emp-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #e53e3e;
    color: #fff;
    padding: .75rem 1.4rem;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 500;
    box-shadow: 0 4px 18px rgba(0,0,0,.18);
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
}
.emp-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.employment-main {
    padding: 4rem 0 5rem;
    background-color: #f8fafc;
}

/* ── Intro block ─────────────────────────────────────── */
.employment-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.employment-intro h2 {
    color: #1e3a8a;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.employment-intro p {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.8;
}

/* ── Perks grid ──────────────────────────────────────── */
.perks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 960px;
    margin: 0 auto 3.5rem;
}

@media (max-width: 820px) {
    .perks-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .perks-grid { grid-template-columns: 1fr; }
}

.perk-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.perk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.1);
}

.perk-icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.perk-card h3 {
    color: #1e3a8a;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.perk-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ── Form card ───────────────────────────────────────── */
.employment-form-card {
    max-width: 720px;
    margin: 0 auto 4rem;
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.employment-form-card h2 {
    color: #1e3a8a;
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.form-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.required-star {
    color: #dc2626;
    font-weight: 700;
}

.field-optional {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 400;
}

/* ── Form groups ─────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.4rem;
}

.form-group label {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    color: #1e293b;
    background-color: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
    background-color: #fff;
}

.form-group input.invalid,
.form-group select.invalid {
    border-color: #dc2626;
}

/* Two-column name row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 540px) {
    .form-row { grid-template-columns: 1fr; }
}

/* Validation error messages */
.field-error {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    min-height: 1.1em;
}

/* ── File drop zone ──────────────────────────────────── */
.file-drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    position: relative;
}

.file-drop-zone:hover,
.file-drop-zone.drag-over {
    border-color: #1e3a8a;
    background: #eff6ff;
}

.file-drop-zone.has-file {
    border-color: #16a34a;
    background: #f0fdf4;
}

.file-drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.upload-icon {
    width: 32px;
    height: 32px;
    color: #94a3b8;
    margin: 0 auto 0.6rem;
    display: block;
}

.file-drop-zone.has-file .upload-icon {
    color: #16a34a;
}

.drop-zone-text {
    color: #475569;
    font-size: 0.95rem;
    margin: 0 0 0.75rem;
}

.file-choose-btn {
    display: inline-block;
    background: #1e3a8a;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.45rem 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.file-drop-zone:hover .file-choose-btn {
    background: #1e40af;
}

.drop-zone-hint {
    color: #94a3b8;
    font-size: 0.8rem;
    margin: 0.6rem 0 0;
}

.drop-zone-filename {
    margin: 0.75rem 0 0;
    color: #166534;
    font-size: 0.9rem;
    font-weight: 600;
    word-break: break-all;
}

/* ── Submit button ───────────────────────────────────── */
.form-actions {
    margin-top: 2rem;
}

.emp-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: #1e3a8a;
    color: #ffffff;
    border: none;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    width: 100%;
    justify-content: center;
}

.emp-submit-btn:hover:not(:disabled) {
    background-color: #1e40af;
}

.emp-submit-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.emp-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Spinner */
.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form-level message */
.form-message {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-message.success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ── What to Expect ──────────────────────────────────── */
.expect-section {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.expect-section h2 {
    color: #1e3a8a;
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
}

.expect-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.expect-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 200px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1e3a8a;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.step-content h3 {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.step-content p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.expect-connector {
    flex: 0 0 40px;
    height: 2px;
    background: linear-gradient(to right, #1e3a8a, #93c5fd);
    margin-top: 24px;
    border-radius: 1px;
}

/* ── Full Application toggle button ─────────────────── */
.full-app-toggle-wrap {
    margin: 1.5rem 0 0;
}

.full-app-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    color: #1e3a8a;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.7rem 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s, border-color 0.2s;
    text-align: left;
}

.full-app-toggle-btn:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.full-app-toggle-btn[aria-expanded="true"] {
    background: #dbeafe;
    border-color: #1e3a8a;
}

.toggle-plus {
    font-size: 1.25rem;
    line-height: 1;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.full-app-toggle-btn[aria-expanded="true"] .toggle-plus {
    transform: rotate(45deg);
}

/* ── Full Application section ────────────────────────── */
.full-application-section {
    margin-top: 1.5rem;
    padding-top: 0.5rem;
    border-top: 1.5px solid #e2e8f0;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.full-app-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.75rem 0 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748b;
}

.full-app-divider::before,
.full-app-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.full-app-divider:first-child {
    margin-top: 0;
}

/* Grid variants */
.form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-row-4col {
    grid-template-columns: repeat(4, 1fr);
}

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

@media (max-width: 700px) {
    .form-row-3,
    .form-row-4col,
    .form-row-2x2 {
        grid-template-columns: 1fr;
    }
}

/* Textarea */
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    color: #1e293b;
    background-color: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
}

.form-group textarea:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
    background-color: #fff;
}

/* Employer entry card */
.employer-entry {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.employer-entry-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e3a8a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

/* Education entry */
.edu-entry {
    margin-bottom: 0.5rem;
}

/* Certification text */
.full-app-cert-text {
    font-size: 0.9rem;
    color: #475569;
    font-style: italic;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

/* ── What to Expect ──────────────────────────────────── */
@media (max-width: 600px) {
    .expect-steps {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .expect-connector {
        width: 2px;
        height: 32px;
        margin: 0;
        background: linear-gradient(to bottom, #1e3a8a, #93c5fd);
    }

    .expect-step {
        max-width: 100%;
    }

    .employment-form-card {
        padding: 1.5rem 1rem;
    }
}
