/**
 * DAG Real Estate - Contact Us 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 Adelaide riverbank skyline photography & action CTA (#0A1626)
 * - Main Split Section on warm alabaster (#FAF9F6) with white form card & 4 agency details cards + Adelaide vector map
 * - "Areas We Serve" section on pure white (#FFFFFF) with interactive suburb pills & daytime Adelaide photo
 * - Full-width Warm Champagne sand banner (#EFE9DA) for "Ready to Make Your Move in South Australia?" touching footer
 *
 * @package DAG_Real_Estate
 */

/* ==========================================================================
   1. CORE WRAPPER & TYPOGRAPHY
   ========================================================================== */
.dag-contact-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-contact-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

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

.dag-contact-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-contact-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-contact-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-contact-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

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

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

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

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

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

.dag-contact-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 28px;
  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-contact-btn-gold:hover {
  background: #C59B53;
  color: #0A1626;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(213, 167, 99, 0.38);
}

.dag-contact-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-contact-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #D5A763;
  color: #D5A763;
  transform: translateY(-2px);
}

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

.dag-contact-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-contact-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

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

/* ==========================================================================
   3. SECTION: CONTACT FORM & DETAILS (SPLIT SECTION ON WARM ALABASTER #FAF9F6)
   ========================================================================== */
.dag-contact-main {
  padding: 95px 0 100px 0;
  background-color: #FAF9F6;
}

.dag-contact-split-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: flex-start;
}

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

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

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

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

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

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

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

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

.dag-cnt-field input[type="text"],
.dag-cnt-field input[type="email"],
.dag-cnt-field input[type="tel"],
.dag-cnt-field select,
.dag-cnt-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-cnt-field input:focus,
.dag-cnt-field select:focus,
.dag-cnt-field textarea:focus {
  border-color: #D5A763;
  outline: none;
  box-shadow: 0 0 0 3px rgba(213, 167, 99, 0.18);
}

.dag-cnt-field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg2+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230A1626' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.dag-cnt-field textarea {
  resize: vertical;
  min-height: 110px;
}

.dag-contact-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-contact-submit-btn:hover {
  background: #C59B53;
  box-shadow: 0 6px 18px rgba(213, 167, 99, 0.35);
  transform: translateY(-1px);
}

.dag-contact-submit-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.dag-contact-submit-btn .dag-btn-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(10, 22, 38, 0.25);
  border-top-color: #0A1626;
  border-radius: 50%;
  animation: dagSpin 0.75s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

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

.dag-contact-disclaimer {
  font-size: 12px;
  color: #64748B;
  text-align: center;
  margin-top: 10px;
  line-height: 1.4;
}

.dag-form-feedback {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  display: none;
  box-sizing: border-box;
  animation: dagFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dagFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.dag-form-feedback.success {
  display: block !important;
  background: #ECFDF5 !important;
  color: #065F46 !important;
  border: 1.5px solid #10B981 !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.15) !important;
}

.dag-form-feedback.error {
  display: block !important;
  background: #FEF2F2 !important;
  color: #991B1B !important;
  border: 1.5px solid #EF4444 !important;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.15) !important;
}

.dag-feedback-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.dag-feedback-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.dag-form-feedback.success .dag-feedback-icon {
  background: #10B981;
  color: #FFFFFF;
}

.dag-form-feedback.error .dag-feedback-icon {
  background: #EF4444;
  color: #FFFFFF;
}

.dag-feedback-content {
  flex-grow: 1;
}

.dag-feedback-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
  color: inherit;
}

.dag-feedback-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: inherit;
  opacity: 0.95;
}

/* Right Column: 4 Direct Agency Details Cards + Map */
.dag-contact-details-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dag-contact-info-card {
  background-color: #FFFFFF;
  border: 1px solid #EAE6DE;
  border-radius: 10px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(10, 22, 38, 0.03);
}

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

.dag-contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #F8F5EE;
  color: #D5A763;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.dag-contact-info-card:hover .dag-contact-info-icon {
  background-color: #D5A763;
  color: #0A1626;
}

.dag-contact-info-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.dag-contact-info-body {
  flex-grow: 1;
}

.dag-contact-info-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #64748B;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.dag-contact-info-val {
  font-size: 15px;
  font-weight: 600;
  color: #0A1626;
  margin: 0;
  transition: color 0.2s ease;
}

.dag-contact-info-card:hover .dag-contact-info-val {
  color: #D5A763;
}

/* Styled Location Map Card & Google Maps Embed */
.dag-contact-map-card {
  background-color: #FFFFFF;
  border: 1px solid #EAE6DE;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(10, 22, 38, 0.04);
  position: relative;
  aspect-ratio: 16 / 11;
  min-height: 350px;
  margin-top: 6px;
}

.dag-contact-map-card iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  border: 0 !important;
  display: block;
}

.dag-contact-custom-map {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #E6EAE5;
  overflow: hidden;
  user-select: none;
}

.dag-map-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Map Pin & Tooltip - Positioned at 275 Milne Road, Modbury North */
.dag-map-pin-container {
  position: absolute;
  top: 24%;
  left: 71%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.dag-map-pin {
  width: 32px;
  height: 32px;
  background: #D5A763;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  border: 2px solid #FFFFFF;
  flex-shrink: 0;
  animation: dagPinPulse 2.5s infinite;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.dag-map-pin:hover {
  transform: rotate(-45deg) scale(1.08);
}

.dag-map-pin-inner {
  transform: rotate(45deg);
  width: 14px;
  height: 14px;
  color: #0A1626;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dag-map-pin-inner svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.dag-map-tooltip {
  background: rgba(10, 22, 38, 0.94);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 11px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(213, 167, 99, 0.35);
  white-space: nowrap;
}

.dag-map-tooltip-title {
  font-weight: 700;
  color: #D5A763;
  margin-bottom: 2px;
  font-size: 11.5px;
}

.dag-map-tooltip-addr {
  color: #E2E8F0;
  font-size: 10.5px;
  margin-bottom: 3px;
}

.dag-map-tooltip-link {
  display: inline-block;
  color: #D5A763;
  font-size: 10px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.dag-map-tooltip-link:hover {
  color: #FFFFFF;
}

/* Floating Google Maps Action Button on Map Card */
.dag-map-gmaps-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 22, 38, 0.88);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(213, 167, 99, 0.35);
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.dag-map-gmaps-btn:hover {
  background: #D5A763;
  color: #0A1626;
  border-color: #D5A763;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(213, 167, 99, 0.3);
}

@keyframes dagPinPulse {
  0% { box-shadow: 0 0 0 0 rgba(213, 167, 99, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(213, 167, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(213, 167, 99, 0); }
}

/* ==========================================================================
   4. SECTION: AREAS WE SERVE (PURE WHITE #FFFFFF)
   ========================================================================== */
.dag-contact-areas {
  padding: 95px 0 100px 0;
  background-color: #FFFFFF;
  border-top: 1px solid #ECE7DE;
}

.dag-contact-areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.dag-contact-areas-content {
  padding-right: 12px;
}

.dag-contact-areas-content .dag-contact-heading {
  font-size: 34px;
  margin-bottom: 14px;
}

.dag-contact-areas-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #64748B;
  margin: 0 0 32px 0;
  max-width: 520px;
}

/* Suburb Pill Badges */
.dag-contact-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dag-contact-pill {
  display: inline-block;
  background-color: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 24px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.dag-contact-pill:hover {
  background-color: #FAF9F6;
  border-color: #D5A763;
  color: #0A1626;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(213, 167, 99, 0.2);
}

.dag-contact-areas-media {
  position: relative;
}

.dag-contact-areas-img-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(10, 22, 38, 0.08);
  border: 1px solid #E2DED5;
  aspect-ratio: 16 / 10.5;
  background: #E2E8F0;
}

.dag-contact-areas-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.dag-contact-areas-img-card:hover img {
  transform: scale(1.025);
}

.dag-contact-areas-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);
}

/* ==========================================================================
   5. SECTION: CONSULTATION BANNER ("READY TO MAKE YOUR MOVE?")
   Full-width warm champagne sand background (#EFE9DA) directly above footer
   ========================================================================== */
.dag-contact-cta {
  background-color: #EFE9DA;
  padding: 95px 0 105px 0;
  text-align: center;
  position: relative;
  width: 100%;
}

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

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

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

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

.dag-contact-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-contact-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);
}

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

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

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

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

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

  .dag-contact-areas-content .dag-contact-heading,
  .dag-contact-cta .dag-contact-heading {
    font-size: 28px;
  }

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

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

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

@media (max-width: 575px) {
  .dag-contact-map-card {
    aspect-ratio: auto;
    min-height: 300px;
    height: 320px;
  }

  .dag-map-pin-container {
    top: 26%;
    left: 70%;
    gap: 8px;
  }

  .dag-map-tooltip {
    padding: 6px 10px;
    font-size: 10px;
  }

  .dag-map-tooltip-title {
    font-size: 10.5px;
  }

  .dag-map-tooltip-addr {
    font-size: 9.5px;
  }

  .dag-map-gmaps-btn {
    bottom: 8px;
    right: 8px;
    padding: 5px 10px;
    font-size: 10px;
  }
}
