:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 640px; }

/* ── Navbar ── */
.navbar {
    background: var(--text);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { color: #fff; font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.nav-logo:hover { text-decoration: none; color: #fff; }
.logo-icon { font-size: 1.5rem; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: #cbd5e1; font-size: 0.9rem; }
.nav-links a:hover { color: #fff; text-decoration: none; }

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero-sub { font-size: 1.2rem; opacity: 0.9; max-width: 600px; margin: 0 auto 2rem; }
.hero-join { background: linear-gradient(135deg, #059669 0%, #047857 100%); }

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-lg { padding: 0.75rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.25rem 0.75rem; font-size: 0.8rem; }
.btn-full { width: 100%; }

/* ── Sections ── */
section { padding: 4rem 0; }
section h2 { font-size: 1.75rem; text-align: center; margin-bottom: 2.5rem; }
.bg-alt { background: var(--bg-alt); }

/* ── Service Grid ── */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.2s;
    color: var(--text);
}
.service-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); text-decoration: none; transform: translateY(-2px); }
.service-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.service-card h3 { font-size: 0.9rem; }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.step { text-align: center; }
.step-num {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--text-light); font-size: 0.95rem; }

/* ── How it works ── */
.how-it-works { background: var(--bg-alt); }

/* ── CTA ── */
.cta { background: var(--text); color: #fff; text-align: center; }
.cta h2, .cta p { color: #fff; }
.cta p { opacity: 0.85; margin-bottom: 2rem; }

/* ── Benefits Grid ── */
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.benefit-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
}
.benefit-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.benefit-card h3 { margin-bottom: 0.5rem; }
.benefit-card p { color: var(--text-light); font-size: 0.9rem; }

/* ── Check List ── */
.check-list { list-style: none; }
.check-list li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
    font-size: 1.05rem;
}
.check-list li::before {
    content: '\2713';
    position: absolute; left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ── Who We Want ── */
.who-we-want { background: var(--bg-alt); }

/* ── Forms ── */
.form-page { padding: 3rem 0; }
.form-intro { color: var(--text-light); margin-bottom: 2rem; }

.job-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-weight: 600; font-size: 0.9rem; }
.form-group small { color: var(--text-light); font-size: 0.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], input[type="password"], select, textarea {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    width: 100%;
    transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
textarea { resize: vertical; }
input[type="file"] { font-size: 0.9rem; }

.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.5rem; }
.checkbox-item {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.9rem; font-weight: 400; cursor: pointer;
}
.checkbox-item input { width: auto; }

hr { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }

/* ── Success / Error Boxes ── */
.success-box { text-align: center; padding: 2rem 0; }
.success-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--success); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2rem; margin-bottom: 1.5rem;
}
.error-box {
    background: #fef2f2; border: 1px solid #fecaca;
    color: var(--danger); padding: 0.75rem 1rem;
    border-radius: var(--radius); margin-bottom: 1rem;
}

/* ── Detail Cards ── */
.detail-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.detail-card h3 { margin-bottom: 1rem; font-size: 1rem; }
.detail-row {
    display: flex; justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--text-light); font-size: 0.85rem; white-space: nowrap; min-width: 100px; }

.muted { color: var(--text-light); font-size: 0.9rem; }

/* ── Quote Box ── */
.quote-box {
    background: var(--primary-light);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}
.quote-box h2 { font-size: 2.5rem; color: var(--primary-dark); margin-bottom: 0.5rem; }

/* ── Status Boxes ── */
.status-box {
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
}
.status-pending { background: #fef9c3; border: 1px solid #fde047; }
.status-accepted { background: #dbeafe; border: 1px solid #93c5fd; }
.status-scheduled { background: #ede9fe; border: 1px solid #c4b5fd; }
.status-progress { background: #ffedd5; border: 1px solid #fdba74; }
.status-complete { background: #dcfce7; border: 1px solid #86efac; }

/* ── Feedback ── */
.feedback-buttons { display: flex; gap: 1rem; }
.feedback-option { cursor: pointer; }
.feedback-option input { display: none; }
.feedback-label {
    display: inline-block; padding: 1rem 2rem;
    border: 2px solid var(--border); border-radius: var(--radius);
    font-size: 1.2rem; transition: all 0.2s;
}
.feedback-option input:checked + .feedback-label.positive { border-color: var(--success); background: #dcfce7; }
.feedback-option input:checked + .feedback-label.negative { border-color: var(--danger); background: #fef2f2; }

/* ── Admin ── */
.admin-header {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}
.admin-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.admin-nav h2 { font-size: 1.1rem; }
.admin-nav h2 a { color: var(--text-light); }
.admin-links { display: flex; gap: 1.5rem; }
.admin-links a { color: var(--text-light); font-size: 0.9rem; font-weight: 500; }
.admin-links a.active { color: var(--primary); }
.admin-links a:hover { color: var(--primary); text-decoration: none; }
.logout-link { color: var(--danger) !important; }

.admin-content { padding: 2rem 0; }

/* ── Stats ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}
.stat-num { font-size: 2rem; font-weight: 700; }
.stat-label { font-size: 0.8rem; color: var(--text-light); margin-top: 0.25rem; }
.stat-urgent .stat-num { color: var(--danger); }
.stat-warning .stat-num { color: var(--warning); }
.stat-info .stat-num { color: var(--primary); }
.stat-success .stat-num { color: var(--success); }

/* ── Filter Bar ── */
.filter-bar { margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.filter-tag {
    padding: 0.25rem 0.75rem; border: 1px solid var(--border);
    border-radius: 20px; font-size: 0.8rem; color: var(--text-light);
}
.filter-tag:hover, .filter-tag.active { background: var(--primary-light); color: var(--primary); border-color: var(--primary); text-decoration: none; }

/* ── Data Table ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left; padding: 0.75rem; font-size: 0.8rem;
    color: var(--text-light); border-bottom: 2px solid var(--border);
    text-transform: uppercase; letter-spacing: 0.05em;
}
.data-table td { padding: 0.75rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.data-table tr:hover td { background: var(--bg-alt); }
.empty-state { text-align: center; color: var(--text-light); padding: 2rem !important; }

/* ── Status Badges ── */
.status-badge {
    display: inline-block; padding: 0.2rem 0.6rem;
    border-radius: 20px; font-size: 0.75rem;
    color: #fff; font-weight: 600; text-transform: capitalize;
}
.badge-green { background: var(--success); }
.badge-blue { background: var(--primary); }
.badge-red { background: var(--danger); }
.badge-grey { background: var(--text-light); }

/* ── Skill Tags ── */
.skill-tag {
    display: inline-block; padding: 0.15rem 0.5rem;
    background: var(--primary-light); color: var(--primary-dark);
    border-radius: 4px; font-size: 0.75rem; margin: 0.1rem;
}

/* ── Action Buttons ── */
.action-buttons { display: flex; gap: 0.25rem; flex-wrap: wrap; }

/* ── Job Detail Grid ── */
.job-detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; }
.sidebar-form .form-group { margin-bottom: 0.75rem; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.5rem; }
.photo-grid img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius); }

.copy-input {
    width: 100%; font-size: 0.8rem; padding: 0.4rem;
    background: var(--bg-alt); cursor: pointer;
}

/* ── Footer ── */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.75rem; }
    .form-row { grid-template-columns: 1fr; }
    .job-detail-grid { grid-template-columns: 1fr; }
    .nav-links { gap: 0.75rem; }
    .nav-links a { font-size: 0.8rem; }
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
    .admin-nav { flex-direction: column; align-items: flex-start; }
    .data-table { font-size: 0.8rem; }
    .data-table th, .data-table td { padding: 0.5rem; }
}
