:root {
  --habb-cqm-accent: var(--wd-primary-color, #f26722);
  --habb-cqm-accent-hover: var(--wd-primary-color-hover, #df5b17);
  --habb-cqm-accent-soft: rgba(242, 103, 34, 0.08);
  --habb-cqm-dark: #111827;
  --habb-cqm-text: #5a6b7b;
  --habb-cqm-border: #e6ebf1;
  --habb-cqm-card: #ffffff;
}

.habb-cqm-hub,
.habb-cqm-form-wrap {
  margin: 0 0 36px;
}

.habb-cqm-hero {
  padding: 30px;
  border: 1px solid var(--habb-cqm-border);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.05);
  margin-bottom: 18px;
}

.habb-cqm-eyebrow {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--habb-cqm-accent) 14%, white);
  color: var(--habb-cqm-accent);
  margin-bottom: 12px;
}

.habb-cqm-hero h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
}

.habb-cqm-hero p {
  margin: 0;
  color: var(--habb-cqm-text);
  max-width: 860px;
}


.habb-cqm-hub-group + .habb-cqm-hub-group {
  margin-top: 22px;
}

.habb-cqm-hub-group-header {
  margin: 0 0 14px;
}

.habb-cqm-hub-group-header h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.25;
}

.habb-cqm-hub-group-header p {
  margin: 0;
  color: var(--habb-cqm-text);
  font-size: 14px;
}

.habb-cqm-hub-group-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #c2410c;
  background: rgba(249, 115, 22, 0.12);
}

.habb-cqm-card-grid--sourcing {
  grid-template-columns: minmax(260px, 380px);
}

.habb-cqm-hub-group--sourcing {
  padding: 18px 20px 20px;
  border: 1px dashed rgba(249, 115, 22, 0.28);
  border-radius: 22px;
  background: linear-gradient(180deg, #fffaf6 0%, #ffffff 100%);
}

.habb-cqm-card-grid--sourcing .habb-cqm-card--sourcing {
  grid-column: auto;
}
.habb-cqm-card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.habb-cqm-card,
.habb-cqm-form {
  background: var(--habb-cqm-card);
  border: 1px solid var(--habb-cqm-border);
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.04);
}

.habb-cqm-card {
  padding: 22px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.habb-cqm-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--habb-cqm-accent) 30%, var(--habb-cqm-border));
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.habb-cqm-card.is-active {
  border-color: color-mix(in srgb, var(--habb-cqm-accent) 46%, var(--habb-cqm-border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--habb-cqm-accent) 10%, transparent), 0 18px 36px rgba(15, 23, 42, 0.08);
}

.habb-cqm-card--sourcing {
  position: relative;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
  border-color: rgba(249, 115, 22, 0.28);
}

.habb-cqm-card--sourcing::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px dashed rgba(249, 115, 22, 0.32);
  pointer-events: none;
}

.habb-cqm-card-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #c2410c;
  background: rgba(249, 115, 22, 0.12);
}

.habb-cqm-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.habb-cqm-card p {
  margin: 0 0 16px;
  color: #607182;
  min-height: 72px;
}

.habb-cqm-card-button,
.habb-cqm-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  text-decoration: none;
  min-height: 48px;
  padding: 0 18px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.habb-cqm-card-button {
  background: var(--habb-cqm-accent);
  border: 1px solid var(--habb-cqm-accent);
  color: #fff !important;
  box-shadow: 0 12px 22px rgba(242, 103, 34, 0.18);
}

.habb-cqm-card-button:hover,
.habb-cqm-card-button:focus {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(242, 103, 34, 0.24);
  background: var(--habb-cqm-accent-hover);
  border-color: var(--habb-cqm-accent-hover);
  color: #fff !important;
}

.habb-cqm-form {
  padding: 24px;
}

.habb-cqm-notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 600;
}

.habb-cqm-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.habb-cqm-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.habb-cqm-section-title-wrap {
  margin: 6px 0 18px;
}

.habb-cqm-section-title-wrap--spaced {
  margin-top: 14px;
}

.habb-cqm-section-title {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.25;
}

.habb-cqm-section-subtitle {
  margin: 0;
  color: var(--habb-cqm-text);
  font-size: 14px;
}

.habb-cqm-section-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.habb-cqm-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.habb-cqm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.habb-cqm-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.habb-cqm-choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.habb-cqm-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.habb-cqm-choice span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid #dfe7ef;
  border-radius: 18px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.habb-cqm-choice span small {
  color: #697b8c;
}

.habb-cqm-choice input:checked + span {
  border-color: color-mix(in srgb, var(--habb-cqm-accent) 40%, #dfe7ef);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--habb-cqm-accent) 12%, transparent);
  background: #fffaf7;
}

.habb-cqm-business-fields {
  display: none;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--habb-cqm-border);
  border-radius: 18px;
  background: #fffaf7;
}

.habb-cqm-business-fields.is-active {
  display: block;
}

.habb-cqm-field label {
  display: block;
  margin: 0 0 8px;
  font-weight: 600;
  color: #12202f;
}

.habb-cqm-field input[type="text"],
.habb-cqm-field input[type="email"],
.habb-cqm-field input[type="date"],
.habb-cqm-field input[type="number"],
.habb-cqm-field select,
.habb-cqm-field textarea,
.habb-cqm-field input[type="file"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dce4ec;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  box-sizing: border-box;
}

.habb-cqm-field textarea {
  min-height: 130px;
  resize: vertical;
}

.habb-cqm-field small {
  display: block;
  margin-top: 6px;
  color: #6c7f90;
}

.habb-cqm-field input:focus,
.habb-cqm-field select:focus,
.habb-cqm-field textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--habb-cqm-accent) 45%, #dce4ec);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--habb-cqm-accent) 10%, transparent);
}

.habb-cqm-phone-row {
  align-self: start;
}

.habb-cqm-phone-field {
  display: block;
}

.habb-cqm-phone-grid {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  align-items: stretch;
}

.habb-cqm-phone-select {
  position: relative;
}

.habb-cqm-phone-country {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.habb-cqm-phone-trigger,
.habb-cqm-phone-local {
  width: 100%;
  min-height: 52px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid #dce4ec;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.habb-cqm-phone-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}

.habb-cqm-phone-trigger-main,
.habb-cqm-phone-option-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.habb-cqm-phone-option-label {
  color: #12202f;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.habb-cqm-phone-trigger-iso,
.habb-cqm-phone-option-iso {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #e5ebf1;
  border-radius: 9px;
  background: #f8fafc;
  color: #12202f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  box-sizing: border-box;
}

.habb-cqm-phone-trigger-code,
.habb-cqm-phone-option-code {
  color: #12202f;
  font-size: 14px;
  font-weight: 700;
}

.habb-cqm-phone-trigger-caret {
  color: #6c7f90;
  font-size: 12px;
  transition: transform .18s ease;
}

.habb-cqm-phone-select.is-open .habb-cqm-phone-trigger-caret {
  transform: rotate(180deg);
}

.habb-cqm-phone-trigger:focus,
.habb-cqm-phone-local:focus,
.habb-cqm-phone-select.is-open .habb-cqm-phone-trigger {
  outline: none;
  border-color: color-mix(in srgb, var(--habb-cqm-accent) 45%, #dce4ec);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--habb-cqm-accent) 10%, transparent);
}

.habb-cqm-phone-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  border: 1px solid #dce4ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.habb-cqm-phone-search-wrap {
  padding: 10px;
  border-bottom: 1px solid #edf2f7;
  background: #f8fafc;
}

.habb-cqm-phone-search {
  width: 100%;
  min-height: 42px;
  border: 1px solid #dce4ec;
  border-radius: 12px;
  padding: 10px 12px;
}

.habb-cqm-phone-options {
  max-height: 260px;
  overflow: auto;
  padding: 6px;
}

.habb-cqm-phone-option[hidden] {
  display: none !important;
}

.habb-cqm-phone-empty {
  display: block;
  padding: 14px 12px 16px;
  color: #5d6f81;
  font-size: 13px;
  text-align: left;
}

.habb-cqm-phone-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.habb-cqm-phone-option:hover,
.habb-cqm-phone-option:focus,
.habb-cqm-phone-option.is-selected {
  background: #fff6f1;
  color: #12202f;
}

.habb-cqm-phone-option-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
}

.habb-cqm-phone-option-code {
  flex: 0 0 auto;
  text-align: left;
}

.habb-cqm-phone-option.is-selected .habb-cqm-phone-option-iso {
  border-color: rgba(242, 103, 34, 0.24);
  background: rgba(242, 103, 34, 0.08);
  color: #c2410c;
}


.habb-cqm-money-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}

.habb-cqm-money-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #dce4ec;
  border-radius: 14px;
  background: #f8fafc;
  color: #12202f;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.habb-cqm-money-field input[type="text"] {
  min-width: 0;
}

.habb-cqm-field input[data-strict-email],
.habb-cqm-field input[data-name-case] {
  text-transform: none;
}

@media (max-width: 640px) {
  .habb-cqm-money-field {
    grid-template-columns: 1fr;
  }
}

.habb-cqm-submit-wrap {
  margin-top: 28px;
}

.habb-cqm-submit-panel {
  padding: 16px;
  border: 1px solid var(--habb-cqm-border);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fff8f4 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.habb-cqm-submit {
  width: 100%;
  min-height: 66px;
  padding: 14px 18px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--habb-cqm-accent);
  cursor: pointer;
  background: linear-gradient(135deg, var(--habb-cqm-accent) 0%, var(--habb-cqm-accent-hover) 100%);
  color: #fff !important;
  box-shadow: 0 18px 32px rgba(242, 103, 34, 0.22);
}

.habb-cqm-submit:hover,
.habb-cqm-submit:focus {
  background: linear-gradient(135deg, var(--habb-cqm-accent-hover) 0%, color-mix(in srgb, var(--habb-cqm-accent-hover) 80%, #a83d05) 100%);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 22px 38px rgba(242, 103, 34, 0.26);
}

.habb-cqm-submit:focus {
  outline: none;
}

.habb-cqm-submit[disabled],
.habb-cqm-submit.is-loading {
  opacity: 0.9;
  cursor: wait;
  transform: none;
}

.habb-cqm-submit-label {
  display: block;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
}

.habb-cqm-submit-meta {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.94;
}

.habb-cqm-submit-state {
  margin: 12px 4px 0;
  color: #475569;
  font-size: 13px;
  text-align: center;
}

.habb-cqm-submit-state.is-loading {
  color: var(--habb-cqm-dark);
  font-weight: 600;
}

.habb-cqm-disclaimer {
  margin: 10px 0 0;
  color: #6c7f90;
  font-size: 14px;
}

[data-family-group] { display: none; }
[data-family-group].is-active { display: grid; }

@media (max-width: 920px) {
  .habb-cqm-grid-2,
  .habb-cqm-grid-3,
  .habb-cqm-type-grid,
  .habb-cqm-phone-grid {
    grid-template-columns: 1fr;
  }

  .habb-cqm-form,
  .habb-cqm-card,
  .habb-cqm-hero {
    padding: 18px;
  }
}

.habb-cqm-req-mark{color:#d14b49;font-weight:700;}

.habb-cqm-field--full {
  grid-column: 1 / -1;
}

.habb-cqm-inline-note {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--habb-cqm-text);
  font-size: 14px;
  line-height: 1.6;
}



.habb-cqm-section-title-wrap--request,
.habb-cqm-section-title-wrap--technical {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid #edf2f7;
}

.habb-cqm-field--family small {
  margin-top: 8px;
  color: #7a8b9b;
}

.habb-cqm-phone-field small {
  margin-top: 8px;
}

.habb-cqm-card {
  position: relative;
  overflow: hidden;
}

.habb-cqm-card-status {
  position: absolute;
  top: 14px;
  right: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--habb-cqm-accent);
  box-shadow: 0 10px 18px rgba(242, 103, 34, 0.22);
}

.habb-cqm-card.is-active {
  border-color: var(--habb-cqm-accent);
  background: linear-gradient(180deg, #fff8f3 0%, #ffffff 100%);
  box-shadow: 0 0 0 3px rgba(242, 103, 34, 0.18), 0 22px 42px rgba(15, 23, 42, 0.10);
}

.habb-cqm-card.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--habb-cqm-accent);
}

.habb-cqm-card.is-active .habb-cqm-card-status {
  display: inline-flex;
}

.habb-cqm-card.is-active h3 {
  color: #111827;
}

.habb-cqm-selected-family-summary {
  display: grid;
  gap: 4px;
  margin: 18px 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(242, 103, 34, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff8f3 0%, #ffffff 100%);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.habb-cqm-selected-family-summary-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #c2410c;
  background: rgba(249, 115, 22, 0.12);
}

.habb-cqm-selected-family-summary strong {
  font-size: 20px;
  line-height: 1.2;
  color: var(--habb-cqm-dark);
}

.habb-cqm-selected-family-summary [data-selected-family-flow] {
  color: var(--habb-cqm-text);
  font-weight: 600;
}

[data-family-group][hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .habb-cqm-card-status {
    position: static;
    margin-bottom: 10px;
  }

  .habb-cqm-selected-family-summary strong {
    font-size: 14px;
  }
}


.habb-cqm-hub-group--sourcing {
  padding: 20px;
  border: 1px solid rgba(242, 103, 34, 0.18);
  border-radius: 24px;
  background: linear-gradient(180deg, #fffaf6 0%, #fffdfb 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.habb-cqm-card-grid--sourcing {
  grid-template-columns: minmax(300px, 400px);
}

.habb-cqm-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.habb-cqm-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  margin-bottom: 10px;
}

.habb-cqm-card-head--lifting {
  justify-content: flex-end;
}

.habb-cqm-card-status {
  position: static;
  display: inline-flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  min-height: 30px;
  padding: 0 12px;
  background: #0f172a;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
}

.habb-cqm-card.is-active .habb-cqm-card-status {
  opacity: 1;
  visibility: visible;
}

.habb-cqm-card-kicker {
  margin-bottom: 0;
  background: rgba(242, 103, 34, 0.10);
}

.habb-cqm-card h3 {
  margin: 0 0 10px;
}

.habb-cqm-card p {
  min-height: 0;
  margin: 0 0 20px;
  line-height: 1.7;
}

.habb-cqm-card-button {
  margin-top: auto;
}

.habb-cqm-card--sourcing {
  padding: 20px;
  border-radius: 22px;
}

.habb-cqm-card--sourcing::before {
  inset: 1px;
  border-radius: 21px;
}

.habb-cqm-card.is-active {
  box-shadow: 0 0 0 3px rgba(242, 103, 34, 0.12), 0 20px 42px rgba(15, 23, 42, 0.08);
}

.habb-cqm-card.is-active::after {
  display: none;
}

.habb-cqm-selected-family-summary {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fffaf6;
}

.habb-cqm-selected-family-summary strong {
  font-size: 18px;
}

.habb-cqm-phone-trigger {
  justify-content: space-between;
}

.habb-cqm-phone-trigger-main {
  gap: 6px;
}

.habb-cqm-phone-trigger-label {
  display: none;
}

.habb-cqm-phone-dropdown {
  right: auto;
  width: 260px;
}

.habb-cqm-phone-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.habb-cqm-phone-option-main {
  gap: 8px;
}

.habb-cqm-phone-option-code {
  justify-self: end;
}

.habb-cqm-phone-search-wrap {
  padding: 8px;
}

.habb-cqm-phone-search {
  min-height: 38px;
  border-radius: 10px;
}

@media (max-width: 920px) {
  .habb-cqm-card-grid--sourcing {
    grid-template-columns: 1fr;
  }

  .habb-cqm-phone-grid {
    grid-template-columns: 1fr;
  }

  .habb-cqm-phone-dropdown {
    width: 100%;
    right: 0;
  }
}


.habb-cqm-trap-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
