/* Shared consultation card — used on Contact, inner heroes, popup, home, pricing */

.quote-form {
  --q-ink: #1a2430;
  --q-muted: #8b96a3;
  --q-orange: #f47a14;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  padding: 24px 26px 20px;
  border-radius: 28px;
  background: #fff;
  color: var(--q-ink);
  box-shadow:
    0 24px 60px rgba(4, 16, 32, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.6) inset;
}

.hero .quote-form,
.hero-grid > .quote-form {
  justify-self: end;
  box-shadow: 0 24px 60px rgba(5, 24, 39, 0.32);
}

.contact-grid .quote-form {
  max-width: none;
  margin: 0;
  justify-self: stretch;
}

.quote-form-hint {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 18px 8px 0;
  color: var(--q-muted);
  font-size: 12.5px;
  font-weight: 500;
}

.quote-form-hint i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--q-orange);
  box-shadow: 0 0 0 4px rgba(244, 122, 20, 0.16);
}

.quote-form-hint::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -8px;
  width: 42px;
  height: 52px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 52' fill='none'><path d='M8 8c12 2 22 16 18 34' stroke='%23c9d0d8' stroke-width='1.6' stroke-linecap='round'/><path d='M20 36l6 6-8 2' stroke='%23c9d0d8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
  pointer-events: none;
}

.quote-form h2 {
  margin: 0 0 6px;
  color: #151b22;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.quote-form h2 span { color: var(--q-orange); }

.quote-form-lead {
  margin: 0 0 14px;
  color: #6b7682;
  font-size: 13px;
  line-height: 1.5;
}

.quote-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quote-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0 14px;
  min-height: 48px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e4e9ee;
  color: #8a94a0;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

.quote-field svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.quote-field input,
.quote-field textarea,
.quote-field select {
  flex: 1;
  width: 100%;
  margin: 0;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: #151b22;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  resize: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.quote-field input::placeholder,
.quote-field textarea::placeholder {
  color: #9aa3ad;
  opacity: 1;
}

.quote-field:focus-within {
  outline: 2px solid var(--q-orange);
  outline-offset: 2px;
  color: var(--q-orange);
}

.quote-field-area {
  align-items: flex-start;
  min-height: 102px;
  padding-top: 12px;
}

.quote-field-area svg { margin-top: 2px; }

.quote-agree {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 14px;
  color: #5d6772;
  font-size: 13px;
  cursor: pointer;
}

.quote-agree input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--q-orange);
}

.quote-agree a {
  color: var(--q-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.quote-form .btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8a2a 0%, #f47a14 52%, #ee5122 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(238, 81, 34, 0.28);
}

.quote-form .btn-submit:hover {
  background: linear-gradient(180deg, #ff9320 0%, #f47a14 52%, #e24b1c 100%);
  color: #fff;
}

.quote-form .btn-submit:active { transform: translateY(1px); }

.quote-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
  color: #8b95a0;
  font-size: 11.5px;
  line-height: 1.4;
  text-align: center;
}

.quote-secure svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.quote-form .form-success,
.quote-form .form-error { margin-top: 10px; font-size: 13px; }
.quote-form > p.legal-note { display: none; }

.popup-right .quote-form {
  max-width: none;
  margin: 28px 0 0;
  padding: 0;
  box-shadow: none;
}

.popup-right .quote-form-hint {
  margin-right: 36px;
}

.home-contact .quote-form {
  max-width: none;
  margin: 0;
}

.hero .quote-form p,
.popup-right .quote-form p,
.contact-grid .quote-form p,
.home-contact .quote-form p,
.page-pricing .quote-form.is-plan p {
  color: inherit;
  max-width: none;
  margin-bottom: 0;
  font-size: inherit;
  line-height: inherit;
}

.quote-form .quote-form-hint {
  color: var(--q-muted);
  margin: 0 18px 8px 0;
  font-size: 12.5px;
  line-height: 1.4;
}

.quote-form .quote-form-lead {
  color: #6b7682;
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
}

.quote-form .quote-secure {
  color: #8b95a0;
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.4;
}

.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;
}

@media (max-width: 1199px) {
  .hero .quote-form,
  .hero-grid > .quote-form {
    justify-self: center;
    margin-inline: auto;
  }
}

@media (max-width: 767px) {
  .quote-form {
    max-width: none;
    margin: 0;
    padding: 22px 18px 18px;
  }
  .quote-form-row { grid-template-columns: 1fr; }
  .popup-right .quote-form { padding: 0; }
}
