@charset "utf-8";

/* ============================================================
   C&D CONSULTING — STYLESHEET
   Structure:
   1. CSS Variables (design tokens)
   2. Reset & base
   3. Typography
   4. Header & nav
   5. Hero / banner
   6. Home sections (JobFind, About, Cities, Latest Jobs)
   7. Listing cards (specs & entries)
   8. Detail pages (spec_details, entries_details)
   9. Forms (candidate upload, client upload, job applications)
  10. Admin (add_listings, tables)
  11. Login / Signup / OTP
  12. Footer
  13. Utilities
  14. Responsive breakpoints
   ============================================================ */


/* ── 1. CSS Variables ──────────────────────────────────────── */

:root {
    /* Brand colours */
    --color-primary:        #0055CC;   /* was #06F — deepened for WCAG AA */
    --color-primary-hover:  #0044AA;
    --color-primary-light:  #E8F0FC;
    --color-accent:         #E8320A;   /* was #F03 — "New" tag, danger */
    --color-success:        #1A7A3C;
    --color-success-bg:     #E6F4EC;
    --color-warn:           #CC0000;   /* was #F00 */

    /* Neutrals */
    --color-bg:             #F2F1EC;   /* was #CCC4 — warmer off-white */
    --color-surface:        #FFFFFF;
    --color-surface-alt:    #F7F6F2;
    --color-border:         #D4D2CA;   /* was #999 */
    --color-border-light:   #E8E6E0;

    /* Text */
    --color-text:           #1A1A18;   /* near-black */
    --color-text-secondary: #5A5955;
    --color-text-muted:     #888780;
    --color-text-on-dark:   #FFFFFF;

    /* Header */
    --color-header-bg:      #1C1C1A;   /* was #333 — richer dark */
    --color-header-link:    #F0EFE9;
    --color-header-link-hover: #FFFFFF;
    --color-nav-dropdown-bg: #2A2A28;

    /* Footer */
    --color-footer-bg:      #1C1C1A;

    /* Sizing */
    --header-height:        90px;
    --radius-sm:            4px;
    --radius-md:            8px;
    --radius-lg:            14px;
    --radius-xl:            22px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:  0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg:  0 8px 24px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);

    /* Transitions */
    --transition: 160ms ease;

    /* Font */
    --font-body: 'Carlito', 'Calibri', 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --line-height: 1.6;
}


/* ── 2. Reset & base ───────────────────────────────────────── */

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

body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote {
    margin: 0;
    padding: 0;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-primary);
}

ul {
    list-style: none;
}


/* ── 3. Typography ─────────────────────────────────────────── */

h1 { font-size: clamp(1.6rem, 4vw, 2.4rem);  font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 600; line-height: 1.3; }
h3 { font-size: clamp(1rem, 2.5vw, 1.25rem);  font-weight: 600; line-height: 1.4; }


/* ── 4. Header & nav ───────────────────────────────────────── */

header {
    background: var(--color-header-bg);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.HeadContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    height: 80px;
    width: auto;
}

/* Desktop nav */
nav { display: flex; align-items: center; }

nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
}

nav ul li a,
nav ul li > details > summary {
    color: var(--color-header-link);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    transition: background var(--transition), color var(--transition);
    cursor: pointer;
    list-style: none;
}

nav ul li a:hover,
nav ul li > details > summary:hover {
    background: rgba(255,255,255,.1);
    color: var(--color-header-link-hover);
}

/* Dropdown via <details> */
details {
    position: relative;
}

details summary {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-header-link);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    user-select: none;
    transition: background var(--transition);
}

details summary:hover {
    background: rgba(255,255,255,.1);
}

details summary::after {
    content: "▾";
    font-size: 0.75rem;
    opacity: 0.7;
}

details[open] summary::after {
    content: "▴";
}

details ul {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--color-nav-dropdown-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 190px;
    padding: 6px;
    flex-direction: column;
    gap: 2px;
    display: flex;
    z-index: 100;
}

details ul li a {
    display: block;
    padding: 9px 14px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    color: var(--color-header-link);
    text-decoration: none;
    transition: background var(--transition);
}

details ul li a:hover {
    background: rgba(255,255,255,.12);
    color: var(--color-header-link-hover);
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-header-link);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}


/* ── 5. Hero / banner ──────────────────────────────────────── */

.hero_pic {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.hero_pic img,
.banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Fallback background if image fails */
.hero_pic::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #1C2A4A 0%, #0055CC 100%);
    z-index: -1;
}


/* ── 6. Home sections ──────────────────────────────────────── */

/* JobFind */
.JobFind {
    padding: calc(var(--header-height) + 120px) 24px 80px;
    color: var(--color-text);
}

.JobFindText {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    padding: 10px 40px 10px 24px;
    background: var(--color-surface);
    width: fit-content;
    max-width: 70vw;
    margin: 0 0 10px -24px;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    text-align: right;
    color: var(--color-text);
}

.JobFindText2 {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 400;
    font-style: italic;
    padding: 8px 40px 8px 24px;
    background: var(--color-surface);
    width: fit-content;
    max-width: 60vw;
    margin: 0 0 40px -24px;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    text-align: right;
    color: var(--color-text-secondary);
}

.JobFindBackground {
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-xl);
    width: min(92%, 1100px);
    margin: 0 auto;
    padding: 20px 20px 1px;
    box-shadow: var(--shadow-lg);
}

.JobFindBackground h1 {
    font-size: 1.3rem;
    padding: 0 0 8px 4px;
}

/* About */
.about {
    background: var(--color-header-bg);
    padding: 60px 24px;
}

.AboutContainer {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    width: min(80%, 1100px);
    margin: 0 auto;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 32px;
    overflow: hidden;
}

.about p {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
    text-align: justify;
}

.AboutSidePic {
    flex: 1.2;
}

.SidePic {
    width: 100%;
    border-radius: var(--radius-lg);
    display: block;
}

/* Cities */
.cities {
    background: var(--color-surface);
    padding: 64px 32px;
}

.cities h1 {
    text-align: center;
    margin-bottom: 36px;
}

.cities_container {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cities_container a {
    flex: 1;
    min-width: 200px;
    height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: var(--color-text-on-dark);
    display: block;
}

.cities_container a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.city_pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease;
}

.cities_container a:hover .city_pic {
    transform: scale(1.04);
}

.num_listing {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,.65));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.num_listing h3 {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
}

.num_listing p {
    font-size: 0.85rem;
    color: rgba(255,255,255,.85);
}

/* Latest jobs */
.latest_jobs {
    background: var(--color-header-bg);
    padding: 64px 24px;
    color: var(--color-text-on-dark);
}

.latest_jobs h1 {
    text-align: center;
    margin-bottom: 36px;
    color: var(--color-text-on-dark);
}

/* Filler — removed from index.php but keeping rule harmless */
.filler { display: none; }


/* ── 7. Listing cards ──────────────────────────────────────── */

/* All Specs / All Entries page wrapper */
.listing_container {
    padding: calc(var(--header-height) + 40px) 24px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.listing_container h1 {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 8px;
}

.latest_listing {
    padding: 32px 0 20px;
}

.latest_listing h3 {
    text-align: center;
    margin-bottom: 12px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* Filter bar */
.show_filter {
    margin-bottom: 16px;
}

.filter form {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.filter input[type="text"],
.filter input[type="search"] {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-surface);
    transition: border-color var(--transition);
    flex: 1;
    min-width: 0;
}

.filter input[type="text"]:focus,
.filter input[type="search"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,85,204,.15);
}

.filter input[type="submit"] {
    padding: 8px 24px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.filter input[type="submit"]:hover {
    background: var(--color-primary-hover);
}

.filter input[type="submit"]:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Card grid */
.new_specs,
.new_entry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 16px;
}

/* Cards */
.spec_link,
.entry_link {
    background: var(--color-surface);
    text-decoration: none;
    color: var(--color-text);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.spec_link:hover,
.entry_link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: var(--color-surface-alt);
}

.spec_banner,
.entry_banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 0;
    gap: 8px;
}

.spec_heading,
.entry_heading {
    font-size: 1rem;
    font-weight: 600;
    padding: 0;
    line-height: 1.35;
    color: var(--color-text);
    flex: 1;
}

/* Tag pills */
.helps,
.entry_helps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 16px 16px;
}

.types,
.entry_types {
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    padding: 3px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    display: inline-block;
}

.new_tag {
    background: #FDECEA;
    color: var(--color-accent);
    border-radius: var(--radius-md);
    padding: 3px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-block;
}

/* Card footer with icons */
.assets_container {
    background: var(--color-surface-alt);
    border-top: 1px solid var(--color-border-light);
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.assets_container p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.asset {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.65;
    object-fit: contain;
}

/* View all button */
.view_list_button {
    text-align: center;
    margin: 32px auto;
}

.view_list_button a,
.jobs_link {
    display: inline-block;
    padding: 12px 32px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: background var(--transition), box-shadow var(--transition);
}

.view_list_button a:hover,
.jobs_link:hover {
    background: var(--color-surface-alt);
    box-shadow: var(--shadow-md);
}

.view_list_button a:focus-visible,
.jobs_link:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Admin delete/placed buttons on cards */
.deleter,
.placer {
    display: inline;
}

.placer + .deleter {
    margin-left: 6px;
}

.delete_button {
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 4px 10px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    transition: background var(--transition);
    flex-shrink: 0;
}

.delete_button:hover { background: #b5260a; }
.delete_button:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

.placed_button {
    color: #fff;
    border: none;
    padding: 4px 10px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    transition: filter var(--transition);
    flex-shrink: 0;
}

.placed_button:hover { filter: brightness(0.88); }
.placed_button:focus-visible { outline: 3px solid #888; outline-offset: 2px; }


/* ── 8. Detail pages ───────────────────────────────────────── */

.spec_details_container {
    padding: calc(var(--header-height) + 40px) clamp(16px, 6vw, 120px) 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.deets_head {
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.left_deet { flex: 1; }

.deets_head h1 {
    padding: 0 0 16px;
}

.symbol_section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 8px;
}

.symbol_section p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.apply_button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    flex-shrink: 0;
}

.apply_button a {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: background var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}

.apply_button a:hover {
    background: var(--color-primary-hover);
    box-shadow: var(--shadow-md);
}

.apply_button a:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

.deets_body {
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    margin-top: 16px;
    padding: 28px 36px;
    border-radius: var(--radius-lg);
}

.deets_body h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    margin-top: 20px;
    color: var(--color-text);
}

.deets_body h2:first-child { margin-top: 0; }

.deets_body p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-left: 4px;
    line-height: 1.7;
}

.deets_discription,
.deets_duties,
.deets_requirements,
.deets_benifits {
    margin-bottom: 24px;
}

.related_jobs {
    padding: 32px 0 16px;
}

.related_jobs h1 {
    text-align: center;
    margin-bottom: 16px;
}

/* WhatsApp / contact link pills on detail page */
.typea {
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

#whatsapp-button { cursor: pointer; }

/* "Become a candidate" nudge box */
.new_candidate_box {
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    background: var(--color-surface);
    margin: 32px auto;
    padding: 0 0 24px;
    max-width: 500px;
    text-align: center;
    overflow: hidden;
}

.new_candidate_box h1 {
    background: var(--color-surface-alt);
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--color-border-light);
}

.new_candidate_box h2 { font-size: 1.1rem; margin-top: 20px; }
.new_candidate_box h3 { font-size: 0.95rem; color: var(--color-text-secondary); margin: 8px 0 20px; }

.signuper { overflow: hidden; }


/* ── 9. Forms ──────────────────────────────────────────────── */

/* Page wrappers */
.upload_body { padding-top: calc(var(--header-height) + 40px); }

.candidater {
    width: min(90%, 1100px);
    margin: 0 auto;
    padding: 32px 16px 60px;
}

.apply_success {
    text-align: center;
    padding: 16px 0 8px;
}

.apply_success h1 { font-size: clamp(1.4rem, 4vw, 2rem); }
.apply_success h2 { font-size: 1.1rem; color: var(--color-text-secondary); margin-top: 6px; }

/* Two-column form layout */
.candidate_body {
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
    margin-top: 24px;
    padding: 24px;
    border-radius: var(--radius-lg);
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.candidate_left_body,
.candidate_right_body {
    flex: 1;
    min-width: 280px;
    overflow: hidden;
}

/* Form field labels */
.candidate_body label,
.contact-form label,
.add_form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

/* Text inputs, selects, textareas */
.candidate_body input[type="text"],
.candidate_body input[type="email"],
.candidate_body input[type="tel"],
.candidate_body input[type="url"],
.candidate_body input[type="number"],
.candidate_body input[type="date"],
.candidate_body textarea,
.contact-form input,
.contact-form textarea {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.candidate_body input:focus,
.candidate_body textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,85,204,.15);
}

.candidate_body textarea,
.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Submit buttons */
.candidate_body input[type="submit"],
.submit_button,
.contact-form button[type="submit"] {
    display: inline-block;
    padding: 12px 32px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-sm);
}

.candidate_body input[type="submit"]:hover,
.submit_button:hover,
.contact-form button[type="submit"]:hover {
    background: var(--color-primary-hover);
    box-shadow: var(--shadow-md);
}

.candidate_body input[type="submit"]:focus-visible,
.submit_button:focus-visible,
.contact-form button[type="submit"]:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* CV upload box */
.cv_uploader {
    background: var(--color-surface-alt);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 0 0 24px;
}

.cv_uploader label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.cv_uploader input[type="file"] {
    margin-top: 8px;
    font-size: 0.9rem;
}

/* Client textareas */
.client_textareas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.client_textareas div textarea {
    width: 100%;
    height: 140px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 10px 14px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    resize: vertical;
    transition: border-color var(--transition);
}

.client_textareas div textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,85,204,.15);
}

/* Contact / call-back form */
.contact { padding: calc(var(--header-height) + 40px) 24px 60px; }

.contact_body {
    background: var(--color-surface-alt);
    padding: 24px;
    border-radius: var(--radius-lg);
}

.contact-container {
    background: var(--color-surface);
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 540px;
}

.contact-container h1 {
    text-align: center;
    margin-bottom: 24px;
}

.contact-form .form-group {
    margin-bottom: 16px;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: var(--font-body);
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color var(--transition);
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,85,204,.15);
}

.contact-form button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background var(--transition);
}

.contact-form button:hover { background: var(--color-primary-hover); }
.contact-form button:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}


/* ── 10. Admin ─────────────────────────────────────────────── */

.show_spec_container {
    padding: calc(var(--header-height) + 32px) 16px 80px;
    max-width: 1600px;
    margin: 0 auto;
}

.new_listing_container {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.add_form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}

.add_listing_1 {
    flex: 0 0 280px;
}

.add_listing_1 input[type="text"],
.add_listing_1 input[type="email"],
.add_listing_1 input[type="url"],
.add_listing_1 input[type="number"] {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: var(--font-body);
    margin-bottom: 10px;
    background: var(--color-surface);
    color: var(--color-text);
}

.add_listing_1 label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 3px;
}

.add_listing_2 {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    min-width: 300px;
}

.add_listing_2 div textarea {
    width: 100%;
    height: 240px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    resize: vertical;
}

.add_listing_2 div label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 3px;
}

.submit_button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

/* Admin filter bar */
.back_filter form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
    margin-bottom: 10px;
}

.back_filter form input {
    padding: 7px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-family: var(--font-body);
    background: var(--color-surface);
    flex: 1;
    min-width: 100px;
}

/* Data table */
.table {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin: 16px 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table h1 {
    text-align: center;
    padding: 12px;
    font-size: 1.1rem;
    background: var(--color-surface-alt);
    border-bottom: 1px solid var(--color-border-light);
}

.table_head {
    display: flex;
    background: var(--color-surface-alt);
    border-bottom: 2px solid var(--color-border);
    overflow-x: auto;
}

.table_head h3 {
    flex: 1;
    min-width: 80px;
    padding: 8px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-secondary);
    border-right: 1px solid var(--color-border-light);
    white-space: nowrap;
}

.table_rows {
    display: flex;
    border-bottom: 1px solid var(--color-border-light);
    overflow-x: auto;
    transition: background var(--transition);
}

.table_rows:hover { background: var(--color-primary-light); }

.table_rows div {
    flex: 1;
    min-width: 80px;
    padding: 8px 10px;
    font-size: 0.82rem;
    height: 40px;
    overflow: hidden;
    border-right: 1px solid var(--color-border-light);
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--color-text);
    cursor: default;
    transition: height var(--transition);
}

.table_rows div:hover {
    height: auto;
    white-space: normal;
    overflow: visible;
}

.id { min-width: 40px !important; flex: 0 0 40px !important; }

.listings_list h1 { margin: 36px 0 10px; }


/* ── 11. Login / Signup / OTP ──────────────────────────────── */

.login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + 32px) 16px 60px;
    background: var(--color-bg);
}

.login_container {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-lg);
    margin: auto;
    padding: 36px 32px;
    width: min(100%, 360px);
    border-radius: var(--radius-xl);
    text-align: center;
}

.login_container h1 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.login_container label {
    display: block;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

.login_container input[type="text"],
.login_container input[type="email"],
.login_container input[type="password"] {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.login_container input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,85,204,.15);
}

.login_container input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background var(--transition);
    margin-top: 4px;
}

.login_container input[type="submit"]:hover { background: var(--color-primary-hover); }

.login_container input[type="submit"]:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

.Warn {
    color: var(--color-warn);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 8px;
}

.success {
    color: var(--color-success);
    background: var(--color-success-bg);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: block;
}

.signup {
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    background: var(--color-surface);
    margin: 16px auto 8px;
    padding: 4px 8px;
    width: 90%;
}

.signup a {
    display: block;
    text-decoration: none;
    color: var(--color-primary);
    font-size: 0.9rem;
    padding: 6px;
    text-align: center;
    font-weight: 600;
}

.signup a:hover { text-decoration: underline; }

/* Show Spec container (admin-facing spec list) */
.show_spec_container { padding: calc(var(--header-height) + 32px) 16px 80px; }


/* ── 12. Footer ────────────────────────────────────────────── */

footer {
    background: var(--color-footer-bg);
    padding: 24px 32px;
    text-align: center;
}

.foot a {
    text-decoration: none;
    color: rgba(255,255,255,.6);
    font-size: 0.85rem;
    transition: color var(--transition);
}

.foot a:hover { color: #fff; }


/* ── 13. Utilities ─────────────────────────────────────────── */

/* Page-level scroll offset for fixed header */
.spacer { height: var(--header-height); }

/* Error / success inline messages */
p.Warn, label.Warn { color: var(--color-warn); font-size: 0.85rem; }
p.success { color: var(--color-success); }


/* ── 14. Responsive breakpoints ────────────────────────────── */

/* ---- Tablet: 1024px and below ---- */
@media (max-width: 1024px) {

    .JobFindText  { margin-left: 0; width: auto; max-width: 85vw; }
    .JobFindText2 { margin-left: 0; width: auto; max-width: 75vw; padding-left: 24px; }

    .JobFindBackground { width: 90%; }
    .filter form { flex-wrap: wrap; }
    .filter input[type="text"],
    .filter input[type="search"] { min-width: 130px; }

    .AboutContainer { flex-direction: column-reverse; }
    .about p { width: 100%; }
    .AboutSidePic { width: 100%; }

    .spec_details_container { padding-left: clamp(16px, 4vw, 60px); padding-right: clamp(16px, 4vw, 60px); }

    .deets_head { flex-direction: column; }
    .apply_button { width: 100%; justify-content: flex-start; padding: 0; }

    .client_textareas { grid-template-columns: 1fr; }

    .add_listing_2 { grid-template-columns: 1fr; }
}

/* ---- Mobile: 768px and below ---- */
@media (max-width: 768px) {

    :root { --header-height: 70px; }

    /* Header: hide nav, show hamburger */
    nav { display: none; position: fixed; top: var(--header-height); left: 0; right: 0; background: var(--color-header-bg); padding: 16px; flex-direction: column; align-items: stretch; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
    nav.open { display: flex; }
    nav ul { flex-direction: column; gap: 4px; }
    nav ul li a, nav ul li > details > summary { padding: 12px 16px; font-size: 1rem; }

    details { position: static; }
    details ul { position: static; box-shadow: none; background: rgba(255,255,255,.06); margin-top: 4px; border-radius: var(--radius-md); }

    .nav-toggle { display: flex; }

    /* Hero */
    .hero_pic { position: relative; height: 280px; }
    .JobFind { padding-top: calc(var(--header-height) + 32px); }
    .JobFindText { font-size: 1.6rem; max-width: 90vw; }
    .JobFindText2 { font-size: 0.95rem; max-width: 90vw; margin-bottom: 20px; }
    .JobFindBackground { width: 96%; }

    /* About */
    .AboutContainer { width: 95%; padding: 20px; }

    /* Cities: stack vertically */
    .cities { padding: 40px 16px; }
    .cities_container { flex-direction: column; }
    .cities_container a { height: 200px; min-width: 0; width: 100%; }

    /* Cards: single column */
    .new_specs, .new_entry { grid-template-columns: 1fr; padding: 8px; }

    /* Detail pages */
    .spec_details_container { padding: calc(var(--header-height) + 24px) 16px 32px; }

    /* Forms */
    .candidate_body { flex-direction: column; padding: 16px; }
    .candidate_left_body, .candidate_right_body { min-width: 0; width: 100%; }

    /* Admin table: horizontal scroll */
    .table_head, .table_rows { overflow-x: auto; }

    /* Admin form */
    .add_listing_1 { flex: 0 0 100%; }
    .add_listing_2 { min-width: 0; grid-template-columns: 1fr; }

    /* Login */
    .login_container { padding: 28px 20px; }

    /* Footer */
    footer { padding: 20px 16px; }
}

/* ---- Small mobile: 480px and below ---- */
@media (max-width: 480px) {

    .JobFindBackground { padding: 14px 12px 10px; }
    .filter form { flex-direction: column; }
    .filter input[type="text"] { max-width: 100%; }

    .deets_head { padding: 16px; }
    .candidater { padding: 20px 8px 40px; }
    .new_candidate_box { max-width: 100%; }
    .view_list_button a { font-size: 0.9rem; padding: 10px 20px; }
}


/* ── 15. Toast notifications ───────────────────────────────── */

.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    box-shadow: var(--shadow-lg);
    z-index: 9000;
    animation: toast-in 280ms ease, toast-out 400ms ease 3s forwards;
    white-space: nowrap;
    pointer-events: none;
}

.toast--success { background: var(--color-success); }
.toast--error   { background: var(--color-warn); }

@keyframes toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(16px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toast-out {
    from { opacity: 1; }
    to   { opacity: 0; pointer-events: none; }
}


/* ── 16. CV upload spinner ─────────────────────────────────── */

.upload-spinner {
    display: none;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.upload-spinner.visible { display: flex; }

.upload-spinner__ring {
    width: 22px;
    height: 22px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 700ms linear infinite;
    flex-shrink: 0;
}

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


/* ── 17. Polish — previously inline styles moved to CSS ───── */

/* upload_candidate / upload_client page heading */
.apply_success h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    text-align: center;
}

.apply_success h2 {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: 6px;
}

/* "Become a candidate" nudge box headings */
.new_candidate_box h1,
.signuper h1 {
    background: var(--color-surface-alt);
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--color-border-light);
    text-align: center;
}

.new_candidate_box h2,
.signuper h2 {
    font-size: 1.1rem;
    text-align: center;
    margin-top: 20px;
}

.new_candidate_box h3,
.signuper h3 {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin: 8px 0 24px;
}

/* db_content field labels (entries_details) */
.deets-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}

/* OTP verification input */
.otp-input {
    letter-spacing: 6px;
    font-size: 1.4rem;
    width: 150px;
    text-align: center;
    padding: 10px 14px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-surface);
    transition: border-color var(--transition), box-shadow var(--transition);
    display: block;
    margin: 8px auto 0;
}

.otp-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,85,204,.15);
}

.otp-submit {
    display: block;
    margin: 14px auto 0;
    padding: 10px 28px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background var(--transition);
}

.otp-submit:hover { background: var(--color-primary-hover); }

.otp-submit:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}


/* ── 18. Placed button state modifiers ─────────────────────── */

.placed_button--yes {
    background-color: var(--color-success);
}

.placed_button--yes:hover {
    background-color: #155e2f;
}

.placed_button--no {
    background-color: var(--color-accent);
}

.placed_button--no:hover {
    background-color: #b5260a;
}


/* ── 19. Form success message ──────────────────────────────── */

.form-success-msg {
    text-align: center;
    padding: 48px 24px;
}

.form-success-msg h2 {
    color: var(--color-success);
    margin-bottom: 10px;
}

.form-success-msg p {
    color: var(--color-text-secondary);
    font-size: 1rem;
}
