/* contact-us-v2.css - Contact Us V2 static rebuild. */

.ha-contact-v2 {
  background: var(--white);
  color: var(--text);
}

.ha-contact-wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.ha-contact-hero {
  height: 250px;
  min-height: 250px;
}

.ha-contact-message,
.ha-contact-offices {
  padding: var(--space-8) 0;
}

.ha-contact-offices {
  background: var(--white);
  scroll-margin-top: var(--space-10);
}

.ha-contact-message {
  background: var(--bg);
}

.ha-contact-section-head {
  max-width: 760px;
  margin-bottom: var(--space-7);
}

.ha-contact-section-head h2,
.ha-contact-form-copy h2 {
  font-family: "Fields Display", "DM Serif Display", Georgia, serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 var(--space-4);
}

.ha-contact-section-head p,
.ha-contact-form-copy p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

.ha-contact-detail-list {
  display: grid;
  gap: var(--space-4);
}

.ha-contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--text);
  padding: var(--space-2) 0;
  transition: color var(--transition-base), transform var(--transition-base);
}

.ha-contact-method:hover {
  color: var(--green);
  transform: translateX(var(--space-1));
}

.ha-contact-method-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--green);
  border-radius: var(--radius-md);
}

.ha-contact-method-icon svg {
  width: 24px;
  height: 24px;
}

.ha-contact-method-copy {
  display: grid;
  gap: var(--space-1);
}

.ha-contact-method-copy strong {
  display: block;
  font-size: 20px;
  line-height: 1.3;
}

.ha-contact-method-copy > span {
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  word-break: break-word;
}

.ha-contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.ha-contact-socials a {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--green);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: transform var(--transition-base), color var(--transition-base), background var(--transition-base), border-color var(--transition-base);
}

.ha-contact-socials a:hover {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-2px);
}

.ha-contact-socials svg {
  width: 20px;
  height: 20px;
}

.ha-contact-message-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: var(--space-7);
  align-items: start;
}

.ha-contact-form-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ha-contact-details {
  display: grid;
  width: 100%;
  max-width: 520px;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.ha-contact-details .ha-contact-socials {
  margin-top: 0;
}

.ha-contact-form {
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.ha-v2-form {
  display: grid;
  gap: var(--space-4);
}

.ha-contact-form-head {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.ha-contact-form-head h3 {
  font-family: "Oakes Grotesk", "Inter", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.ha-contact-form-head p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.ha-v2-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.ha-v2-span-2 {
  grid-column: 1 / -1;
}

.ha-v2-span-2[hidden] {
  display: none;
}

.ha-v2-field {
  display: grid;
  gap: 6px;
}

.ha-v2-field label,
.ha-v2-field legend {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.ha-v2-required {
  margin-left: var(--space-1);
  color: var(--pink);
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
}

.ha-v2-field input,
.ha-v2-field select,
.ha-v2-field textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 0.15s ease;
}

.ha-v2-field select {
  padding: 12px 38px 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}

.ha-v2-field input:hover,
.ha-v2-field select:hover,
.ha-v2-field textarea:hover {
  border-color: var(--green);
}

.ha-v2-field textarea {
  min-height: 144px;
  resize: vertical;
}

.ha-v2-field input:focus,
.ha-v2-field select:focus,
.ha-v2-field textarea:focus {
  border-color: var(--green);
  box-shadow: none;
  outline: none;
}

.ha-v2-select-wrap {
  position: relative;
}

/* Native select stays in the DOM for form data and validation, custom select is the visible control. */
.ha-v2-select-wrap .ha-v2-native-select {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 1px;
  height: 1px;
  min-height: 1px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.ha-v2-select-wrap .ha-spo-custom-select {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 38px 12px 14px;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.ha-v2-select-wrap .ha-spo-custom-select:hover,
.ha-v2-select-wrap .ha-spo-custom-select.open {
  border-color: var(--green);
}

.ha-v2-select-wrap .ha-spo-custom-select:focus,
.ha-v2-select-wrap .ha-spo-custom-select:focus-visible {
  border-color: var(--green);
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.ha-v2-select-wrap .ha-spo-select-arrow {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.ha-v2-select-wrap .ha-spo-custom-select.open + .ha-spo-select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.ha-v2-select-wrap .ha-spo-select-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ha-v2-select-wrap .ha-spo-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 99999;
  display: none;
  max-height: 220px;
  overflow-y: auto;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.ha-v2-select-wrap .ha-spo-dropdown.open {
  display: block;
}

.ha-v2-select-wrap .ha-spo-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 11px var(--space-4);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ha-v2-select-wrap .ha-spo-dropdown-item:hover,
.ha-v2-select-wrap .ha-spo-dropdown-item:focus {
  background: var(--bg);
  outline: none;
}

.ha-v2-select-wrap .ha-spo-dropdown-item.selected {
  color: var(--green);
  background: var(--green-light);
  font-weight: 600;
}

.ha-v2-select-wrap .ha-v2-native-select[aria-invalid="true"] + .ha-spo-custom-select,
.ha-v2-select-wrap .ha-spo-custom-select[aria-invalid="true"] {
  border-color: var(--pink);
}

.ha-saf-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--white);
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ha-saf-dropzone:hover,
.ha-saf-dropzone:focus-within {
  background: var(--green-faint);
  border-color: var(--green);
}

/* Input covers the zone so native drag-and-drop keeps working. */
.ha-saf-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.ha-saf-dropzone-icon {
  display: inline-flex;
  color: var(--green);
}

.ha-saf-dropzone-icon svg {
  width: 20px;
  height: 20px;
}

.ha-saf-dropzone-copy {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
}

.ha-saf-dropzone-copy strong {
  color: var(--green);
  font-weight: 700;
}

.ha-saf-dropzone:has(input[aria-invalid="true"]) {
  border-color: var(--pink);
}

.ha-v2-upload-note {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.ha-v2-upload-preview[hidden] {
  display: none;
}

.ha-v2-upload-preview-link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3);
  background: var(--green-faint);
  border: 1px solid rgba(1, 170, 1, 0.2);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ha-v2-upload-preview-link:hover,
.ha-v2-upload-preview-link:focus-visible {
  background: rgba(1, 170, 1, 0.1);
  border-color: rgba(1, 170, 1, 0.45);
  transform: translateY(-2px);
  outline: none;
}

.ha-v2-upload-preview-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-muted);
}

.ha-v2-upload-preview-icon {
  width: 28px;
  height: 28px;
}

.ha-v2-upload-preview-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

.ha-v2-upload-preview-copy strong,
.ha-v2-upload-preview-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ha-v2-upload-preview-copy strong {
  font-weight: 700;
  white-space: nowrap;
}

.ha-v2-upload-preview-copy span {
  color: var(--text-muted);
}

.ha-v2-field [aria-invalid="true"] {
  border-color: var(--pink);
}

.ha-v2-field-error {
  color: var(--pink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  margin: -2px 0 0;
}

.ha-v2-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ha-v2-form-alert {
  display: none;
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1.5;
}

.ha-v2-form-alert.is-visible {
  display: block;
}

.ha-v2-form-alert.is-success {
  color: var(--green-dark);
  background: var(--green-faint);
  border: 1px solid rgba(1, 170, 1, 0.24);
}

.ha-v2-form-alert.is-error {
  color: var(--pink);
  background: rgba(216, 20, 115, 0.08);
  border: 1px solid rgba(216, 20, 115, 0.24);
}

.ha-v2-submit {
  display: inline-flex;
  width: fit-content;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  color: var(--white);
  background: var(--pink);
  border: 0;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), opacity var(--transition-base);
}

.ha-v2-submit:hover:not(:disabled) {
  color: var(--white);
  background: var(--pink-dark);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(216, 20, 115, 0.5);
}

.ha-v2-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.ha-contact-offices-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--space-6);
  align-items: stretch;
}

.ha-contact-offices-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.ha-office-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ha-accordion-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.ha-accordion-item:hover {
  border-color: var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ha-accordion-item.is-active {
  border-color: var(--green);
  box-shadow: 0 4px 16px rgba(1, 170, 1, 0.08);
}

.ha-accordion-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: none;
  border: none;
  text-align: left;
  font-family: "Oakes Grotesk", "Inter", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: background var(--transition-fast);
}

.ha-accordion-header:hover {
  background: var(--bg);
}

.ha-btn-indicator {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background var(--transition-base), transform var(--transition-base);
}

.ha-accordion-item.is-active .ha-btn-indicator {
  background: var(--green);
  transform: scale(1.3);
}

.ha-accordion-chevron {
  transition: transform var(--transition-base);
  margin-left: auto;
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

.ha-accordion-item.is-active .ha-accordion-chevron {
  transform: rotate(180deg);
  color: var(--green);
}

.ha-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), opacity var(--transition-base);
  opacity: 0;
}

.ha-accordion-item.is-active .ha-accordion-content {
  max-height: 300px;
  opacity: 1;
}

.ha-office-details-inner {
  padding: 0 var(--space-5) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  animation: fadeIn 0.3s ease;
}

.ha-office-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  background: var(--pink);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 10px rgba(216, 20, 115, 0.2);
}

.ha-office-address,
.ha-office-phone,
.ha-office-email {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.ha-office-address svg,
.ha-office-phone svg,
.ha-office-email svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--green);
}

.ha-office-phone a,
.ha-office-email a {
  color: var(--pink);
  font-weight: 700;
  transition: color var(--transition-fast);
}

.ha-office-phone a:hover,
.ha-office-email a:hover {
  color: var(--pink-dark);
}

.ha-google-maps-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  margin-top: var(--space-2);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.ha-google-maps-link:hover {
  color: var(--green-dark);
  transform: translateX(2px);
}

.ha-google-maps-link svg {
  width: 14px;
  height: 14px;
}

.ha-contact-map-container {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  position: relative;
  z-index: 1;
}

#ha-contact-map {
  width: 100%;
  height: 100%;
  min-height: 480px;
  background: var(--bg);
}

.ha-contact-map-container .leaflet-container,
.ha-contact-map-container .leaflet-pane,
.ha-contact-map-container .leaflet-top,
.ha-contact-map-container .leaflet-bottom {
  z-index: 1;
}

.ha-contact-map-container .leaflet-popup-pane,
.ha-contact-map-container .leaflet-control-container {
  z-index: 2;
}

/* Ensure leaflet popup follows the style rules */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  padding: var(--space-2);
}

.leaflet-popup-tip {
  box-shadow: var(--shadow-sm);
}

@media (max-width: 991px) {
  .ha-contact-message-grid {
    grid-template-columns: 1fr;
  }

  .ha-contact-form-copy {
    max-width: 760px;
  }

  .ha-contact-offices-layout {
    grid-template-columns: 1fr;
  }

  #ha-contact-map {
    min-height: 380px;
  }
}

@media (max-width: 767px) {
  .ha-contact-wrap {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }

  .ha-v2-form-grid {
    grid-template-columns: 1fr;
  }

  .ha-contact-hero {
    height: 250px;
    min-height: 250px;
  }

  .ha-contact-v2 .ha-hero-content {
    text-align: center;
  }

  .ha-contact-v2 .ha-hero-byline {
    max-width: 100%;
  }

  .ha-contact-section-head p,
  .ha-contact-form-copy p {
    font-size: 16px;
  }

  .ha-contact-section-head h2,
  .ha-contact-form-copy h2 {
    font-size: 32px;
  }

  .ha-contact-message,
  .ha-contact-offices {
    padding: var(--space-7) 0;
  }

  .ha-contact-method-copy strong {
    font-size: 20px;
  }

  .ha-contact-form-head h3 {
    font-size: 20px;
  }

  .ha-contact-form {
    padding: var(--space-5);
  }

  .ha-v2-submit {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .ha-contact-wrap {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}
