/* css/new-contact.css */
/* Mobile First Approach */

.nh-contact-section {
  position: relative;
  width: 100%;
  margin: 40px 0 56px 0;

  @media screen and (min-width: 768px) {
    margin: 64px 0;
  }
}

.nh-container {
  width: 100%;
  max-width: var(--container-width, 1110px);
  margin: 0 auto;
  padding: 0 var(--container-padding, 20px);
  position: relative;
}

.nh-contact-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;

  @media screen and (min-width: 991px) {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }
}

.nh-contact-info-panel {
  display: contents;

  @media screen and (min-width: 768px) {
    display: flex;
    flex-direction: column;
    order: 2;
    flex: 1;
    gap: 40px;
  }
}

.nh-contact-options {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;

  @media screen and (min-width: 768px) {
    order: unset;
    flex-direction: row;
    gap: 24px;
  }

  @media screen and (min-width: 991px) and (max-width: 1199px) {
    flex-direction: column;
  }
}

.nh-contact-option-card {
  background-color: var(--color-accent, #004b8c);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-white, #fff);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;

  @media screen and (min-width: 768px) {
    flex: 1;
    padding: 20px;
    gap: 16px;
  }
}

.nh-contact-option-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 75, 140, 0.2);
}

.nh-contact-option-card::after {
  content: '';
  position: absolute;
  top: 20px;
  right: 10px;
  width: 90px;
  height: 90px;
  background: url('https://myserviceanimal.org/wp-content/themes/USAPet/img/new-home/contact-bg-1.svg');
  background-size: contain;
  background-position: center;
  pointer-events: none;
}

.nh-contact-option-card + .nh-contact-option-card:after {
  top: -30px;
  right: -10px;
  transform: rotate(45deg) scale(-1);
}

.nh-contact-option-icon {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  @media screen and (min-width: 768px) {
    width: 48px;
    height: 48px;
  }
}

.nh-contact-option-icon img,
.nh-contact-option-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-white, #fff);

  @media screen and (min-width: 768px) {
    width: 24px;
    height: 24px;
  }
}

.nh-contact-option-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 2;
}

.nh-contact-option-label {
  font-family: var(--font-family, 'Montserrat', sans-serif);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-white, #fff);

  @media screen and (min-width: 768px) {
    font-size: 18px;
    line-height: 22px;
  }
}

.nh-contact-option-value {
  font-family: var(--font-family, 'Montserrat', sans-serif);
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-white, #fff);

  @media screen and (min-width: 768px) {
    font-size: 16px;
    line-height: 24px;
  }
}

/* Extra info under form on mobile */
.nh-contact-extra-info {
  order: 3;
  display: flex;
  flex-direction: column;
  gap: 24px;

  @media screen and (min-width: 768px) {
    order: unset;
    display: flex;
    gap: 40px;
  }
}

/* Form Styles */
.nh-contact-form-wrapper {
  order: 2;
  background-color: var(--color-white, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;

  @media screen and (min-width: 768px) {
    order: 1;
    flex: 0 0 368px;
    gap: 32px;
  }
}

.nh-contact-form-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nh-contact-form-title {
  font-family: var(--font-family, 'Montserrat', sans-serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 28px;
  color: var(--color-text, #1a1e26);
  margin: 0;
}

.nh-contact-form-desc {
  font-family: var(--font-family, 'Montserrat', sans-serif);
  font-weight: 400;
  font-size: 13px;
  line-height: 16px;
  color: var(--color-text, #1a1e26);
  margin: 0;
}

.nh-contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;

  @media screen and (min-width: 768px) {
    gap: 24px;
  }
}

.nh-form-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nh-form-label {
  font-family: var(--font-family, 'Montserrat', sans-serif);
  font-weight: 500;
  font-size: 13px;
  line-height: 16px;
  color: var(--color-text, #1a1e26);
  margin: 0;
}

.nh-contact-form .nh-form-input {
  background-color: var(--color-bg-secondary, #fafafa);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 12px;
  padding: 12px 16px;
  min-height: 48px;
  font-family: var(--font-family, 'Montserrat', sans-serif);
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-text, #1a1e26);
  width: 100%;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.nh-contact-form .nh-form-input::placeholder {
  color: var(--color-icon-gray, #9ca2ad);
}

.nh-contact-form .nh-form-input:focus {
  outline: none;
  border-color: var(--color-accent, #004b8c);
  background-color: var(--color-white, #fff);
}

.nh-contact-form textarea.nh-form-input {
  min-height: 120px;
  resize: vertical;
}

.nh-form-submit {
  background-color: var(--color-accent, #004b8c);
  color: var(--color-white, #fff);
  border: none;
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--font-family, 'Montserrat', sans-serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
  width: 100%;
  text-align: center;
}

.nh-form-submit:hover {
  font-weight: 700;
  background-color: #003a6d;
}

.nh-form-alert {
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  font-family: var(--font-family, 'Montserrat', sans-serif);
}

.nh-form-alert.success {
  background-color: #e6f9ed;
  color: var(--color-success, #00c950);
  border: 1px solid #b3eccc;
}

.nh-form-alert.error {
  background-color: var(--color-error-bg, #fef2f2);
  color: var(--color-error, #f54336);
  border: 1px solid var(--color-error-border, #ffc9c9);
}

.nh-info-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.nh-info-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-icon-gray, #9ca2ad);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nh-info-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.nh-info-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nh-info-content p {
  font-family: var(--font-family, 'Montserrat', sans-serif);
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-text-secondary, #485664);
  margin: 0;
}

.nh-info-content p strong {
  color: var(--color-text, #1a1e26);
  text-decoration: underline;
  text-decoration-skip-ink: none;
  font-weight: 500;
}

.nh-info-title {
  font-family: var(--font-family, 'Montserrat', sans-serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
  color: var(--color-text, #1a1e26);
  margin: 0;
}

.nh-info-text-large {
  font-family: var(--font-family, 'Montserrat', sans-serif);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text, #1a1e26);
  margin: 0;
}

/* ---------- FAQ ---------- */
.nh-contact-faq {
  display: flex;
  flex-direction: column;
  margin: 40px 0;
  background-color: var(--color-white, #fff);

  @media screen and (min-width: 768px) {
    margin: 64px 0;
  }
}

.nh-contact-section-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 28px;
  color: var(--color-text, #1a1e26);
  margin: 0 !important;
  padding-bottom: 24px;
  text-align: left;

  @media screen and (min-width: 768px) {
    margin: 0;
  }
}

.nh-contact-faq-list {
  display: flex;
  flex-direction: column;
}

.nh-contact-faq-item {
  border-bottom: 1px solid #dfdfdf;
}

.nh-contact-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  outline: none;
}

.nh-contact-faq-question:focus {
  outline: none;
}

.nh-contact-faq-qtext {
  flex: 1;
  font-family: var(--font-family, 'Montserrat', sans-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  color: var(--color-text, #1a1e26);

  @media screen and (min-width: 768px) {
    font-size: 18px;
    line-height: 24px;
  }
}

.nh-contact-faq-icon {
  width: 36px;
  height: 36px;
  border-radius: 33px;
  background: #f6f6f6;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.nh-contact-faq-icon::before,
.nh-contact-faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-accent, #004b8c);
  border-radius: 2px;
}

.nh-contact-faq-icon::before {
  width: 12px;
  height: 2px;
}

.nh-contact-faq-icon::after {
  width: 2px;
  height: 12px;
  transition: opacity 0.3s ease;
}

.nh-contact-faq-item.is-open .nh-contact-faq-icon::after {
  opacity: 0;
}

.nh-contact-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.nh-contact-faq-inner {
  padding-bottom: 16px;
  padding-right: 0;
  font-family: var(--font-family, 'Montserrat', sans-serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: var(--color-text-secondary, #485664);
  text-align: left;

  @media screen and (min-width: 768px) {
    padding-right: 60px; /* space for icon alignment */
    font-size: 14px;
    line-height: 22px;
  }
}

.nh-contact-faq-inner p {
  margin: 0 0 10px 0;
}

.nh-contact-faq-inner p:last-child {
  margin-bottom: 0;
}
