/**
 * Contact Page Styles
 * ====================
 * Responsive contact form with two-column layout on desktop,
 * stacked layout on mobile.
 */

/* =============================================================================
   PAGE CONTAINER
   ============================================================================= */

.contact-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 134px 120px 64px;
}

/* =============================================================================
   CONTACT CARD - Two column layout
   ============================================================================= */

.contact-card {
  display: flex;
  flex-direction: row;
  border-radius: 48px;
  overflow: hidden;
  background-color: var(--color-white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* =============================================================================
   LEFT COLUMN - INFO SECTION
   ============================================================================= */

.contact-info {
  flex: 1;
  background-color: var(--color-primary-800);
  padding: 48px;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info__title {
  color: var(--color-white);
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
  margin: 0;
}

.contact-info__description {
  color: var(--color-primary-100);
  font-size: 16px;
  line-height: 24px;
  margin: 0;
}

.contact-info__separator {
  height: 1px;
  background-color: var(--color-primary-100);
  opacity: 0.125;
}

.contact-info__category {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-info__category-title {
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  margin: 0;
}

.contact-info__category-desc {
  color: var(--color-primary-100);
  font-size: 14px;
  line-height: 20px;
  margin: 0;
}

.contact-info__availability {
  color: var(--color-primary-100);
  font-size: 12px;
  line-height: 16px;
  opacity: 0.5;
  margin: 0;
}

/* =============================================================================
   RIGHT COLUMN - FORM SECTION
   ============================================================================= */

.contact-form-wrapper {
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
}

.contact-form-inner {
  padding: 40px;
  flex: 1;
}

/* =============================================================================
   HUBSPOT FORM CONTAINER
   ============================================================================= */

.hubspot-form-container {
  width: 100%;
  min-height: 400px;
}

/* Style HubSpot form elements to match our design */
.hubspot-form-container .hs-form {
  font-family: inherit;
}

.hubspot-form-container .hs-form-field {
  margin-bottom: 20px;
}

.hubspot-form-container .hs-form-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-neutral-700);
  margin-bottom: 8px;
}

.hubspot-form-container .hs-input {
  width: 100% !important;
  height: 48px;
  padding: 0 16px;
  font-size: 16px;
  border: 1px solid var(--color-neutral-200);
  border-radius: 8px;
  background-color: var(--color-white);
  color: var(--color-neutral-900);
  box-sizing: border-box;
}

.hubspot-form-container .hs-input:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 2px rgba(0, 128, 96, 0.1);
}

.hubspot-form-container textarea.hs-input {
  height: auto;
  min-height: 120px;
  padding: 12px 16px;
  resize: vertical;
}

.hubspot-form-container select.hs-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.hubspot-form-container .hs-button,
.hubspot-form-container .hs-button.primary,
.hubspot-form-container input[type="submit"],
.hubspot-form-container button[type="submit"] {
  width: 100% !important;
  height: 48px !important;
  padding: 0 24px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  color: #ffffff !important;
  background: #059669 !important;
  background-color: #059669 !important;
  background-image: none !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

.hubspot-form-container .hs-button:hover,
.hubspot-form-container .hs-button.primary:hover,
.hubspot-form-container input[type="submit"]:hover,
.hubspot-form-container button[type="submit"]:hover {
  background: #047857 !important;
  background-color: #047857 !important;
  color: #ffffff !important;
}

.hubspot-form-container .hs-error-msgs {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}

.hubspot-form-container .hs-error-msgs li {
  color: var(--color-destructive-600);
  font-size: 14px;
}

.hubspot-form-container .submitted-message {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-primary-800);
  font-size: 18px;
  line-height: 1.6;
}

/* =============================================================================
   MOBILE RESPONSIVE - 1000px breakpoint
   ============================================================================= */

@media (max-width: 1000px) {
  .contact-page {
    padding: 100px 16px 32px;
  }

  /* Stack columns vertically, form on top */
  .contact-card {
    flex-direction: column-reverse;
    border-radius: 24px;
  }

  /* Info section adjustments */
  .contact-info {
    padding: 32px 24px;
    gap: 20px;
    border-radius: 0;
  }

  .contact-info__title {
    font-size: 24px;
    line-height: 32px;
  }

  .contact-info__description {
    font-size: 14px;
    line-height: 22px;
  }

  /* Form wrapper adjustments */
  .contact-form-wrapper {
    padding: 0;
  }

  .contact-form-inner {
    padding: 24px;
  }

  /* HubSpot form mobile adjustments */
  .hubspot-form-container {
    min-height: 350px;
  }

  .hubspot-form-container .hs-input {
    font-size: 16px; /* Prevents iOS auto-zoom */
  }

  .hubspot-form-container textarea.hs-input {
    min-height: 100px;
  }
}
