@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- General Reset & Typography --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f9fafb;
    color: #1a1a1a;
    line-height: 1.6;
}

:root {
    --primary-green: #15803d; 
    --light-green-bg: #f0fdf4;
    --text-dark: #111827;
    --text-muted: #6b7280;
    --border-light: #e5e7eb;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    --danger-red: #dc2626;
}

/* --- Application Container --- */
.app-container {
    max-width: 1440px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    box-shadow: 0 0 20px rgba(0,0,0,0.02);
}

/* --- Header --- */
header {
    padding: 1.25rem 2.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-brand i {
    color: var(--primary-green);
    font-size: 1.8rem;
}

.header-brand-text h1 {
    font-size: 1.25rem;
    color: var(--primary-green);
    margin: 0;
    line-height: 1.2;
}

.header-brand-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.notification {
    position: relative;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.notification .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--primary-green);
    color: white;
    font-size: 0.6rem;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.profile-dropdown {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.profile-dropdown img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-details {
    display: flex;
    flex-direction: column;
}

.profile-details strong {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.profile-details span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chevron-down-icon {
    font-size: 0.8rem; 
    color: #6b7280;
}

/* --- Main Layout --- */
.main-wrapper {
    display: flex;
    flex: 1;
}

/* --- Sidebar (Left Side) --- */
.sidebar {
    width: 320px;
    padding: 2.5rem 2rem;
    border-right: 1px solid var(--border-light);
    background-color: #fafbfc;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.sidebar-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.feature-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list i {
    color: var(--primary-green);
    font-size: 1rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.progress-header span:last-child { color: var(--primary-green); }

.progress-bar-container {
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary-green);
    width: 40%;
}

.progress-percentage {
    text-align: right;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 2.5rem;
}

.stepper {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.stepper::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 15px;
    bottom: 25px;
    width: 2px;
    background-color: var(--border-light);
    z-index: 0;
}

.step-link {
    text-decoration: none;
    color: inherit;
    display: block;
    z-index: 1;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.step:hover {
    opacity: 0.8;
    transform: translateX(2px);
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f3f4f6;
    border: 2px solid #e5e7eb;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 2px;
    transition: all 0.2s ease;
}

.step-check-icon {
    font-size: 0.7rem;
}

.step.completed .step-number {
    background-color: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
}

.step.active .step-number {
    background-color: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
}

.step-details h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0 0 2px 0;
    transition: color 0.2s ease;
}

.step.active .step-details h4 {
    color: var(--primary-green);
}

.step-details p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.help-card {
    background-color: var(--light-green-bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.help-card h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.help-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.btn-help {
    background: #fff;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s ease;
}

.btn-help:hover {
    background: var(--light-green-bg);
}

/* --- Main Content Area (Right Side) --- */
.content-area {
    flex: 1;
    padding: 2.5rem 3.5rem;
}

.page-header {
    margin-bottom: 2.5rem;
}

.step-indicator {
    font-size: 0.9rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.page-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* --- Premium Cards --- */
.premium-card {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--card-shadow);
}

.card-title-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 2rem;
}

.card-title-bar-compact {
    margin-bottom: 5px;
}

.card-title-bar i {
    font-size: 1.2rem;
    color: var(--primary-green);
    background-color: var(--light-green-bg);
    padding: 10px;
    border-radius: 50%;
}

.card-title-bar h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
}

.subtitle-text {
    font-size: 0.95rem; 
    color: var(--text-muted); 
    margin-bottom: 2rem; 
    margin-left: 3rem;
}

/* Form Inputs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pos-relative {
    position: relative;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.sub-label {
    font-weight: normal; 
    color: var(--text-muted); 
    font-size: 0.85rem;
}

.req { color: var(--danger-red); }

.form-input {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: #fff;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

.form-input:focus {
    border-color: var(--primary-green);
}

.form-input:disabled, .form-input[readonly] {
    background-color: #f9fafb;
    color: var(--text-muted);
    cursor: not-allowed;
    border-color: var(--border-light);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.calendar-icon {
    position: absolute; 
    right: 14px; 
    top: 40px; 
    color: #6b7280;
}

/* --- Grid Layouts --- */

/* 1. Personal Info */
.personal-info-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

/* 2. Address Layout */
.address-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 0.5rem;
}

.address-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-green);
}

.address-row {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.address-row-1 { grid-template-columns: repeat(3, 1fr); }
.address-row-2 { grid-template-columns: repeat(4, 1fr); margin-bottom: 0; }

.disabled-section .form-input {
    background-color: #f3f4f6;
    color: #9ca3af;
}
.disabled-section label {
    color: #9ca3af;
}

/* Checkbox & Radio */
.radio-options {
    display: flex;
    gap: 2rem;
    align-items: center;
    height: 45px; 
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #4b5563;
    cursor: pointer;
}

.checkbox-label-override {
    height: auto; 
    font-size: 0.95rem; 
    color: #1f2937;
}

.radio-label input {
    accent-color: var(--primary-green);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 3. Job Preferences Grid */
.job-pref-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.job-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem; 
}

/* Custom Tag Input */
.tag-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background-color: #fff;
    min-height: 45px;
    position: relative;
}

.tag-pill {
    background-color: var(--light-green-bg);
    color: var(--primary-green);
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #c3e6cb;
}

.tag-pill i { font-size: 0.8rem; cursor: pointer; }
.tag-chevron { position: absolute; right: 14px; color: var(--text-muted); font-size: 0.9rem; }

/* Combined Input (CTC) */
.input-group { display: flex; }
.input-group select {
    width: 120px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    background-color: #f9fafb;
}
.input-group input {
    flex: 1;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Info Callout */
.info-callout {
    background-color: var(--light-green-bg);
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

/* --- Footer --- */
footer {
    padding: 1.5rem 3.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
}

.btn-action {
    padding: 0.8rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.2s;
}

.btn-action:hover {
    opacity: 0.9;
}

.btn-back {
    background: #fff;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
}

.btn-save {
    background-color: var(--primary-green);
    border: none;
    color: #fff;
}