/* Contact Us page — styles for <main> content */

:root {
  --white: #ffffff;
  --nav-blue: #1a73b8;
  --hero-blue: #0077d2;
  --info-bg: #f7fafe;
  --text-dark: #3c3c3c;
  --text-muted: #8d8d8d;
  --line-grey: #8d8d8d;
  --hq-blue: #0077d2;
  --success: #2e7d32;
  --error: #d32f2f;
  --font: "Roboto", Arial, Helvetica, sans-serif;
  --container: 1542px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main .container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
  padding-inline: 0;
}

@media (min-width: 768px) {
  main .container {
    width: min(var(--container), calc(100% - 3rem));
  }
}

/* ── Hero ── */
main .hero {
  position: relative;
  width: 100%;
  height: 276px;
  min-height: 276px;
  background: #0077d2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

main .hero-pill {
  position: absolute;
  background: #ffffff;
  opacity: 0.2;
  border-radius: 159.338px;
  pointer-events: none;
}

main .hero-pill--1 {
  width: 138.19px;
  height: 330.06px;
  left: -68.63px;
  top: 161.35px;
  border-radius: 69.0934px;
  transform: rotate(23.9deg);
}

main .hero-pill--2 {
  width: 120px;
  height: 280px;
  right: -40px;
  top: -90px;
  left: auto;
  transform: rotate(23.9deg);
}

main .hero-ring {
  position: absolute;
  box-sizing: border-box;
  border: 7px solid #ffffff;
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
}

main .hero-ring--1 {
  display: none;
}

main .hero-ring--2 {
  --ring: 300px;
  width: var(--ring);
  height: var(--ring);
  right: calc(var(--ring) / -2 + 14px);
  bottom: calc(var(--ring) / -2 + 8px);
  left: auto;
  top: auto;
}

main .hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(1030px, calc(100% - 2rem));
  padding: 0 1rem;
}

main .hero h1 {
  margin: 0;
  width: 100%;
  max-width: 1030px;
  font-family: var(--font);
  font-weight: 700;

  line-height: 170%;
  color: #ffffff;
  text-align: center;
}

main .hero-heading--mobile {
  display: none;
}

main .hero-heading--desktop {
  display: inline;
}

main .hero-line {
  display: block;
}

/* main .hero-line--accent {
  color: var(--text-dark);
  font-weight: 700;
} */

main .btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 151px;
  height: 53px;
  background: var(--white);
  border-radius: 372px;
  box-shadow:
    0 16px 35.2px rgba(0, 119, 210, 0.3),
    0 5.1px 11.23px rgba(0, 119, 210, 0.094),
    0 1.93px 4.25px rgba(0, 119, 210, 0.035),
    0 0.64px 1.4px rgba(0, 119, 210, 0.01);
  font-family: var(--font);
  font-weight: 600;
  font-size: 15.9px;
  line-height: 29px;
  letter-spacing: -0.3px;
  color: var(--hero-blue);
  text-decoration: none;
  transition: transform 0.15s ease;
}

main .btn-hero:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--hero-blue);
}

/* ── Contact section ── */
main .contact-section {
  padding: 2.5rem 0 1.5rem;
  background: var(--white);
  overflow: visible;
}

main .contact-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 1542px;
  margin-inline: auto;
  overflow: visible;
}

/* ── Info panel ── */
main .info-panel {
  position: relative;
  border-radius: 32px;
  padding: 35px 48px 40px;
  overflow: visible;
}

main .info-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--info-bg);
  border-radius: 32px;
  z-index: 0;
}

main .info-panel h2 {
  position: relative;
  z-index: 2;
  margin: 0 0 30px;
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.17;
  color: var(--text-dark);
}

main .info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  z-index: 2;
}

main .info-list li {
  display: flex;
  gap: 23px;
  align-items: flex-start;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: var(--text-dark);
}

main .info-list li:nth-child(n + 4) {
  line-height: 1.45;
}

main .info-list a {
  color: var(--text-dark);
  text-decoration: none;
}

main .info-list a.info-link {
  color: var(--hq-blue);
  font-weight: 600;
}

main .info-list a.info-link:hover {
  color: var(--nav-blue);
  text-decoration: underline;
}

main .info-list a:hover {
  color: var(--nav-blue);
}

main .hq-address {
  font-weight: 600;
  color: var(--hq-blue);
}

main .info-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text-dark);
}

main .info-list__mexico .info-text {
  line-height: 1.45;
}

main .info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

main .info-icon img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

/* ── Form panel ── */
main .form-panel {
  width: 100%;
  max-width: 740px;
  padding-top: 0;
}

main .form-panel h2 {
  margin: 0 0 8px;
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.17;
  color: var(--text-dark);
}

main .form-panel-sub {
  margin: 0 0 24px;
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-dark);
}

main .form-panel-sub strong {
  font-weight: 700;
  color: var(--hero-blue);
}

main .field-line--floating,
main .floating-field-wrap {
  position: relative;
  padding-top: 22px;
}

main .floating-field-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

main .floating-field-wrap:has(.floating-input-text:focus) .floating-input-label,
main .floating-field-wrap:has(.floating-input-text.floated) .floating-input-label,
main .field-line--phone:has(.phone-country-code:focus) .floating-input-label {
  top: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

li.info-list__mexico {
    margin-bottom: -15px;
}

main .floating-input-text {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line-grey);
  padding: 0 0 6px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-dark);
  background: transparent;
  border-radius: 0;
  caret-color: var(--nav-blue);
}

main .floating-input-text:focus {
  outline: none;
  border-bottom-color: var(--text-dark);
}

main .floating-input-text.floated {
  border-bottom-color: var(--nav-blue);
}

main .floating-input-text.floated.floated-no-focus {
  border-bottom-color: var(--line-grey);
}

main .floating-input-text.invalid {
  border-bottom-color: var(--error);
  caret-color: var(--error);
}

main .floating-input-label {
  position: absolute;
  top: 22px;
  left: 0;
  color: var(--text-muted);
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  pointer-events: none;
  transition: 0.2s ease all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

main .floating-input-text.floated + .floating-input-label,
main .floating-input-text:focus + .floating-input-label {
  top: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

main .field-line--message.field-line--floating {
  padding-top: 40px;
}

main .field-line--message .floating-input-label {
  top: 24px;
  white-space: normal;
  line-height: 1.35;
}

main .floating-input-title {
  display: block;
}

main .floating-input-hint {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

main .field-line--message .floating-input-text.floated + .floating-input-label .floating-input-hint,
main .field-line--message .floating-input-text:focus + .floating-input-label .floating-input-hint {
  display: none;
}

main .auto-grow-textarea {
  min-height: 28px;
  max-height: 100px;
  resize: vertical;
  overflow-y: auto;
}

main .field-line--floating .error-msg {
  display: block;
  margin-top: 4px;
}

main .field-line {
  margin-bottom: 45px;
}

main .field-line label:not(.floating-input-label) {
  display: block;
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

main .field-line input:not(.floating-input-text),
main .field-line textarea:not(.floating-input-text) {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line-grey);
  padding: 0.2rem 0 0.35rem;
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-dark);
  background: transparent;
  border-radius: 0;
  resize: none;
}

main .field-line textarea:not(.floating-input-text) {
  min-height: 36px;
  max-height: 56px;
}

main .field-line input::placeholder,
main .field-line textarea::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

main .field-line input:not(.floating-input-text):focus,
main .field-line textarea:not(.floating-input-text):focus {
  outline: none;
  border-bottom-color: var(--nav-blue);
}

main .field-line input:not(.floating-input-text).invalid,
main .field-line textarea:not(.floating-input-text).invalid {
  border-bottom-color: var(--error);
}



main .phone-input-group {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
}

main .phone-country-code {
  flex: 0 0 auto;
  min-width: 108px;
  max-width: 132px;
  align-self: flex-end;
  border: none;
  border-bottom: 1px solid var(--line-grey);
  padding: 0 1.5rem 6px 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-dark);
  background: transparent;
  border-radius: 0;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238d8d8d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

main .phone-country-code:focus {
  outline: none;
  border-bottom-color: var(--text-dark);
}

main .phone-country-code.invalid {
  border-bottom-color: var(--error);
}

main .field-line--phone .floating-field-wrap .floating-input-text {
  width: 100%;
}

main .field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 0;
}

main .field-row .field-line {
  margin-bottom: 45px;
}

main .field-line--captcha {
  position: relative;
}

main .captcha-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 0px;
  transition: gap 0.2s ease;
}

main .field-line--captcha .floating-field-wrap {
  padding-top: 22px;
}

main .field-line--captcha .captcha-display {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  transition: transform 0.2s ease;
}

main .field-line--captcha.is-captcha-active .captcha-field-wrap {
  gap: 2px;
}

main .field-line--captcha.is-captcha-active .captcha-display {
  transform: translateY(-6px);
}

main .field-line--captcha.is-captcha-active .floating-input-label {
  top: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

main .wpcf7-captchac.wpcf7-captcha-captcha,
main #captchaImage {
  flex: 0 0 auto;
  width: 72px;
  height: 24px;
  border: 1px solid #d9d9d9;
  background: #ffffff;
  vertical-align: middle;
}

main .captcha-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line-grey);
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

main .captcha-refresh:hover {
  color: var(--nav-blue);
  border-color: var(--nav-blue);
}

main .field-line--captcha .floating-field-wrap .floating-input-text {
  width: 100%;
}

main .form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: -12px;
}

main .btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 48px;
  background: var(--nav-blue);
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.12);
  border-radius: 5px;
  border: none;
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s ease;
}

main .btn-submit:hover {
  background: var(--hero-blue);
}

main .btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

main .btn-loader {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: contact-us-spin 0.7s linear infinite;
}

@keyframes contact-us-spin {
  to { transform: rotate(360deg); }
}

main .error-msg {
  display: block;
  min-height: 1rem;
  margin-top: 0.25rem;
  font-size: 14px;
  color: var(--error);
}

main .form-alert {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
}

main .form-alert.success {
  background: #e8f5e9;
  color: var(--success);
}

main .form-alert.error {
  background: #ffebee;
  color: var(--error);
}

/* ── Responsive ── */

@media (min-width: 768px) and (max-width: 1023px) {
  main .hero-pill--2 {
    width: 160px;
    height: 380px;
    right: -50px;
    top: -110px;
  }

  main .phone-country-code {
    min-width: 60px;
    max-width: 78px;
  }

  main .hero-ring--2 {
    --ring: 340px;
  }

  main .contact-layout {
    grid-template-columns: minmax(0, 755px) minmax(0, 740px);
    justify-content: space-between;
    gap: 32px;
  }
}

@media (min-width: 768px) {
  main .field-row {
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 3vw, 48px);
  }

  main .hero {
    height: 276px;
    min-height: 276px;
  }

  main .info-panel {
    padding: clamp(24px, 3vw, 35px) clamp(24px, 4vw, 48px) clamp(28px, 3vw, 40px);
  }


}

@media (min-width: 1024px) {
  main .contact-layout {
    grid-template-columns: minmax(0, 755px) minmax(0, 740px);
    justify-content: space-between;
    gap: 32px;
  }

  main .form-panel {
    padding-top: 8px;
  }

  

  main .hero-pill--1 {
    display: block;
    width: 318.68px;
    height: 761.15px;
    left: -193.03px;
    top: 152.45px;
    border-radius: 159.338px;
    transform: rotate(23.9deg);
  }

  main .hero-pill--2 {
    width: 318.68px;
    height: 761.15px;
    left: 83.222%;
    top: -558.99px;
    right: auto;
    border-radius: 159.338px;
    transform: rotate(23.9deg);
  }

  main .hero-ring--1 {
    display: block;
    width: 401.27px;
    height: 451.47px;
    left: -192.39px;
    top: -380.81px;
    border: 7px solid #ffffff;
    opacity: 0.1;
    transform: matrix(0.85, 0.53, -0.55, 0.84, 0, 0);
  }

  main .hero-ring--2 {
    width: 361px;
    height: 361.21px;
    left: 64.746%;
    top: 198.97px;
    right: auto;
    bottom: auto;
    border: 7px solid #ffffff;
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1920px) {
  main .hero-pill--2 {
    left: 1602.81px;
  }

  main .hero-ring--2 {
    left: 1247.08px;
    top: 198.97px;
    width: 361px;
    height: 361.21px;
  }

  main .field-row {
    grid-template-columns: 345px 345px;
    justify-content: space-between;
    gap: 48px;
  }
}

@media (max-width: 768px) {


  main .form-panel h2{

    font-size: 26px;
  }
  main .hero-content {

    padding: 0 5px 48px;
  }
  main .form-panel {
    order: 1;
    width: 100%;
    padding-top: 0;
  }

  main .btn-submit {
    box-sizing: border-box;
    width: min(335px, 100%);
    height: 41.14px;
    min-height: 41.14px;
    padding: 11.57px 37.03px;
    gap: 7.71px;
    border-radius: 3.86px;
    font-size: 16px;
    line-height: 19px;
  }
  main .form-actions {
    justify-content: center;
    margin-top: 0;
    padding-left: 4px;
  }

  main .info-panel {
    order: 2;
    text-align: center;
    padding: 32px 24px 36px;
  }

  main .info-panel h2 {
    font-size: 26px;
    text-align: center;
    margin-bottom: 28px;
  }

  main .info-list {
    align-items: center;
    gap: 28px;
  }

  main .info-list li {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    width: 100%;
    max-width: 340px;
    margin-inline: auto;
  }

  main .info-list li:nth-child(n + 4) {
    max-width: 100%;
    line-height: 1.5;
  }

  main .info-icon {
    justify-content: center;
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 767px) {
  main .hero {
    height: auto;
    min-height: 220px;
 
  }

  main .hero h1 {
    line-height: 1.2;
    font-size: clamp(1.6rem, 7vw, 2rem);
    text-align: left;
  }

  main .hero-heading--desktop {
    display: none;
  }

  main .hero-heading--mobile {
    display: block;
  }


  main .hero-pill--2 {
    width: 110px;
    height: 252px;
    right: -32px;
    top: -147px;
    opacity: 0.22;
  }

  main .hero-ring--2 {
    --ring: 275px;
    top: 182px;
    right: -60px;
  }

  main .contact-section {
    padding: 1.5rem 0 1rem;
  }

  main .info-panel {
    border-radius: 20px;
    overflow: hidden;
    padding: 28px 20px 32px;
  }

  main .info-panel::before {
    border-radius: 20px;
  }

  main .info-panel h2 {
    margin-bottom: 24px;
  }

  main .info-list {
    gap: 32px;
  }

  main .info-list li {
    font-size: 15px;
    gap: 12px;
  }

  main .field-line {
    margin-bottom: 32px;
  }

  main .field-row .field-line {
    margin-bottom: 32px;
  }



  main .btn-submit {
    box-sizing: border-box;
    width: min(335px, 100%);
    height: 41.14px;
    min-height: 41.14px;
    padding: 11.57px 37.03px;
    gap: 7.71px;
    border-radius: 3.86px;
    font-size: 16px;
    line-height: 19px;
  }
}

@media (max-width: 380px) {
  main .container {
    width: calc(100% - 1.25rem);
  }

  main .info-panel {
    padding: 20px 16px 24px;
  }

  main .btn-hero {
    width: 100%;
    max-width: 200px;
  }
}

/* ── Office map ── */
main .map-section {
  padding: 0 0 3rem;
}

main .map-wrap {
  position: relative;
  border-radius: 17.45px;
  overflow: hidden;
  background: #e8ecf0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

main .google-map {
  position: relative;
  width: 100%;
  height: 456px;
  min-height: 456px;
  overflow: hidden;
}

main .google-map iframe {
  display: block;
  width: 100%;
  /* Crop only the Google My Maps title header; keep bottom map controls visible */
  height: calc(100% + 110px);
  margin-top: -96px;
  border: 0;
}

@media (max-width: 767px) {
  main .google-map {
    height: 320px;
    min-height: 320px;
  }

  main .google-map iframe {
    height: calc(100% + 88px);
    margin-top: -88px;
  }
}
