/* Contact — About hero + split copy / form sections */

@media (min-width: 900px) {
  html.se-contact-page:not(.se-quote-page) main.se-contact {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  html.se-contact-page:not(.se-quote-page) .se-contact-split--solo {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding-block: clamp(3.5rem, 10vh, 6rem);
  }

  html.se-quote-page main.se-contact {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  html.se-quote-page .se-contact-split--solo {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 12rem);
    padding-block: clamp(4rem, 10vh, 7rem);
  }
}

.se-contact-split {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.se-contact-split--solo {
  padding-bottom: clamp(4rem, 10vw, 6rem);
}

.se-contact-split--quote {
  padding-bottom: clamp(4rem, 10vw, 6rem);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.se-contact-split__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}

@media (min-width: 900px) {
  .se-contact-split__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2.5rem, 6vw, 5rem);
  }
}

.se-contact-split__copy {
  max-width: min(28rem, 100%);
}

.se-contact-split__heading {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 38px) !important;
  line-height: var(--se-lh, 1.3) !important;
  letter-spacing: var(--se-tracking, -0.2px) !important;
  font-weight: 400 !important;
  text-align: left !important;
  color: var(--about-fg, #191817);
}

.se-contact-split__copy p {
  margin: 0 0 0.75rem;
  font-size: var(--se-body-size, 15px) !important;
  line-height: var(--se-lh, 1.3) !important;
  color: var(--about-fg, #191817);
}

.se-contact-split__copy p:last-child {
  margin-bottom: 0;
}

.se-contact-split__meta {
  color: var(--about-muted, rgba(25, 24, 23, 0.72));
}

/* Contact hero — sit lower; quote keeps its own rhythm */
html.se-contact-page:not(.se-quote-page) .se-about-hero {
  padding-top: clamp(2.75rem, 7vh, 4.25rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

html.se-quote-page .se-about-hero {
  padding-top: clamp(2.75rem, 7vh, 4.25rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

html.se-contact-page .se-about-hero__title {
  margin-top: 15px;
}

html.se-quote-page .se-about-hero__title {
  margin-top: 0.35rem;
}

.se-contact-split__alt {
  margin-top: 2.1rem !important;
  padding-top: 0.65rem;
}

.se-contact-split__copy a.se-stay-ul,
.se-contact-split__meta a.se-stay-ul,
.se-contact-split__alt a.se-stay-ul {
  color: inherit;
}

/* Email only: static underline, no draw on hover */
.se-contact-split__meta a.se-stay-ul:hover::after,
.se-contact-split__meta a.se-stay-ul:focus-visible::after {
  animation: none !important;
  clip-path: inset(0 0 0 0) !important;
  -webkit-clip-path: inset(0 0 0 0) !important;
}

/* Alt links use global se-stay-ul: visible underline at rest, erase→draw on hover */
/* Consent / inline form links: draw-on-hover underline (not static text-decoration) */
.se-contact-form .se-signup__consent a,
.se-contact-form .se-signup__legal a {
  position: relative;
  display: inline;
  color: inherit;
  text-decoration: none !important;
  background: none !important;
  padding: 0 0 1px;
}

.se-contact-form .se-signup__consent a::after,
.se-contact-form .se-signup__legal a::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: var(--se-ul-thick, 1.5px) !important;
  background: currentColor !important;
  transform: scaleX(0) !important;
  transform-origin: left center !important;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) !important;
  pointer-events: none !important;
  animation: none !important;
}

.se-contact-form .se-signup__consent a:hover::after,
.se-contact-form .se-signup__consent a:focus-visible::after,
.se-contact-form .se-signup__legal a:hover::after,
.se-contact-form .se-signup__legal a:focus-visible::after {
  transform: scaleX(1) !important;
  animation: none !important;
}

.se-contact-split__form {
  width: 100%;
}

.se-contact-form .se-signup__field select.se-custom-select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.se-custom-select {
  position: relative;
}

.se-custom-select__trigger {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  height: 3rem;
  padding: 1.15rem 0 0.35rem;
  border: 0;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  background: transparent;
  color: #6b6865;
  font-family: inherit;
  font-size: 15px !important;
  font-weight: 400 !important;
  letter-spacing: var(--se-tracking, -0.2px);
  line-height: var(--se-lh, 1.3);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.18s ease;
}

.se-custom-select__trigger:focus {
  outline: none;
  border-bottom-color: #191817;
}

.se-custom-select.has-value .se-custom-select__trigger {
  border-bottom-color: #ddd;
}

.se-custom-select.is-open .se-custom-select__trigger {
  border-bottom-color: #ddd;
}

.se-custom-select__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: inherit;
  font-weight: 400 !important;
  font-size: 15px !important;
  letter-spacing: var(--se-tracking, -0.2px);
  line-height: var(--se-lh, 1.3);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  color: #6b6865;
}

.se-custom-select.has-value .se-custom-select__value {
  color: #191817;
}

.se-custom-select__value.is-placeholder {
  opacity: 0;
}

.se-custom-select__chevron {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 0.5rem;
  margin-right: 0.05rem;
  border-right: 1.5px solid #191817;
  border-bottom: 1.5px solid #191817;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.22s ease;
  opacity: 0.9;
}

.se-custom-select.is-open .se-custom-select__chevron {
  transform: rotate(-135deg) translateY(1px);
}

.se-custom-select__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 20;
  margin: 0;
  padding: 0.35rem 0 0.5rem;
  list-style: none;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #ddd;
  box-shadow: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
  pointer-events: none;
  visibility: hidden;
}

.se-custom-select.is-open .se-custom-select__menu {
  max-height: 12rem;
  opacity: 1;
  overflow-y: auto;
  pointer-events: auto;
  visibility: visible;
}

.se-custom-select__option {
  padding: 0.72rem 0;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: var(--se-lh, 1.3) !important;
  letter-spacing: var(--se-tracking, -0.2px);
  color: #6b6865;
  cursor: pointer;
  transition: color 0.15s ease;
}

.se-custom-select__option:hover,
.se-custom-select__option.is-focused,
.se-custom-select__option.is-selected {
  color: #191817;
}

.se-contact-form .se-signup__field--select:has(.se-custom-select.has-value) .se-signup__label,
.se-contact-form .se-signup__field--select:has(.se-custom-select.is-open) .se-signup__label {
  top: 0.1rem;
  font-size: 0.6875rem !important;
  color: #191817;
  transform: none;
}

.se-contact-form .se-signup__field select:not(.se-custom-select__native) {
  display: block;
  width: 100%;
  height: 3rem;
  padding: 1.15rem 0 0.35rem;
  border: 0;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  background: transparent;
  color: #191817;
  font-family: inherit;
  font-size: var(--se-body-size, 15px) !important;
  outline: none;
  box-sizing: border-box;
  appearance: none;
  cursor: pointer;
}

.se-contact-form .se-signup__field select:not(.se-custom-select__native):focus {
  outline: none;
  border-bottom-color: #191817;
}

.se-contact-form .se-signup__field--select:not(:has(.se-custom-select)):has(select:focus) .se-signup__label,
.se-contact-form .se-signup__field--select:not(:has(.se-custom-select)):has(select:valid) .se-signup__label {
  top: 0.1rem;
  font-size: 0.6875rem !important;
  color: #191817;
  transform: none;
}

.se-contact-form .se-signup__field input[type="date"] {
  display: block;
  width: 100%;
  height: 3rem;
  padding: 1.15rem 0 0.35rem;
  border: 0;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  background: transparent;
  color: #191817;
  font-family: inherit;
  font-size: var(--se-body-size, 15px) !important;
  outline: none;
  box-sizing: border-box;
}

.se-contact-form .se-signup__field input[type="date"]:focus {
  outline: none;
  border-bottom-color: #191817;
}

.se-contact-form .se-signup__field input[type="date"]:focus + .se-signup__label,
.se-contact-form .se-signup__field input[type="date"]:not(:placeholder-shown) + .se-signup__label,
.se-contact-form .se-signup__field input[type="date"]:valid + .se-signup__label {
  top: 0.1rem;
  font-size: 0.6875rem !important;
  color: #191817;
  transform: none;
}

.se-contact-form .se-signup__field textarea {
  display: block;
  width: 100%;
  min-height: 8rem;
  padding: 1.15rem 0 0.35rem;
  border: 0;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  background: transparent;
  color: #191817;
  font-family: inherit;
  font-size: var(--se-body-size, 15px) !important;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}

.se-contact-form .se-signup__field textarea:focus {
  outline: none;
  border-bottom-color: #191817;
}

.se-contact-form .se-signup__field textarea:focus + .se-signup__label,
.se-contact-form .se-signup__field textarea:not(:placeholder-shown) + .se-signup__label {
  top: 0.1rem;
  font-size: 0.6875rem !important;
  color: #191817;
  transform: none;
}

.se-contact-form .se-signup__actions {
  margin-top: 1.5rem;
  justify-content: flex-start;
}

.se-contact-form .se-signup__error,
.se-contact-form .se-signup__success {
  margin-top: 1rem;
}

@media (max-width: 899.98px) {
  .se-contact-split__copy {
    max-width: none;
  }
}

/* Prevent iOS input zoom on contact form (mobile only, matches site-plp inputs) */
@media (max-width: 767.98px) {
  .se-contact-form .se-signup__field input,
  .se-contact-form .se-signup__field textarea,
  .se-contact-form .se-signup__field select,
  .se-contact-form .se-custom-select__trigger,
  .se-contact-form .se-custom-select__value {
    font-size: 16px !important;
  }

  .se-contact-form .se-custom-select__option {
    font-size: 15px !important;
  }
}

/* Contact, quote & pricing — Super Easy mobile typography */
@media (max-width: 767.98px) {
  html.se-contact-page .se-about-hero__title,
  html.se-quote-page .se-about-hero__title {
    font-size: 22px !important;
    line-height: var(--se-lh, 1.3) !important;
    letter-spacing: var(--se-tracking, -0.2px) !important;
    text-align: center !important;
  }

  html.se-contact-page .se-contact-split__heading,
  html.se-quote-page .se-contact-split__heading {
    font-size: 18.5px !important;
    line-height: var(--se-lh, 1.3) !important;
    letter-spacing: var(--se-tracking, -0.2px) !important;
    font-weight: 400 !important;
  }

  html.se-contact-page .se-contact-split__copy p,
  html.se-quote-page .se-contact-split__copy p,
  html.se-contact-page .se-contact-split__meta,
  html.se-quote-page .se-contact-split__meta,
  html.se-contact-page .se-contact-split__alt,
  html.se-quote-page .se-contact-split__alt,
  html.se-contact-page .se-signup__consent span,
  html.se-quote-page .se-signup__consent span,
  html.se-contact-page .se-signup__legal,
  html.se-quote-page .se-signup__legal {
    font-size: 13px !important;
    line-height: var(--se-lh, 1.3) !important;
    letter-spacing: var(--se-tracking, -0.2px) !important;
  }

  html.se-contact-page .se-contact-split,
  html.se-quote-page .se-contact-split {
    padding-block: 2rem;
  }

  html.se-contact-page .se-signup__row,
  html.se-quote-page .se-signup__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
