/* =========================
   CONTACT PAGE STYLES
   Page-specific styles for Contact
   ========================= */

/* =========================
   INTRO SECTION
   ========================= */
.contact-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  min-width: 0;
}

.contact-intro-content {
  min-width: 0;
  max-width: 100%;
}

.contact-intro-text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.contact-intro-text:last-of-type {
  margin-bottom: 0;
}

/* Contact Card */
.contact-card {
  background: var(--text-white);
  border: 1px solid var(--border-light);
  height: fit-content;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  box-sizing: border-box;
}

.contact-card-header h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-dark);
}

.contact-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-sizing: border-box;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
}

.contact-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.contact-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  max-width: 100%;
}

.contact-item-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-item-value {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dark);
  transition: color 0.2s ease;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-item-value:hover {
  color: var(--primary);
}

/* =========================
   VALUATION FORM SECTION
   ========================= */
.contact-valuation-section {
  background: var(--bg-dark);
}

.valuation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  min-width: 0;
}

.valuation-content {
  min-width: 0;
  max-width: 100%;
}

.valuation-description {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--stone-400);
  margin-bottom: 1rem;
}

.valuation-description:last-of-type {
  margin-bottom: 0;
}

.form-error {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #e07b6a;
  text-transform: uppercase;
}

/* Scale the reCAPTCHA widget to align with your form width */
.g-recaptcha {
  transform-origin: left top;
}

/* Form Wrapper */
.valuation-form-wrapper {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 169, 110, 0.15);
  padding: 1.5rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.valuation-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
  max-width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
}

.form-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-200);
}

.form-label .required {
  color: var(--primary);
}

.form-label .optional {
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--stone-500);
}

.form-input {
  width: 100%;
  max-width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--stone-100);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-input::placeholder {
  color: var(--stone-500);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  padding: 1.125rem 1.5rem;
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-900);
  background: var(--primary);
  border: none;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.form-submit svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.form-submit:hover svg {
  transform: translateX(4px);
}

/* =========================
   CLOSING SECTION
   ========================= */
.contact-closing {
  background: var(--bg-cream);
}

.closing-content {
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
}

.closing-text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.closing-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.closing-phone,
.closing-email {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text-dark);
  transition: color 0.2s ease;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.closing-phone:hover,
.closing-email:hover {
  color: var(--primary);
}

.closing-divider {
  display: none;
  color: var(--text-muted);
  font-weight: 300;
}

/* =========================
   RESPONSIVE - TABLET
   ========================= */
@media (min-width: 768px) {
  .contact-intro-grid {
    grid-template-columns: 1fr 360px;
    gap: 4rem;
    align-items: start;
  }
  
  .contact-intro-content {
    max-width: 540px;
  }
  
  .contact-card-header {
    padding: 1.5rem 2rem;
  }
  
  .contact-card-body {
    padding: 2rem;
  }
  
  .valuation-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
  
  .valuation-content {
    max-width: 500px;
  }
  
  .valuation-form-wrapper {
    padding: 2.5rem;
  }
  
  .closing-content {
    max-width: 600px;
  }
  
  .closing-contact {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }
  
  .closing-phone,
  .closing-email {
    font-size: 1.25rem;
  }
  
  .closing-divider {
    display: inline;
  }
}

/* =========================
   RESPONSIVE - DESKTOP
   ========================= */
@media (min-width: 1024px) {
  .contact-intro-grid {
    grid-template-columns: 1fr 400px;
    gap: 5rem;
  }
  
  .valuation-grid {
    gap: 6rem;
  }
  
  .valuation-form-wrapper {
    padding: 3rem;
  }
  
  .form-submit {
    padding: 1.125rem 2rem;
  }
  
  .closing-phone,
  .closing-email {
    font-size: 1.375rem;
  }
}
