.xh-contact-form {
  color: #20252b;
}

.xh-contact-page {
  padding: 3rem 0 4rem;
}

.xh-contact-page-inner {
  max-width: 60rem;
  margin: 0 auto;
}

.xh-contact-company {
  margin-bottom: 2.5rem;
}

.xh-contact-company > h1 {
  margin: 0 0 1.5rem;
  color: #2697c6;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
}

.xh-contact-company-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 2.5rem;
}

.xh-contact-company-item h2 {
  margin: 0 0 0.45rem;
  color: #30363b;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

.xh-contact-company-item p,
.xh-contact-company-item address {
  margin: 0 0 0.35rem;
  color: #4a5055;
  font-size: 0.95rem;
  font-style: normal;
  line-height: 1.55;
}

.xh-contact-company-item a {
  color: inherit;
  text-decoration: none;
}

.xh-contact-company-item a:hover,
.xh-contact-company-item a:focus-visible {
  color: #0877b9;
  text-decoration: underline;
}

.xh-contact-form-title {
  margin: 0 0 0.4rem;
  font-size: 2rem;
}

.xh-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.xh-field label {
  display: block;
  margin-bottom: 0.4rem;
  color: #454c54;
  font-size: 0.875rem;
}

.xh-field label span {
  color: #d82323;
  font-weight: 700;
}

.xh-field input,
.xh-field select,
.xh-field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.875rem;
  border: 0.0625rem solid #d7dce1;
  border-radius: 0.375rem;
  background: #fafafa;
  color: #20252b;
  font: inherit;
  box-sizing: border-box;
}

.xh-field input:focus,
.xh-field select:focus,
.xh-field textarea:focus {
  border-color: #1596cc;
  outline: 0.125rem solid rgba(21, 150, 204, 0.18);
  outline-offset: 0;
}

.xh-phone-control {
  display: grid;
  grid-template-columns: 9.75rem minmax(0, 1fr);
}

.xh-native-country-select {
  display: none;
}

.xh-country-picker {
  position: relative;
  min-width: 0;
}

.xh-country-button {
  display: flex;
  width: 100%;
  min-height: 3.25rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 0.0625rem solid #d7dce1;
  border-right: 0;
  border-radius: 0.375rem 0 0 0.375rem;
  background: #fafafa;
  color: #20252b;
  font: inherit;
  cursor: pointer;
  box-sizing: border-box;
}

.xh-country-button::after {
  content: '';
  width: 0;
  height: 0;
  margin-left: auto;
  border: 0.3rem solid transparent;
  border-top-color: #59636e;
  transform: translateY(0.15rem);
}

.xh-country-button img,
.xh-country-option img {
  width: 1.5rem;
  height: 1.125rem;
  flex: 0 0 auto;
  object-fit: cover;
  box-shadow: 0 0 0 0.0625rem rgba(0,0,0,0.12);
}

.xh-country-list {
  display: none;
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  z-index: 30;
  width: 22rem;
  max-height: 20rem;
  overflow-y: auto;
  padding: 0.35rem 0;
  border: 0.0625rem solid #d7dce1;
  border-radius: 0.375rem;
  background: #fff;
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.16);
}

.xh-country-picker.is-open .xh-country-list {
  display: block;
}

.xh-country-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border: 0;
  background: #fff;
  color: #20252b;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.xh-country-option:hover,
.xh-country-option:focus,
.xh-country-option[aria-selected="true"] {
  background: #eef7fb;
}

.xh-country-option .xh-country-dial {
  margin-left: auto;
  color: #59636e;
}

.xh-phone-control .xh-phone-number {
  border-radius: 0 0.375rem 0.375rem 0;
}

.xh-message-field,
.xh-captcha-field {
  margin-top: 1rem;
}

.xh-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.xh-captcha-control {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  max-width: 25rem;
}

.xh-captcha-control img {
  width: 7.5rem;
  object-fit: contain;
  border: 0.0625rem solid #d7dce1;
  cursor: pointer;
}

.xh-submit {
  width: 100%;
  min-height: 3.125rem;
  margin-top: 1rem;
  border: 0;
  border-radius: 0.375rem;
  background: #0877b9;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.xh-submit:hover {
  background: #05669f;
}

.xh-submit:focus-visible {
  outline: 0.1875rem solid rgba(8, 119, 185, 0.35);
  outline-offset: 0.125rem;
}

.xh-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.xh-contact-trigger {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.xh-contact-floating {
  display: flex;
  position: static;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.xh-contact-icon {
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0270c9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.16);
  transition: background-color 160ms ease, transform 160ms ease;
}

.xh-contact-icon svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

.xh-contact-icon .xh-contact-envelope-fold {
  fill: none;
  stroke: #0270c9;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.xh-contact-floating:hover .xh-contact-icon {
  background: #242b30;
  transform: translateY(-1px);
}

.xh-contact-floating:hover .xh-contact-envelope-fold {
  stroke: #242b30;
}
.xh-contact-floating:focus-visible {
  outline: 0.1875rem solid rgba(52, 60, 66, 0.32);
  outline-offset: 0.1875rem;
}

.xh-contact-dialog {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1002;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0,0,0,0.48);
  box-sizing: border-box;
}

.xh-contact-dialog.is-open { display: flex; }

.xh-contact-dialog-panel {
  position: relative;
  width: min(52rem, 92vw);
  max-height: 92vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 1rem 3rem rgba(0,0,0,0.24);
  box-sizing: border-box;
}

.xh-contact-dialog-panel h2 { margin: 0; color: #20252b; font-size: 2rem; }
.xh-contact-dialog-panel > p { margin: 0.2rem 0 1.25rem; }

.xh-contact-dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: #20252b;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 48rem) {
  .xh-contact-page {
    padding: 2rem 1rem 3rem;
    box-sizing: border-box;
  }

  .xh-contact-company > h1 {
    font-size: 1.6rem;
  }

  .xh-contact-company-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .xh-contact-grid {
    grid-template-columns: 1fr;
  }

  .xh-phone-control {
    grid-template-columns: 8.75rem minmax(0, 1fr);
  }

  .xh-contact-floating {
    width: 56px;
    height: 56px;
  }

  .xh-contact-icon {
    width: 56px;
    height: 56px;
  }

  .xh-contact-icon svg {
    width: 32px;
    height: 32px;
  }

  .xh-contact-dialog { padding: 0.75rem; }
  .xh-contact-dialog-panel { width: 100%; padding: 1.25rem; }
  .xh-contact-dialog-panel h2 { font-size: 1.5rem; }
  .xh-country-list { width: min(22rem, calc(100vw - 3rem)); }
}
