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

.well-contact-page { padding: 3rem 0 4rem; }
.well-contact-layout {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}
.well-contact-sidebar {
  min-height: 36rem;
  padding-right: 2rem;
  border-right: 0.0625rem solid #e7e7e7;
  box-sizing: border-box;
}
.well-contact-category { margin-bottom: 2rem; }
.well-contact-category h2 {
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  border: 0.0625rem solid #dcdfe3;
  color: #4f555b;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
}
.well-contact-category a {
  display: block;
  padding: 0.35rem 1rem;
  color: #138fc4;
  font-size: 1rem;
  line-height: 1.45;
  text-decoration: none;
}
.well-contact-category a:hover,
.well-contact-category a:focus-visible { color: #0270c9; text-decoration: underline; }
.well-contact-main { min-width: 0; }
.well-contact-company { margin-bottom: 2rem; }
.well-contact-company h1 {
  margin: 0 0 1.5rem;
  color: #1596cc;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
}
.well-contact-company p {
  margin: 0 0 0.45rem;
  color: #626970;
  font-size: 1rem;
  line-height: 1.5;
}
.well-contact-company a { color: inherit; text-decoration: none; }
.well-contact-company a:hover { color: #0270c9; text-decoration: underline; }
.well-contact-form-section > h2 {
  margin: 0 0 0.35rem;
  color: #1596cc;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
}
.well-contact-write { margin: 0 0 1.25rem; color: #777; font-size: 1rem; }
.well-contact-write a { color: inherit; }
.xh-contact-form-title {
  margin: 0 0 0.35rem;
  color: #1596cc;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
}
.xh-contact-email-line { margin: 0 0 1.25rem; color: #777; font-size: 0.8rem; }
.xh-contact-email-line a { color: inherit; }

.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: 1rem;
}
.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;
  font-size: 1rem;
  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: 1005;
  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 { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; line-height: 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: 10002;
  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; font-weight: 600; }
.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) {
  .well-contact-page { padding: 2rem 1rem 3rem; box-sizing: border-box; }
  .well-contact-layout { display: block; }
  .well-contact-sidebar { display: none; }
  .well-contact-company h1 { font-size: 1.35rem; }
  .xh-contact-floating,
  .xh-contact-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
  }
  .xh-contact-icon svg { width: 36px; height: 36px; }
  .xh-contact-grid { grid-template-columns: 1fr; }
  .xh-phone-control { grid-template-columns: 8.75rem minmax(0, 1fr); }
  .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)); }
}
