/**
 * DAG Real Estate - Careers Page Stylesheet
 *
 * Pixel-perfect luxury styling matching the South Australia reference mockup:
 * - Proper top clearance (170px) for the 80px floating header & hanging logo emblem
 * - 2-Column Dark Hero with South Australia coastal photography & dual CTAs (#0A1626)
 * - "A Career Built on Local Roots" on warm alabaster linen (#FAF9F6) with 3 crisp white cards
 * - 4 Cultural Benefit Pillars on dedicated full-width white band (#FFFFFF) with subtle dividers
 * - "Find Your Role" Open Positions list on warm alabaster (#FAF9F6) with white job cards
 * - "More Than Just Properties" dark navy section (#0A1626) with 3 steps & principal portrait
 * - Split Section: "Why South Australia" & Application Form on warm alabaster (#FAF9F6) with white form card
 * - Full-width Warm Champagne sand banner (#EFE9DA) for "Don't See the Right Role?" touching footer
 *
 * @package DAG_Real_Estate
 */

/* ==========================================================================
   1. CORE WRAPPER & TYPOGRAPHY
   ========================================================================== */
.dag-careers-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1E293B;
  background-color: #FAF9F6;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.dag-careers-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.dag-careers-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  color: #D5A763;
  margin-bottom: 14px;
}

.dag-careers-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: #0A1626;
  line-height: 1.22;
  margin: 0 0 16px 0;
}

/* ==========================================================================
   2. HERO SECTION (WITH 170PX HEADER CLEARANCE)
   ========================================================================== */
.dag-careers-hero {
  background-color: #0A1626;
  color: #FFFFFF;
  /* 170px top padding ensures sticky header (80px) and logo do not overlap */
  padding: 170px 0 95px 0;
  position: relative;
  overflow: hidden;
}

.dag-careers-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 85% 20%, rgba(213, 167, 99, 0.09) 0%, transparent 60%);
  pointer-events: none;
}

.dag-careers-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.dag-careers-hero-content {
  padding-right: 12px;
}

.dag-careers-hero .dag-careers-eyebrow {
  color: #D5A763;
  margin-bottom: 16px;
}

.dag-careers-hero-title {
  font-size: 46px;
  color: #FFFFFF;
  line-height: 1.15;
  margin: 0 0 20px 0;
  letter-spacing: -0.5px;
}

.dag-careers-hero-desc {
  font-size: 15.5px;
  line-height: 1.7;
  color: #CBD5E1;
  margin: 0 0 32px 0;
  max-width: 530px;
}

.dag-careers-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dag-careers-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #D5A763;
  color: #0A1626;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(213, 167, 99, 0.25);
  border: 1px solid #D5A763;
  cursor: pointer;
}

.dag-careers-btn-gold:hover {
  background: #C59B53;
  color: #0A1626;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(213, 167, 99, 0.38);
}

.dag-careers-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
  cursor: pointer;
}

.dag-careers-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #D5A763;
  color: #D5A763;
  transform: translateY(-2px);
}

.dag-careers-hero-media {
  position: relative;
}

.dag-careers-hero-img-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 16 / 10.5;
  background: #0d1e34;
}

.dag-careers-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.dag-careers-hero-img-wrap:hover img {
  transform: scale(1.025);
}

/* ==========================================================================
   3. SECTION: A CAREER BUILT ON LOCAL ROOTS (WHY JOIN DAG)
   ========================================================================== */
.dag-careers-roots {
  padding: 95px 0 0 0;
  background-color: #FAF9F6;
}

.dag-careers-roots-head {
  text-align: left;
  margin-bottom: 44px;
}

.dag-careers-roots-head .dag-careers-heading {
  font-size: 36px;
  margin-bottom: 0;
}

/* 3 Numbered Value Cards */
.dag-careers-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 65px;
}

.dag-careers-value-card {
  background-color: #FFFFFF;
  border: 1px solid #EAE6DE;
  border-radius: 12px;
  padding: 38px 32px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(10, 22, 38, 0.03);
  position: relative;
}

.dag-careers-value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(213, 167, 99, 0.5);
  box-shadow: 0 12px 30px rgba(10, 22, 38, 0.08);
}

.dag-careers-card-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  color: #D5A763;
  line-height: 1;
  margin-bottom: 16px;
}

.dag-careers-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  color: #0A1626;
  margin: 0 0 12px 0;
}

.dag-careers-card-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #64748B;
  margin: 0;
}

/* Dedicated Full-Width White Band for 4 Pillars */
.dag-careers-pillars-band {
  background-color: #FFFFFF;
  border-top: 1px solid #ECE7DE;
  border-bottom: 1px solid #ECE7DE;
  padding: 48px 0;
  width: 100%;
}

.dag-careers-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.dag-careers-pillar-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 20px 6px 0;
  position: relative;
}

.dag-careers-pillar-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background-color: #EFECE6;
}

.dag-careers-pillar-icon {
  width: 26px;
  height: 26px;
  color: #D5A763;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.dag-careers-pillar-icon svg {
  width: 24px;
  height: 24px;
  stroke: #D5A763;
}

.dag-careers-pillar-title {
  font-size: 15px;
  font-weight: 700;
  color: #0A1626;
  margin: 0 0 6px 0;
}

.dag-careers-pillar-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #64748B;
  margin: 0;
}

/* ==========================================================================
   4. SECTION: OPEN POSITIONS (FIND YOUR ROLE)
   ========================================================================== */
.dag-careers-positions {
  padding: 95px 0 100px 0;
  background-color: #FAF9F6;
  border-bottom: 1px solid #ECE7DE;
}

.dag-careers-positions-head {
  text-align: left;
  margin-bottom: 40px;
}

.dag-careers-positions-head .dag-careers-heading {
  font-size: 36px;
  margin-bottom: 0;
}

.dag-careers-jobs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1100px;
}

.dag-careers-job-card {
  background-color: #FFFFFF;
  border: 1px solid #EAE6DE;
  border-radius: 10px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(10, 22, 38, 0.03);
}

.dag-careers-job-card:hover {
  transform: translateY(-2px);
  border-color: #D5A763;
  box-shadow: 0 8px 24px rgba(10, 22, 38, 0.07);
}

.dag-careers-job-info {
  flex-grow: 1;
}

.dag-careers-job-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #0A1626;
  margin: 0 0 6px 0;
  transition: color 0.2s ease;
}

.dag-careers-job-card:hover .dag-careers-job-title {
  color: #D5A763;
}

.dag-careers-job-details {
  font-size: 13.5px;
  color: #64748B;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dag-careers-job-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #0A1626;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
  border: 1px solid #0A1626;
  cursor: pointer;
}

.dag-careers-job-apply-btn:hover {
  background-color: #D5A763;
  border-color: #D5A763;
  color: #0A1626;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(213, 167, 99, 0.3);
}

/* ==========================================================================
   5. SECTION: OUR COMMITMENT (MORE THAN JUST PROPERTIES)
   ========================================================================== */
.dag-careers-commitment {
  padding: 100px 0 100px 0;
  background-color: #0A1626;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.dag-careers-commitment::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: radial-gradient(circle at 75% 40%, rgba(213, 167, 99, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.dag-careers-commitment-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.dag-careers-commitment-content {
  padding-right: 16px;
}

.dag-careers-commitment-content .dag-careers-heading {
  font-size: 38px;
  color: #FFFFFF;
  margin-bottom: 18px;
}

.dag-careers-commitment-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #CBD5E1;
  margin: 0 0 36px 0;
  max-width: 530px;
}

.dag-careers-steps-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.dag-careers-step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.dag-careers-step-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: #D5A763;
  line-height: 1;
  flex-shrink: 0;
  width: 34px;
}

.dag-careers-step-info {
  flex-grow: 1;
}

.dag-careers-step-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 4px 0;
}

.dag-careers-step-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #94A3B8;
  margin: 0;
}

/* Portrait with bottom banner */
.dag-careers-portrait-wrapper {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 4 / 4.4;
  background: #0d1e34;
}

.dag-careers-portrait-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.dag-careers-portrait-overlay-banner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #D5A763;
  color: #0A1626;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.25s ease;
  z-index: 3;
}

.dag-careers-portrait-overlay-banner:hover {
  background: #E5BE7A;
  color: #0A1626;
}

.dag-careers-portrait-overlay-banner svg {
  width: 16px;
  height: 16px;
  stroke: #0A1626;
  transition: transform 0.2s ease;
}

.dag-careers-portrait-overlay-banner:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   6. SECTION: WHY SOUTH AUSTRALIA & APPLICATION FORM (SPLIT SECTION)
   ========================================================================== */
.dag-careers-split {
  padding: 100px 0 105px 0;
  background-color: #FAF9F6;
  border-top: 1px solid #ECE7DE;
}

.dag-careers-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: flex-start;
}

/* Left Column: Why SA */
.dag-careers-sa-col {
  padding-right: 12px;
}

.dag-careers-sa-img-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(10, 22, 38, 0.06);
  border: 1px solid #E2DED5;
  margin-bottom: 34px;
  aspect-ratio: 16 / 10;
  background: #E2E8F0;
}

.dag-careers-sa-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dag-careers-sa-img-badge {
  position: absolute;
  bottom: 14px;
  right: 18px;
  background: rgba(10, 22, 38, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dag-careers-sa-col .dag-careers-heading {
  font-size: 34px;
  margin-bottom: 24px;
}

.dag-careers-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dag-careers-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: #334155;
  font-weight: 500;
}

.dag-careers-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #D5A763;
  color: #0A1626;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dag-careers-check-icon svg {
  width: 13px;
  height: 13px;
  stroke: #0A1626;
  stroke-width: 3;
}

/* Right Column: Application Form */
.dag-careers-form-card {
  background-color: #FFFFFF;
  border: 1px solid #EAE6DE;
  border-radius: 14px;
  padding: 42px 38px;
  box-shadow: 0 10px 32px rgba(10, 22, 38, 0.04);
}

.dag-careers-form-header {
  margin-bottom: 26px;
}

.dag-careers-form-header .dag-careers-eyebrow {
  margin-bottom: 8px;
}

.dag-careers-form-header .dag-careers-heading {
  font-size: 28px;
  margin: 0;
}

.dag-careers-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dag-form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dag-app-field {
  display: flex;
  flex-direction: column;
}

.dag-app-field label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #475569;
  margin-bottom: 6px;
}

.dag-app-field input[type="text"],
.dag-app-field input[type="email"],
.dag-app-field input[type="tel"],
.dag-app-field select,
.dag-app-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 14px;
  color: #0F172A;
  background: #FFFFFF;
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.dag-app-field input:focus,
.dag-app-field select:focus,
.dag-app-field textarea:focus {
  border-color: #D5A763;
  outline: none;
  box-shadow: 0 0 0 3px rgba(213, 167, 99, 0.18);
}

.dag-app-field textarea {
  resize: vertical;
  min-height: 90px;
}

/* File Upload styling */
.dag-file-upload-wrap {
  border: 1px dashed #CBD5E1;
  border-radius: 6px;
  padding: 10px 14px;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.2s ease;
  position: relative;
}

.dag-file-upload-wrap:hover {
  border-color: #D5A763;
}

.dag-file-upload-wrap input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dag-file-upload-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748B;
  pointer-events: none;
}

.dag-file-upload-btn-fake {
  font-size: 12px;
  font-weight: 600;
  background: #E2E8F0;
  color: #1E293B;
  padding: 5px 10px;
  border-radius: 4px;
}

.dag-careers-form-submit-btn {
  width: 100%;
  padding: 14px;
  background: #D5A763;
  color: #0A1626;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid #D5A763;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 6px;
  box-shadow: 0 4px 14px rgba(213, 167, 99, 0.25);
}

.dag-careers-form-submit-btn:hover {
  background: #C59B53;
  box-shadow: 0 6px 18px rgba(213, 167, 99, 0.35);
  transform: translateY(-1px);
}

.dag-form-feedback {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  display: none;
}

.dag-form-feedback.success {
  display: block;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

/* ==========================================================================
   7. SECTION: GENERAL CV BANNER ("DON'T SEE THE RIGHT ROLE?")
   Full-width warm champagne sand background (#EFE9DA) directly above footer
   ========================================================================== */
.dag-careers-cta {
  background-color: #EFE9DA;
  padding: 95px 0 105px 0;
  text-align: center;
  position: relative;
  width: 100%;
}

.dag-careers-cta-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.dag-careers-cta .dag-careers-eyebrow {
  color: #A37E3E;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.dag-careers-cta .dag-careers-heading {
  font-size: 34px;
  color: #0A1626;
  margin: 0 0 14px 0;
}

.dag-careers-cta-subtitle {
  font-size: 15.5px;
  color: #5C6470;
  max-width: 580px;
  margin: 0 auto 32px auto;
  line-height: 1.6;
}

.dag-careers-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #0A1626;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid #0A1626;
  transition: all 0.25s ease;
  cursor: pointer;
}

.dag-careers-cta-btn:hover {
  background-color: #D5A763;
  border-color: #D5A763;
  color: #0A1626;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(213, 167, 99, 0.3);
}

/* ==========================================================================
   8. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .dag-careers-hero-grid,
  .dag-careers-commitment-grid,
  .dag-careers-split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dag-careers-hero-title {
    font-size: 38px;
  }

  .dag-careers-hero {
    padding: 150px 0 75px 0;
  }

  .dag-careers-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dag-careers-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .dag-careers-pillar-item:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .dag-careers-hero {
    padding: 130px 0 60px 0;
  }

  .dag-careers-hero-title {
    font-size: 32px;
  }

  .dag-careers-roots-head .dag-careers-heading,
  .dag-careers-positions-head .dag-careers-heading,
  .dag-careers-commitment-content .dag-careers-heading,
  .dag-careers-sa-col .dag-careers-heading,
  .dag-careers-cta .dag-careers-heading {
    font-size: 28px;
  }

  .dag-careers-job-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .dag-careers-job-apply-btn {
    width: 100%;
  }

  .dag-form-row-2col {
    grid-template-columns: 1fr;
  }

  .dag-careers-form-card {
    padding: 26px 20px;
  }

  .dag-careers-cta {
    padding: 65px 20px 75px 20px;
  }
}
