/* ==========================================================================
   Jobson Garden — Contact Us Page
   Redesigned to match the reference design layout:
   - Header with "Plan Your Land", large title, and right-aligned subtitle
   - Main grid: Left soft-tint form card, Right portrait photo card with pill
   - 3-column info strip with centered circular icons
   - Bottom discovery promo card with photos
   Strictly adheres to brand theme colors: Canvas White, Tint #F2F7EC,
   Deep Forest Green #2C5F38, Leaf Green #5C9E33, Charcoal Ink #1A231B.
   ========================================================================== */

.contact-page-wrap {
  padding-top: 0.85rem;
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2vw, 1.85rem);
}

/* --- Section 1: Header Area ---------------------------------------------- */

.contact-head {
  display: flex;
  flex-direction: column;
}

.contact-head__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.25rem;
  display: inline-block;
}

.contact-head__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: flex-end;
}

.contact-head__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 3.25rem);
  font-weight: 800;
  color: var(--foreground);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

.contact-head__subtitle {
  font-size: clamp(0.86rem, 1.05vw, 0.98rem);
  line-height: 1.48;
  color: var(--muted-foreground);
  margin: 0;
  max-width: 30rem;
}

/* --- Section 2: Form Container + Feature Photo (Split Layout) ------------ */

.contact-main-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.25rem, 2vw, 1.85rem);
  align-items: stretch;
}

/* Left Column: Form inside a soft light-tint container card */
.contact-card {
  background: var(--secondary); /* #F2F7EC - Tint Surface */
  border-radius: 1.25rem;
  padding: clamp(1.2rem, 2vw, 1.65rem);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(44, 95, 56, 0.05);
}

.contact-booking-form {
  display: flex;
  flex-direction: column;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-field--full {
  margin-bottom: 0.75rem;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--foreground);
  margin-bottom: 0.22rem;
  transition: color 0.2s ease;
}

.contact-field:focus-within .contact-label {
  color: var(--primary);
}

.contact-input {
  background: #FFFFFF;
  border: 1px solid rgba(223, 232, 214, 0.9);
  border-radius: 0.55rem;
  padding: 0.5rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--foreground);
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
}

.contact-input::placeholder {
  /* Was #9AA397 — about 2.6:1 on the white field, which reads as greyed-out
     rather than as a hint, and disappears altogether in daylight on a phone.
     This is the same hue carried far enough down to clear 4.5:1, so the
     example text is legible without competing with what gets typed in. */
  color: #5E6B58;
  font-size: 0.84rem;
  opacity: 1;   /* Firefox dims placeholders by default; undo it. */
}

.contact-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44, 95, 56, 0.12);
}

.contact-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232C5F38' 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 0.8rem center;
  padding-right: 1.85rem;
  cursor: pointer;
}

.contact-textarea {
  resize: vertical;
  min-height: 52px;
  height: 52px;
  padding: 0.45rem 0.8rem;
}

/* Submit Group: Pill Button + Adjacent Circular Arrow Button */
.contact-submit-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.contact-submit-pill {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(44, 95, 56, 0.2);
}

.contact-submit-pill:hover {
  background: var(--leaf);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(44, 95, 56, 0.28);
}

.contact-submit-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(44, 95, 56, 0.2);
}

.contact-submit-circle:hover {
  background: var(--leaf);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(44, 95, 56, 0.28);
}

/* Right Column: Tall Portrait Photo Card with Overlay Pill */
.contact-feature-media {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  height: 100%;
  min-height: 340px;
  box-shadow: 0 10px 30px rgba(44, 95, 56, 0.08);
  background: var(--secondary);
}

.contact-feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-feature-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(26, 35, 27, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Section 3: 3-Column Info Strip with Centered Circular Icons --------- */

/* --- Section 4: Bottom Discovery Promo Card ----------------------------- */

.contact-promo-card {
  background: var(--secondary); /* #F2F7EC */
  border-radius: 2rem;
  padding: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  box-shadow: 0 12px 35px rgba(44, 95, 56, 0.06);
}

.contact-promo-content {
  display: flex;
  flex-direction: column;
}

.contact-promo-pill {
  display: inline-block;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1.25rem;
  align-self: flex-start;
}

.contact-promo-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  color: var(--foreground);
  line-height: 1.15;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

.contact-promo-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted-foreground);
  margin: 0 0 2rem 0;
  max-width: 30rem;
}

.contact-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--primary);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.85rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(44, 95, 56, 0.2);
  align-self: flex-start;
}

.contact-promo-btn:hover {
  background: var(--leaf);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(44, 95, 56, 0.3);
}

.contact-promo-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-promo-photo-card {
  border-radius: 1.25rem;
  overflow: hidden;
  height: clamp(14rem, 20vw, 18rem);
  box-shadow: 0 8px 24px rgba(44, 95, 56, 0.1);
  background: var(--background);
}

.contact-promo-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Responsive Adaptations ---------------------------------------------- */

@media (max-width: 1024px) {
  .contact-head__row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .contact-feature-media {
    min-height: 260px;
    max-height: 320px;
  }
  .contact-promo-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-page-wrap {
    padding-top: 0.5rem;
    gap: 1.15rem;
  }
  .contact-head__eyebrow {
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
  }
  .contact-head__title {
    font-size: clamp(1.85rem, 6vw, 2.35rem);
  }
  .contact-head__subtitle {
    font-size: 0.84rem;
    line-height: 1.45;
  }
  .contact-card {
    padding: 1.15rem 0.95rem;
    border-radius: 1rem;
  }
  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
  }
  .contact-field--full {
    margin-bottom: 0.65rem;
  }
  .contact-label {
    font-size: 0.64rem;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .contact-input {
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
    border-radius: 0.45rem;
    min-height: 36px;
  }
  .contact-select {
    padding-right: 1.6rem;
    background-position: right 0.65rem center;
  }
  .contact-textarea {
    min-height: 46px;
    height: 46px;
    padding: 0.45rem 0.65rem;
  }
  .contact-submit-wrap {
    width: 100%;
    margin-top: 0.15rem;
  }
  .contact-submit-pill {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    font-size: 0.75rem;
  }
  .contact-submit-circle {
    width: 36px;
    height: 36px;
    flex: none;
  }

  .contact-promo-photos {
    grid-template-columns: 1fr;
  }
  .contact-promo-photo-card {
    height: 200px;
  }
}

@media (max-width: 440px) {
  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .contact-input {
    padding: 0.42rem 0.55rem;
    font-size: 0.78rem;
  }
  .contact-label {
    font-size: 0.6rem;
    letter-spacing: 0.03em;
  }
}