/* =========================================================
   JOB PROVIDER - CLEAN & FINAL - SAME AS JOB SEEKER
   UPDATED WITH SELFIE + GALLERY + COMPRESS UI
   Navigation + Form + Photo + Footer + Mobile
========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans Tamil", "Latha", Arial, sans-serif;
  background: linear-gradient(135deg, #f7f9fc 0%, #eef3f8 50%, #fdfdfd 100%);
  color: #172033; min-height: 100vh; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }

/* ================= NAVIGATION - CLEAN SIMPLE =================
   - site-header: sticky top, white bg, shadow
   - navbar: max 1200px center
   - nav-container: flex space-between, height 70px
   - brand: Logo 120px
   - nav-links: flex gap 18px, hover purple bg
   - menu-toggle: mobile 3 line, hidden desktop
*/
.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.navbar { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: #2a1a5a; }
.brand-logo { width: 120px; height: 120px; object-fit: contain; }
.nav-links { display: flex; list-style: none; gap: 18px; }
.nav-links li a { color: #333; font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: 0.2s; font-size: 14px; }
.nav-links li a:hover, .nav-links li a.active { background: #f0ebff; color: #7c5cff; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.menu-toggle span { width: 25px; height: 3px; background: #333; border-radius: 2px; display: block; transition: 0.3s; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* FORM SECTION */
.form-section { width: min(980px, 92%); margin: 70px auto 90px; }
.section-heading { text-align: center; margin-bottom: 40px; }
.section-tag { display: inline-block; margin-bottom: 12px; color: #4967d9; font-size: 12px; font-weight: 800; letter-spacing: 2px; }
.section-heading h2 { font-size: clamp(26px, 4vw, 34px); color: #172033; margin-bottom: 12px; line-height: 1.3; }
.section-heading p { max-width: 700px; margin: auto; color: #68758a; line-height: 1.8; font-size: 14px; }

.form-card {
  margin-bottom: 24px; padding: 32px; background: rgba(255,255,255,0.95);
  border: 1px solid #e2e8f0; border-radius: 24px;
  box-shadow: 0 18px 50px rgba(30,45,70,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.form-card:hover { transform: translateY(-3px); box-shadow: 0 22px 55px rgba(30,45,70,0.12); }
.card-title { display: flex; align-items: center; gap: 15px; margin-bottom: 28px; }
.title-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; font-size: 24px; flex-shrink: 0; }
.form-card:nth-of-type(1) .title-icon { background: #fff6d7; }
.form-card:nth-of-type(2) .title-icon { background: #e6f0ff; }
.form-card:nth-of-type(3) .title-icon { background: #e8f5e9; }
.form-card:nth-of-type(4) .title-icon { background: #fff3e0; }
.form-card:nth-of-type(5) .title-icon { background: #f3e8ff; }
.card-title h3 { color: #172033; font-size: 20px; }
.card-title p { margin-top: 4px; color: #7b8798; font-size: 13px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { margin-bottom: 8px; color: #364152; font-size: 13.5px; font-weight: 700; }
.form-group label span { color: #e25555; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #d9e0ea;
  border-radius: 12px; outline: none; background: #fbfcfe; color: #172033;
  font-size: 14px; transition: border-color 0.25s, box-shadow 0.25s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: #6077dc; background: white; box-shadow: 0 0 0 4px rgba(96,119,220,0.10);
}
.form-group textarea { resize: vertical; }

/* ================= PHOTO & SUBMIT - NEW CLEAN WITH SELFIE ================= */
.photo-submit-card { padding: 28px; }
.photo-submit-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; align-items: start; margin-top: 10px; }
.photo-side {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fafaff; border: 1px dashed #d1c5ff; border-radius: 14px; padding: 22px;
}
.photo-preview {
  width: 120px; height: 120px; border-radius: 50%; background: #eee;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 2px solid #7c3aed; margin-bottom: 12px;
}
.photo-preview span { font-size: 36px; }
#previewImage { width: 100%; height: 100%; object-fit: cover; display: none; }

/* 2 Button Group - Gallery + Selfie */
.photo-action-group { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; width: 100%; margin-top: 6px; }
.upload-button {
  background: #7c3aed; color: #fff; padding: 9px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer; border: none;
  transition: 0.2s; display: inline-flex; align-items: center; justify-content: center;
}
.upload-button:hover { background: #6d28e0; transform: translateY(-1px); }
.selfie-button { background: #111827 !important; }
.selfie-button:hover { background: #000 !important; }

.photo-hint { font-size: 11.5px; color: #666; margin-top: 10px; }

/* Selfie Camera UI - Same as Job Seeker */
.selfie-camera-wrap {
  margin-top: 15px; width: 100%; background: #000; border-radius: 12px;
  overflow: hidden; border: 2px solid #7c3aed; animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity:0; transform: scale(0.95); } to { opacity:1; transform: scale(1); } }
#selfieVideo { width: 100%; height: 260px; object-fit: cover; display: block; transform: scaleX(-1); background: #222; }
.selfie-controls { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 12px; background: #fff; }
.capture-btn, .use-btn, .retake-btn, .close-btn {
  padding: 8px 14px; border-radius: 8px; border: none; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: 0.2s;
}
.capture-btn { background: #7c3aed; color: #fff; }
.use-btn { background: #16a34a; color: #fff; }
.retake-btn { background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }
.close-btn { background: #fee2e2; color: #b91c1c; }
.selfie-hint { background: #fff; color: #6b7280; font-size: 11px; padding-bottom: 10px; text-align: center; }

.photo-side .privacy-note { margin: 14px 0 0 0; font-size: 11px; background: #f9f9ff; padding: 8px 10px; border-radius: 6px; width: 100%; color: #6b7280; }
.photo-side .submit-button {
  width: 100%; padding: 14px; font-size: 15px; margin-top: 12px;
  border: none; border-radius: 10px; background: linear-gradient(90deg,#7c3aed,#a78bfa);
  color: #fff; font-weight: 700; cursor: pointer; display: flex; justify-content: center; gap: 8px;
}
.photo-side .admin-note { font-size: 11px; color: #16a34a; margin-top: 8px; font-weight: 600; background: #f0fdf4; padding: 6px 8px; border-radius: 6px; width: 100%; }
.submit-side { display: flex; flex-direction: column; }
.team-image-box { width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid #e9e5ff; box-shadow: 0 6px 18px rgba(124,58,237,0.12); background: #fff; }
.team-image-box img { width: 100%; height: 400px; object-fit: cover; object-position: top center; }
.team-dialog { padding: 12px 14px; background: linear-gradient(90deg,#7c3aed,#a78bfa); color: #fff; font-size: 13px; font-weight: 600; text-align: center; line-height: 1.4; }
.team-dialog small { font-weight: 400; opacity: 0.9; font-size: 11px; }

/* SUCCESS OVERLAY */
.success-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: none; place-items: center; z-index: 2000; }
.success-overlay.show { display: grid; }
.success-box { background: #fff; padding: 30px; border-radius: 18px; text-align: center; max-width: 340px; width: 90%; box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.success-icon { width: 60px; height: 60px; background: #22c55e; color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 28px; margin: 0 auto 14px; }
.success-close { margin-top: 16px; padding: 10px 20px; border: none; background: #111; color: #fff; border-radius: 8px; cursor: pointer; }
.form-message { margin-bottom: 18px; }

/* FOOTER */
.jobs-footer { background: #171321; color: #fff; margin-top: 40px; }
.jobs-footer-inner { width: min(1180px, 92%); min-height: 80px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.jobs-footer-left p { color: rgba(255,255,255,0.65); font-size: 12.5px; }
.jobs-footer-socials { display: flex; gap: 10px; }
.jobs-footer-socials a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,0.08); transition: 0.2s; }
.jobs-footer-socials a:hover { transform: translateY(-2px); background: rgba(255,255,255,0.16); }
.jobs-footer-socials img { width: 18px; height: 18px; }

/* MOBILE */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 70px; left: 12px; right: 12px;
    background: #fff; flex-direction: column; padding: 12px;
    border: 1px solid #e2e8f0; border-radius: 16px;
    box-shadow: 0 18px 50px rgba(30,45,70,0.11);
    display: none; gap: 4px; z-index: 999;
  }
  .nav-links.is-open { display: flex !important; }
  .nav-links li { width: 100%; }
  .nav-links li a { display: block; width: 100%; padding: 12px 14px; }
  .form-section { width: 94%; margin-top: 30px; margin-bottom: 50px; }
  .form-card { padding: 20px 15px; border-radius: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: auto; }
  .photo-submit-grid { grid-template-columns: 1fr; gap: 20px; }
  .team-image-box img { height: auto; max-height: 340px; }
  .jobs-footer-inner { flex-direction: column; text-align: center; padding: 20px 0; }
  #selfieVideo { height: 220px; }
}