/* ==========================================================================
   Applicant / Careers Portal - shared styles
   Reuses the same --brand-primary / --brand-dark tokens as frontend.css
   (injected by layout/brand-colors-style.blade.php), light background
   throughout per the reference design.
   ========================================================================== */

body.applicant-body {
    background: #f4f5f7;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2a2f34;
}

/* ---------------- top bar ---------------- */

.applicant-topbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.applicant-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.applicant-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2a2f34;
}

.applicant-brand:hover {
    color: #2a2f34;
    text-decoration: none;
}

.applicant-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--brand-primary, #dc3545);
    color: #fff;
    font-weight: 700;
}

.applicant-brand-text {
    font-weight: 700;
    font-size: 1.05rem;
}

.applicant-topbar-user {
    display: flex;
    align-items: center;
    gap: 22px;
}

.applicant-user-name {
    font-weight: 600;
    font-size: .92rem;
    color: #2a2f34;
}

.applicant-user-name i {
    color: var(--brand-primary, #dc3545);
    margin-right: 4px;
}

.applicant-topbar-link {
    font-size: .88rem;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.applicant-topbar-link:hover {
    color: var(--brand-primary, #dc3545);
    text-decoration: none;
}

.applicant-logout-btn i {
    margin-right: 4px;
}

.applicant-main {
    min-height: calc(100vh - 68px);
    padding: 48px 0;
}

/* ---------------- auth forms (login / register / forgot / reset) ---------------- */

.applicant-auth-wrap {
    max-width: 440px;
    margin: 0 auto;
    padding: 0 20px;
}

.applicant-auth-card {
    background: #fff;
    border: 1px solid #edeef1;
    border-radius: 12px;
    padding: 40px 36px;
    box-shadow: 0 2px 10px rgba(17, 24, 39, .04);
}

.applicant-auth-title {
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 6px;
    text-align: center;
}

.applicant-auth-subtitle {
    color: #6b7280;
    text-align: center;
    margin-bottom: 28px;
    font-size: .92rem;
}

.applicant-auth-card .form-group label {
    font-weight: 600;
    font-size: .85rem;
    color: #2a2f34;
    margin-bottom: 6px;
}

.applicant-auth-card .form-control {
    border-radius: 8px;
    padding: 10px 14px;
    height: auto;
    border-color: #dde1e6;
}

.applicant-auth-card .form-control:focus {
    border-color: var(--brand-primary, #dc3545);
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb, 220, 53, 69), .15);
}

.applicant-auth-card .btn-block {
    border-radius: 8px;
    padding: 11px;
    font-weight: 600;
}

.applicant-auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: .9rem;
    color: #6b7280;
}

.applicant-auth-footer a {
    color: var(--brand-primary, #dc3545);
    font-weight: 600;
}

.applicant-auth-forgot {
    display: block;
    text-align: right;
    font-size: .85rem;
    margin-bottom: 18px;
    color: #6b7280;
}

.applicant-auth-forgot:hover {
    color: var(--brand-primary, #dc3545);
}

/* ---------------- dashboard ---------------- */

.applicant-dashboard-heading {
    font-weight: 700;
    margin-bottom: 24px;
}

.applicant-application-card {
    background: #fff;
    border: 1px solid #edeef1;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.applicant-application-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.applicant-interview-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #edeef1;
    font-size: .88rem;
    color: #4b5563;
}

.applicant-interview-details-title {
    font-weight: 700;
    color: #2a2f34;
    margin-bottom: 8px;
}

.applicant-interview-details > div {
    margin-bottom: 4px;
}

.applicant-application-job {
    font-weight: 700;
    margin-bottom: 4px;
}

.applicant-application-date {
    color: #9aa0a6;
    font-size: .85rem;
}

.applicant-status-badge {
    display: inline-flex;
    align-items: center;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 6px 14px;
    border-radius: 999px;
}

.applicant-status-applied { background: rgba(107, 114, 128, .12); color: #4b5563; }
.applicant-status-under_review { background: rgba(59, 130, 246, .12); color: #2563eb; }
.applicant-status-shortlisted { background: rgba(168, 85, 247, .12); color: #7e22ce; }
.applicant-status-interview_scheduled { background: rgba(234, 179, 8, .15); color: #a16207; }
.applicant-status-hired { background: rgba(34, 197, 94, .15); color: #15803d; }
.applicant-status-rejected { background: rgba(var(--brand-primary-rgb, 220, 53, 69), .12); color: var(--brand-primary, #dc3545); }

.applicant-empty-state {
    background: #fff;
    border: 1px dashed #dde1e6;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    color: #6b7280;
}

/* ---------------- application wizard ---------------- */

.applicant-wizard {
    max-width: 720px;
}

.applicant-wizard-progress {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 36px;
}

.applicant-wizard-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
    text-align: center;
}

.applicant-wizard-step-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #dde1e6;
    color: #9aa0a6;
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 8px;
    text-decoration: none;
}

a.applicant-wizard-step-circle:hover {
    text-decoration: none;
    border-color: var(--brand-primary, #dc3545);
    color: var(--brand-primary, #dc3545);
}

.applicant-wizard-step-label {
    font-size: .78rem;
    font-weight: 600;
    color: #9aa0a6;
}

.applicant-wizard-step-item.is-completed .applicant-wizard-step-circle {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.applicant-wizard-step-item.is-completed .applicant-wizard-step-label {
    color: #2a2f34;
}

.applicant-wizard-step-item.is-current .applicant-wizard-step-circle {
    background: var(--brand-primary, #dc3545);
    border-color: var(--brand-primary, #dc3545);
    color: #fff;
}

.applicant-wizard-step-item.is-current .applicant-wizard-step-label {
    color: var(--brand-primary, #dc3545);
}

.applicant-wizard-connector {
    flex: 1;
    height: 0;
    border-top: 2px dotted #dde1e6;
    margin-top: 20px;
    max-width: 60px;
}

.applicant-wizard-connector.is-completed {
    border-top-color: #22c55e;
}

/* mobile progress - collapses to "Step X of Y" + thin bar below ~576px */

.applicant-wizard-progress-mobile {
    display: none;
    margin-bottom: 28px;
}

.applicant-wizard-progress-mobile-label {
    font-size: .85rem;
    font-weight: 600;
    color: #2a2f34;
    margin-bottom: 8px;
}

.applicant-wizard-progress-mobile-bar {
    background: #e5e7eb;
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
}

.applicant-wizard-progress-mobile-bar-fill {
    background: var(--brand-primary, #dc3545);
    height: 100%;
    border-radius: 999px;
    transition: width .2s ease;
}

@media (max-width: 576px) {
    .applicant-wizard-progress-desktop {
        display: none;
    }
    .applicant-wizard-progress-mobile {
        display: block;
    }
}

.applicant-card {
    background: #fff;
    border: 1px solid #edeef1;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(17, 24, 39, .04);
    overflow: hidden;
}

.applicant-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 28px;
    background: #f9fafb;
    border-bottom: 1px solid #edeef1;
    font-weight: 700;
    font-size: 1.05rem;
}

.applicant-card-header i {
    color: var(--brand-primary, #dc3545);
}

.applicant-card-body {
    padding: 28px;
}

.applicant-wizard-note {
    background: rgba(var(--brand-primary-rgb, 220, 53, 69), .06);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: .85rem;
    color: #6b7280;
    margin-bottom: 24px;
}

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

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

.applicant-card-body .form-group label {
    font-weight: 600;
    font-size: .85rem;
    color: #2a2f34;
    margin-bottom: 6px;
}

.applicant-card-body .form-control,
.applicant-card-body .form-control-file {
    border-radius: 8px;
    padding: 10px 14px;
    height: auto;
    border-color: #dde1e6;
}

.applicant-card-body .form-control:focus {
    border-color: var(--brand-primary, #dc3545);
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb, 220, 53, 69), .15);
}

.applicant-field-hint {
    display: block;
    color: #9aa0a6;
    margin-top: 4px;
}

.applicant-checkbox-row {
    margin-bottom: 20px;
}

.applicant-checkbox-row label {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.applicant-checkbox-row-inline {
    align-items: flex-end;
    display: flex;
}

.applicant-wizard-actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.applicant-wizard-actions .btn {
    border-radius: 8px;
    padding: 11px 28px;
    font-weight: 600;
}

/* repeatable Employment History cards */

#applicant-employment-repeater.is-hidden {
    display: none;
}

.applicant-repeater-item {
    position: relative;
    background: #f9fafb;
    border: 1px solid #edeef1;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 18px;
}

.applicant-repeater-remove-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #9aa0a6;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.applicant-repeater-remove-btn:hover {
    color: var(--brand-primary, #dc3545);
}

.applicant-repeater-add-btn {
    background: none;
    border: 1px dashed #dde1e6;
    border-radius: 8px;
    padding: 10px 18px;
    color: var(--brand-primary, #dc3545);
    font-weight: 600;
    font-size: .88rem;
    width: 100%;
    margin-top: 4px;
}

.applicant-repeater-add-btn:hover {
    border-color: var(--brand-primary, #dc3545);
    background: rgba(var(--brand-primary-rgb, 220, 53, 69), .04);
}

/* review step */

.applicant-review-section {
    border-bottom: 1px solid #edeef1;
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.applicant-review-section:last-of-type {
    border-bottom: none;
}

.applicant-review-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.applicant-review-section-header h5 {
    font-weight: 700;
    font-size: .95rem;
    margin: 0;
}

.applicant-review-edit-link {
    font-size: .82rem;
    font-weight: 600;
    color: var(--brand-primary, #dc3545);
}

.applicant-review-table {
    width: 100%;
}

.applicant-review-table td {
    padding: 4px 0;
    font-size: .9rem;
}

.applicant-review-table td:first-child {
    color: #9aa0a6;
    width: 40%;
}

.applicant-review-history-item {
    margin-bottom: 10px;
}

.applicant-consent-row {
    background: #f9fafb;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 8px;
}

.applicant-consent-row label {
    font-size: .88rem;
    font-weight: 500;
}

/* confirmation screen */

.applicant-confirmation-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(34, 197, 94, .12);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.applicant-confirmation-reference {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    margin: 20px 0;
}

.applicant-confirmation-reference-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-primary, #dc3545);
    letter-spacing: .05em;
}

/* resume step */

.applicant-resume-existing {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f9fafb;
    border: 1px solid #edeef1;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.applicant-resume-existing > i {
    font-size: 1.4rem;
    color: var(--brand-primary, #dc3545);
}

.applicant-resume-existing-info {
    flex: 1;
    min-width: 140px;
}

.applicant-resume-existing-name {
    font-weight: 600;
}

.applicant-resume-existing-size {
    font-size: .82rem;
    color: #9aa0a6;
}

.applicant-resume-existing-actions {
    display: flex;
    gap: 8px;
}

.applicant-resume-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 6px;
    border: 1px solid #dde1e6;
    background: #fff;
    font-size: .82rem;
    font-weight: 600;
    color: #2a2f34;
}

.applicant-resume-action-btn:hover {
    border-color: var(--brand-primary, #dc3545);
    color: var(--brand-primary, #dc3545);
    text-decoration: none;
}

/* flash messages */

.applicant-flash-alert {
    border-radius: 8px;
    margin-bottom: 24px;
}

/* profile page - tabs */

.applicant-profile-page {
    max-width: 780px;
}

.applicant-profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.applicant-profile-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #edeef1;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: .88rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
}

.applicant-profile-tab:hover {
    color: var(--brand-primary, #dc3545);
}

.applicant-profile-tab.is-active {
    background: var(--brand-primary, #dc3545);
    border-color: var(--brand-primary, #dc3545);
    color: #fff;
}

.applicant-profile-tab-panel {
    display: none;
}

.applicant-profile-tab-panel.is-active {
    display: block;
}
