/* ==========================================================================
   careers-modern.css — Clean & minimal redesign for the careers page
   Loaded ONLY on careers.php, AFTER style.css + careers.css, so it overrides
   the page's own styling without affecting any other page. Every selector is
   scoped to `body.careers-modern` to keep specificity high and bleed at zero.
   ========================================================================== */

/* ---- Design tokens ---- */
body.careers-modern {
  --pp-primary: #2563eb;
  --pp-primary-dark: #1d4ed8;
  --pp-primary-soft: #eff6ff;
  --pp-ink: #0f172a;
  --pp-body: #475569;
  --pp-muted: #64748b;
  --pp-line: #e2e8f0;
  --pp-bg: #ffffff;
  --pp-bg-alt: #f8fafc;
  --pp-radius: 18px;
  --pp-radius-sm: 12px;
  --pp-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 12px 32px -12px rgba(15, 23, 42, 0.12);
  --pp-shadow-hover: 0 18px 48px -16px rgba(37, 99, 235, 0.28);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--pp-body);
  background: var(--pp-bg);
  -webkit-font-smoothing: antialiased;
}

body.careers-modern h1,
body.careers-modern h2,
body.careers-modern h3,
body.careers-modern h4 {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  letter-spacing: -0.01em;
}

body.careers-modern .title-blue {
  color: var(--pp-primary);
  font-weight: 700;
}

/* Icon helper inside pill badges */
body.careers-modern .careers-hero-badge i,
body.careers-modern .contact-badge i {
  font-size: 13px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
body.careers-modern .careers-hero {
  background: radial-gradient(1200px 600px at 80% -10%, #eef4ff 0%, rgba(238, 244, 255, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, var(--pp-bg-alt) 100%);
  padding: 88px 0 72px;
}
body.careers-modern .careers-hero-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}
body.careers-modern .careers-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pp-primary-soft);
  color: var(--pp-primary-dark);
  padding: 8px 16px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
body.careers-modern .careers-title {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--pp-ink);
  margin: 0 0 14px;
}
body.careers-modern .careers-subtitle {
  font-size: 17px;
  color: var(--pp-muted);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 620px;
}

/* ==========================================================================
   OPENINGS
   ========================================================================== */
body.careers-modern .openings-section {
  background: #fff;
  padding: 88px 0;
}
body.careers-modern .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}
body.careers-modern .openings-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
body.careers-modern .section-heading {
  font-size: clamp(28px, 3.4vw, 42px);
  color: var(--pp-ink);
  font-weight: 700;
  margin: 0 0 10px;
}
body.careers-modern .section-text {
  font-size: 16px;
  color: var(--pp-muted);
  line-height: 1.7;
  margin: 0;
}
body.careers-modern .openings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}

/* Job listing cards */
body.careers-modern .job-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  padding: 28px;
  box-shadow: var(--pp-shadow);
  backdrop-filter: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}
body.careers-modern .job-card::before {
  display: none; /* remove the dated gradient mask border */
}
body.careers-modern .job-card:hover {
  transform: translateY(-6px);
  border-color: #dbeafe;
  box-shadow: var(--pp-shadow-hover);
}
body.careers-modern .job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
body.careers-modern .job-title {
  font-size: 19px;
  margin: 0;
  color: var(--pp-ink);
  font-weight: 700;
}
body.careers-modern .job-type {
  flex: none;
  background: var(--pp-primary-soft);
  color: var(--pp-primary-dark);
  border: 1px solid #dbeafe;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
  white-space: nowrap;
}
body.careers-modern .job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--pp-muted);
  font-size: 14px;
  margin-bottom: 14px;
}
body.careers-modern .job-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
body.careers-modern .job-meta i {
  color: var(--pp-primary);
}
body.careers-modern .job-desc {
  color: var(--pp-body);
  margin: 0 0 14px;
  line-height: 1.6;
  font-size: 14.5px;
}
body.careers-modern .job-req {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  color: var(--pp-body);
}
body.careers-modern .job-req li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.5;
}
body.careers-modern .job-req li i {
  color: var(--pp-primary);
  margin-top: 2px;
  font-size: 13px;
  flex: none;
}
body.careers-modern .job-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}
body.careers-modern .apply-btn {
  background: var(--pp-primary) !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 26px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.6) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}
body.careers-modern .apply-btn:hover {
  background: var(--pp-primary-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--pp-shadow-hover) !important;
}

/* ==========================================================================
   BENEFITS
   ========================================================================== */
body.careers-modern .benefits-section {
  background: var(--pp-bg-alt);
  padding: 80px 0;
}
body.careers-modern .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 26px;
  max-width: 1240px;
  margin: 0 auto;
}
body.careers-modern .benefit-card {
  background: #fff;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--pp-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
body.careers-modern .benefit-card:hover {
  transform: translateY(-6px);
  border-color: #dbeafe;
  box-shadow: var(--pp-shadow-hover);
}
body.careers-modern .benefit-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pp-primary-soft);
  color: var(--pp-primary);
  font-size: 19px;
}
body.careers-modern .benefit-card h4 {
  color: var(--pp-ink);
  font-size: 18px;
  margin: 0 0 8px;
}
body.careers-modern .benefit-card p {
  color: var(--pp-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   CONTACT (shared .contact section)
   ========================================================================== */
body.careers-modern .contact {
  background: #fff;
  padding: 88px 0;
}
body.careers-modern .contact-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}
body.careers-modern .contact-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
body.careers-modern .contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pp-primary-soft);
  color: var(--pp-primary-dark);
  padding: 8px 16px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  width: fit-content;
}
body.careers-modern .contact-title {
  font-size: clamp(28px, 3.4vw, 42px);
  color: var(--pp-ink);
  margin: 0;
}
body.careers-modern .contact-description {
  font-size: 16px;
  color: var(--pp-muted);
  line-height: 1.7;
  margin: 0;
}
body.careers-modern .contact-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
body.careers-modern .contact-form-panel {
  background: #fff;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  padding: 32px;
  box-shadow: var(--pp-shadow);
}
body.careers-modern .contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
body.careers-modern .contact-form .form-row.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}
body.careers-modern .contact-form .form-group {
  margin-bottom: 18px;
}
body.careers-modern .contact-form .form-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pp-ink);
  margin-bottom: 6px;
  display: block;
}
body.careers-modern .contact-form input,
body.careers-modern .contact-form textarea {
  width: 100%;
  border: 1px solid var(--pp-line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--pp-ink);
  background: var(--pp-bg-alt);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
body.careers-modern .contact-form input:focus,
body.careers-modern .contact-form textarea:focus {
  outline: none;
  border-color: var(--pp-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Submit / apply submit buttons */
body.careers-modern .submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--pp-primary) !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 26px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.6) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}
body.careers-modern .submit-btn:hover {
  background: var(--pp-primary-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--pp-shadow-hover) !important;
}

/* Success / error messages */
body.careers-modern .form-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: var(--pp-radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
}
body.careers-modern .form-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: var(--pp-radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
}

/* Right info panels */
body.careers-modern .right-panels {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
body.careers-modern .company-info-panel,
body.careers-modern .business-hours-panel {
  background: var(--pp-bg-alt);
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  padding: 26px;
}
body.careers-modern .company-name {
  color: var(--pp-ink);
  font-size: 18px;
  margin: 0 0 18px;
}
body.careers-modern .info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid var(--pp-line);
  font-size: 14px;
  color: var(--pp-body);
  line-height: 1.5;
}
body.careers-modern .info-item:last-child {
  border-bottom: none;
}
body.careers-modern .info-item strong {
  color: var(--pp-ink);
}
body.careers-modern .info-icon {
  width: 46px;
  height: 46px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pp-primary-soft);
  color: var(--pp-primary);
  border-radius: 12px;
  font-size: 17px;
}
body.careers-modern .hours-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pp-ink);
  font-size: 16px;
  margin: 0 0 14px;
}
body.careers-modern .hours-icon {
  width: 46px;
  height: 46px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pp-primary-soft);
  color: var(--pp-primary);
  border-radius: 12px;
  font-size: 17px;
}
body.careers-modern .hours-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  color: var(--pp-body);
}
body.careers-modern .hours-key {
  color: var(--pp-muted);
}
body.careers-modern .contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
body.careers-modern .action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius-sm);
  padding: 16px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
body.careers-modern .action-btn:hover {
  transform: translateY(-3px);
  border-color: var(--pp-primary);
  box-shadow: var(--pp-shadow);
}
body.careers-modern .action-btn > span {
  width: 46px;
  height: 46px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pp-primary-soft);
  color: var(--pp-primary);
  border-radius: 12px;
  font-size: 17px;
}
body.careers-modern .btn-main {
  display: block;
  font-weight: 600;
  color: var(--pp-ink);
  font-size: 14.5px;
}
body.careers-modern .btn-sub {
  display: block;
  color: var(--pp-muted);
  font-size: 12.5px;
}

/* ==========================================================================
   APPLY MODAL
   ========================================================================== */
body.careers-modern .apply-modal-content {
  border-radius: var(--pp-radius);
  padding: 32px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
}
body.careers-modern .apply-title {
  color: var(--pp-ink);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 20px;
}
body.careers-modern .modal-close {
  background: var(--pp-ink);
}
body.careers-modern .apply-form .form-group label {
  font-weight: 600;
  color: var(--pp-ink);
  font-size: 13.5px;
}
body.careers-modern .apply-form input,
body.careers-modern .apply-form select,
body.careers-modern .apply-form textarea {
  border: 1px solid var(--pp-line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--pp-ink);
  background: var(--pp-bg-alt);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
body.careers-modern .apply-form input:focus,
body.careers-modern .apply-form select:focus,
body.careers-modern .apply-form textarea:focus {
  outline: none;
  border-color: var(--pp-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
  body.careers-modern .contact-content {
    grid-template-columns: 1fr;
  }
  body.careers-modern .contact-form .form-row.three-col {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  body.careers-modern .careers-hero {
    padding: 64px 0 52px;
  }
  body.careers-modern .openings-section,
  body.careers-modern .benefits-section,
  body.careers-modern .contact {
    padding: 56px 0;
  }
  body.careers-modern .container,
  body.careers-modern .careers-hero-container,
  body.careers-modern .contact-container {
    padding: 0 22px;
  }
  body.careers-modern .contact-form .form-row {
    grid-template-columns: 1fr;
  }
  body.careers-modern .contact-actions {
    grid-template-columns: 1fr;
  }
  body.careers-modern .contact-form-panel {
    padding: 24px;
  }
}
