/* =========================================================================
   CONTACT PAGE STYLESHEET (Leopard Safari)
   Matching desktop and mobile layouts in reference screenshot.
   Inherits design tokens and base components.
   ========================================================================= */

/* --- 1. HERO SECTION --- */
.contact-hero {
  position: relative;
  width: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: 130px 0 60px;
  background-color: var(--primary);
  overflow: hidden;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.contact-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: contrast(1.04) brightness(1.02);
}

.contact-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(10, 15, 12, 0.88) 0%,
    rgba(10, 15, 12, 0.68) 32%,
    rgba(10, 15, 12, 0.22) 58%,
    rgba(10, 15, 12, 0) 74%
  );
  pointer-events: none;
}

.contact-hero-container {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.contact-hero-content {
  max-width: 620px;
}

.contact-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.contact-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw + 1rem, 3.8rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.contact-hero-desc {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.3vw + 0.9rem, 1.08rem);
  line-height: 1.55;
  color: rgba(235, 231, 223, 0.9);
  max-width: 520px;
}

/* Script Accent on right (Caveat Handwriting) */
.contact-hero-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-right: var(--space-lg);
}

.contact-script-badge {
  font-family: 'Caveat', cursive;
  font-size: clamp(2.2rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
  transform: rotate(-6deg);
  letter-spacing: 0.02em;
}

/* Navbar active state underline matching Reference */
.site-header .nav-link.active {
  position: relative;
  color: var(--white) !important;
}

.site-header .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
}

/* --- 2. CONTACT INFORMATION STRIP --- */
.contact-strip-section {
  background-color: var(--white);
  border-bottom: 1px solid rgba(104, 112, 82, 0.16);
  box-shadow: 0 2px 10px rgba(31, 48, 37, 0.03);
}

.contact-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.contact-strip-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 20px;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: background-color var(--transition-fast);
}

.contact-strip-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: rgba(104, 112, 82, 0.2);
}

.contact-strip-item:hover {
  background-color: rgba(182, 92, 58, 0.02);
}

.contact-strip-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cta);
}

.contact-strip-icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.contact-strip-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-strip-title {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.contact-strip-main {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.contact-strip-sub {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Mobile Quick Bar (Hidden on desktop) */
.contact-mobile-bar {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  background-color: var(--white);
  border-bottom: 1px solid rgba(104, 112, 82, 0.16);
  padding: 14px 0;
}

.contact-mobile-action-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
  padding: 2px 4px;
}

.contact-mobile-action-btn:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: rgba(104, 112, 82, 0.2);
}

.contact-mobile-action-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--cta);
  stroke-width: 1.8;
  fill: none;
}

.contact-mobile-action-btn span {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text);
}

/* --- 3. MAIN CONTENT AREA --- */
.contact-section {
  background-color: var(--background);
  padding: 56px 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 58% 42%;
  gap: 36px;
  align-items: start;
}

/* --- 4. LEFT COLUMN: CONTACT FORM --- */
.contact-form-card {
  background-color: var(--white);
  border: 1px solid rgba(104, 112, 82, 0.18);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

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

.contact-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cta);
  margin-bottom: 6px;
}

.contact-main-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 8px;
}

.contact-form-desc {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.form-row {
  margin-bottom: 20px;
}

.form-row-grid-phone {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 14px;
}

.phone-whatsapp-sub {
  margin-top: 10px;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.field-label .required-star {
  color: #C33B32;
  margin-left: 2px;
}

.field-label-aside {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon-left {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  color: var(--secondary);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.input-icon-left svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.field-control {
  width: 100%;
  height: 48px;
  padding: 10px 14px 10px 44px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background-color: var(--white);
  border: 1px solid rgba(104, 112, 82, 0.25);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.field-control::placeholder {
  color: #8C9286;
  font-weight: 400;
}

.field-control:focus {
  outline: none;
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(182, 92, 58, 0.12);
}

.field-control.error {
  border-color: #C33B32;
  background-color: #FFF9F8;
}

.field-error-msg {
  display: none;
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: #C33B32;
  margin-top: 5px;
}

.field-control.error + .field-error-msg {
  display: block;
}

/* Country Code Selector */
.country-code-select-wrap {
  position: relative;
}

.country-code-select-wrap .country-flag {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  z-index: 2;
  pointer-events: none;
}

.country-code-select {
  padding-left: 38px !important;
  font-size: 0.88rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23687052' stroke-width='2' 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;
  background-size: 16px;
}

/* Select inputs */
select.field-control {
  cursor: pointer;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23687052' stroke-width='2' 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;
  background-size: 16px;
}

/* WhatsApp Checkbox */
.same-whatsapp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.same-whatsapp-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  user-select: none;
}

.same-whatsapp-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--cta);
  cursor: pointer;
}

/* Textarea */
.textarea-wrap {
  position: relative;
}

.textarea-wrap .input-icon-left {
  top: 14px;
}

textarea.field-control {
  height: 120px;
  padding: 12px 14px 28px 44px;
  resize: none;
  line-height: 1.5;
}

.char-counter {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: var(--text-muted);
  pointer-events: none;
}

/* Submit CTA */
.contact-submit-btn {
  width: 100%;
  height: 52px;
  background-color: var(--cta);
  color: var(--white);
  border: 1px solid var(--cta);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all var(--transition-normal);
  margin-top: 24px;
  box-shadow: 0 4px 18px rgba(182, 92, 58, 0.25);
}

.contact-submit-btn:hover {
  background-color: var(--cta-hover);
  border-color: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(182, 92, 58, 0.32);
}

.contact-submit-btn .submit-arrow {
  transition: transform var(--transition-fast);
}

.contact-submit-btn:hover .submit-arrow {
  transform: translateX(4px);
}

.contact-submit-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

/* Security text */
.contact-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.contact-security-note svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  color: var(--secondary);
  flex-shrink: 0;
}

.security-text-lines {
  display: flex;
  flex-direction: row;
  gap: 4px;
  line-height: 1.35;
  text-align: center;
}

.promo-card-badge {
  display: none;
}

/* In-Form Success Banner */
.contact-success-banner {
  display: none;
  background-color: rgba(46, 125, 50, 0.08);
  border: 1.5px solid #2E7D32;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 20px;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.contact-success-banner.active {
  display: block;
}

.contact-success-banner h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #1F3025;
  margin-bottom: 4px;
}

.contact-success-banner p {
  font-family: var(--font-body);
  font-size: 0.86rem;
  color: #2E7D32;
}

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

/* --- 5. RIGHT COLUMN: PROMOTIONAL CARD & MAP --- */
.contact-sidebar-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Promotional Card */
.promo-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 290px;
  display: flex;
  align-items: flex-end;
}

.promo-card-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.promo-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.promo-card:hover .promo-card-bg img {
  transform: scale(1.03);
}

.promo-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(14, 23, 18, 0.1) 0%,
    rgba(14, 23, 18, 0.6) 40%,
    rgba(14, 23, 18, 0.94) 100%
  );
}

.promo-card-content {
  position: relative;
  z-index: 3;
  padding: 24px 26px;
  width: 100%;
}

.promo-card-divider {
  width: 28px;
  height: 2px;
  background-color: var(--accent);
  margin-bottom: 12px;
  border-radius: 2px;
}

.promo-card-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.22;
  color: var(--white);
  margin-bottom: 8px;
}

.promo-card-desc {
  font-family: var(--font-body);
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(235, 231, 223, 0.9);
}

.promo-card-arrow {
  display: none;
  color: var(--white);
  font-size: 1.4rem;
  margin-left: auto;
}

/* Map Card */
.map-card {
  background-color: var(--white);
  border: 1px solid rgba(104, 112, 82, 0.18);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.map-card-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.map-container {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(104, 112, 82, 0.16);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- 6. RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-hero-aside {
    display: none;
  }
}

@media (max-width: 767px) {
  .contact-hero {
    min-height: 520px;
    padding: 110px 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .contact-hero-bg img {
    object-position: 78% 20%;
    filter: contrast(1.08) brightness(1.08) saturate(1.08);
  }

  .contact-hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(10, 15, 12, 0.3) 0%,
      rgba(10, 15, 12, 0.6) 42%,
      rgba(10, 15, 12, 0.9) 100%
    );
  }

  .contact-hero-eyebrow {
    font-size: 0.74rem;
    margin-bottom: 4px;
  }

  .contact-hero-title {
    font-size: 2.15rem;
    line-height: 1.14;
    margin-bottom: 8px;
  }

  .contact-hero-desc {
    font-size: 0.86rem;
    line-height: 1.45;
    max-width: 280px;
  }

  /* Hide Desktop Strip and show Mobile Quick Bar */
  .contact-strip-section {
    display: none;
  }

  .contact-mobile-bar {
    display: grid;
  }

  .contact-section {
    padding: 24px 0 100px;
  }

  .contact-form-card {
    padding: 22px 16px;
  }

  .contact-main-title {
    font-size: 1.85rem;
    line-height: 1.18;
    margin-bottom: 6px;
  }

  .contact-form-desc {
    font-size: 0.84rem;
    margin-bottom: 18px;
  }

  .field-label-aside {
    display: none;
  }

  .form-row-grid-phone {
    grid-template-columns: 104px 1fr;
    gap: 8px;
  }

  .phone-whatsapp-sub {
    grid-column: 1 / -1;
    margin-top: 6px;
  }

  .security-text-lines {
    flex-direction: column;
    text-align: left;
  }

  .country-code-select {
    padding-left: 34px !important;
    padding-right: 22px;
    font-size: 0.84rem;
  }

  .field-control {
    font-size: 0.88rem;
    height: 46px;
  }

  /* Mobile Promotional Card Banner */
  .promo-card {
    min-height: 76px;
    height: 76px;
    padding: 12px 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
  }

  .promo-card-badge {
    display: flex;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1.5px solid rgba(235, 231, 223, 0.45);
    background: rgba(31, 48, 37, 0.4);
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    position: relative;
    z-index: 3;
  }

  .promo-card-badge svg {
    width: 20px;
    height: 20px;
  }

  .promo-card-content {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }

  .promo-card-divider {
    display: none;
  }

  .promo-card-title {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0;
    color: var(--white);
  }

  .promo-card-desc {
    display: none;
  }

  .promo-card-arrow {
    display: block;
    font-size: 1.25rem;
    color: var(--white);
    margin-left: auto;
  }

  .map-card {
    margin-top: 14px;
    padding: 16px;
  }

  .map-container {
    height: 200px;
  }
}
