/* =========================================
   PRECISION LEDGER (2-COLUMN CONTACT)
========================================= */

.page-hero-contact {
  background-image: 
    linear-gradient(to top, var(--color-curtain-black) 0%, transparent 40%),
    url('../assets/images/backgrounds/contact-bg.webp');

  background-position: center 0%;
}

.contact-section {
  padding: 60px var(--section-padding-x) 120px;
  background-color: var(--color-surface-primary);
}

.contact-container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 80px; 
}

/* --- LEFT COLUMN: INFO --- */

.contact-info {
  display: flex;
  flex-direction: column;
  /* Increased the gap between the three main blocks significantly */
  gap: 80px; 
  border-right: 1px solid var(--color-effect-gold-40);
  padding-right: 80px;
}

.info-block {
  display: flex;
  flex-direction: column;
  /* Increased the gap between the gold label and the white text */
  gap: 16px; 
}

.info-label {
  font-family: var(--font-heading);
  /* Scaled up from var(--font-size-xs) to 0.9rem */
  font-size: 0.9rem; 
  color: var(--color-antique-gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.8;
}

.info-details {
  font-family: var(--font-body);
  /* Scaled up from 1.var(--font-size-base) to 1.4rem for much stronger presence */
  font-size: 1.4rem; 
  color: var(--color-text-primary);
  /* Increased line height to give the larger text room to breathe */
  line-height: 1.8; 
}

/* --- RIGHT COLUMN: FORM --- */

.contact-form-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;

  align-items: center;
  width: 100%; 
}

.precision-form {
  display: flex;
  flex-direction: column;
  gap: 32px; /* Slightly tighter gap to fit the card */
  
  /* --- THE MODAL UPGRADE --- */
  background: color-mix(in srgb, var(--color-surface-elevated) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-effect-gold-15);
  
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 
              0 0 20px rgba(0, 0, 0, 0.4) inset;
              
  /* REDUCED WIDTH */
  width: 100%;
  max-width: 500px; 
}

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

.precision-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border-default);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  padding: var(--space-xs) var(--space-0);
  transition: border-color 0.3s ease;
  border-radius: 0;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  position: relative;
}

.input-label {
  font-family: var(--font-heading);
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

/* The hover and focus states for the inputs */
.precision-input:hover {
  border-bottom-color: var(--color-effect-gold-40);
}

.precision-input:focus {
  outline: none;
  border-bottom-color: var(--color-antique-gold);
}

/* Highlight the label when the input is focused */
.precision-input:focus + .input-label,
.precision-input:not(:placeholder-shown) + .input-label {
  color: var(--color-antique-gold);
}

.precision-input.textarea {
  resize: vertical;
  min-height: 100px;
}

/* --- SUBMIT BUTTON --- */

.precision-submit {
  align-self: flex-start;
  background: transparent;
  border: none;
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  padding: var(--space-sm) var(--space-0);
  margin-top: var(--space-md);
  position: relative;
  transition: color 0.3s ease;
}

.precision-submit::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-antique-gold);
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.precision-submit:hover {
  color: var(--color-antique-gold);
}

.precision-submit:hover::after {
  width: 100%;
}

/* --- FULL WIDTH MAP --- */

.map-section {
  width: 100%;
  height: 50vh;
  min-height: 400px;
  background-color: var(--color-surface-alt);
  position: relative;
  border-top: 1px solid var(--color-effect-gold-10);
}

.map-section iframe {
  width: 100%;
  height: inherit;

  filter: var(--map-filter);
}

/* --- MOBILE RESPONSIVENESS --- */

@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr; /* Stacks vertically */
    gap: 60px;
  }
  
  .contact-info {
    border-right: none;
    border-bottom: 1px solid var(--color-effect-gold-15);
    padding-right: 0;
    padding-bottom: 60px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  /* NEW: Scale down form padding and width constraints for mobile */
  .precision-form {
    padding: 32px 24px; 
    max-width: 100%;
  }
}