/* Custom quote — CTA cards + dedicated form page */

.custom-quote {
  position: relative;
  z-index: 2;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.custom-quote--compact {
  padding: clamp(1.25rem, 3vw, 2rem) 0;
}

.custom-quote__inner,
.custom-quote-card {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  border-radius: var(--clay-radius-lg, 28px);
  background: var(--clay-surface);
  border: 1px solid var(--clay-border-subtle);
  box-shadow: var(--clay-shadow-outer), var(--clay-shadow-inner);
}

.custom-quote__inner {
  align-items: start;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .custom-quote__inner {
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.35fr);
  }
}

a.custom-quote-card {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.custom-quote-card:hover {
  border-color: rgba(91, 157, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
}

.custom-quote--compact .custom-quote-card {
  grid-template-columns: 1fr;
  gap: 1.15rem;
  padding: clamp(1.15rem, 2.5vw, 1.65rem) clamp(1.2rem, 2.8vw, 1.85rem);
}

@media (min-width: 720px) {
  .custom-quote--compact .custom-quote-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .custom-quote--compact .custom-quote__title {
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    margin-bottom: 0.35rem;
  }

  .custom-quote--compact .custom-quote__lead {
    margin: 0;
    font-size: 0.95rem;
  }
}

.custom-quote-card--wide {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .custom-quote-card--wide {
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr);
    gap: clamp(1.5rem, 4vw, 2.75rem);
  }
}

.custom-quote-card__cta {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

@media (min-width: 900px) {
  .custom-quote-card__cta {
    justify-items: end;
    text-align: right;
  }

  .custom-quote-card__cta .custom-quote__note {
    text-align: right;
  }
}

.custom-quote__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5b9dff;
}

.custom-quote__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.custom-quote__lead {
  margin: 0 0 1.1rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  font-size: 1rem;
}

.custom-quote__perks {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.custom-quote__perks li {
  position: relative;
  padding-left: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.custom-quote__perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.25);
}

.custom-quote__sla {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
}

.custom-quote__form {
  display: grid;
  gap: 1rem;
}

.custom-quote__grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .custom-quote__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.custom-quote__field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
}

.custom-quote__field--full {
  grid-column: 1 / -1;
}

.custom-quote__field abbr {
  color: #f87171;
  text-decoration: none;
}

.custom-quote__field input,
.custom-quote__field select,
.custom-quote__field textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 10, 16, 0.72);
  color: #fff;
  padding: 0.8rem 0.95rem;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-quote__field textarea {
  resize: vertical;
  min-height: 120px;
}

.custom-quote__field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.55) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.55) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.custom-quote__field input:focus,
.custom-quote__field select:focus,
.custom-quote__field textarea:focus {
  border-color: rgba(26, 115, 232, 0.75);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.22);
}

.custom-quote__field input::placeholder,
.custom-quote__field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.custom-quote__error {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
  font-size: 0.9rem;
}

.custom-quote__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.custom-quote__submit {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.45rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(120deg, #1a73e8, #4f8dff);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(26, 115, 232, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.custom-quote__submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  color: #fff;
}

.custom-quote-card__btn {
  justify-self: start;
  white-space: nowrap;
}

.custom-quote__submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.custom-quote__note {
  margin: 0;
  flex: 1 1 220px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

.custom-quote-success {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(420px, calc(100vw - 2rem));
  width: min(420px, calc(100vw - 2rem));
  height: fit-content;
  margin: auto;
  position: fixed;
  inset: 0;
}

.custom-quote-success::backdrop {
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(8px);
}

.custom-quote-success__card {
  padding: 1.75rem 1.5rem;
  border-radius: 22px;
  background: linear-gradient(165deg, #12151f, #0a0c12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  text-align: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.custom-quote-success__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.35);
}

.custom-quote-success__card h2,
.custom-quote-success__card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
}

.custom-quote-success__card p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

/* Custom mouse follower sits under <dialog> top-layer — restore system cursor. */
html.quote-success-open.has-mouse-follower body,
html.quote-success-open.has-mouse-follower a,
html.quote-success-open.has-mouse-follower button,
html.quote-success-open.has-mouse-follower .custom-quote-success,
html.quote-success-open.has-mouse-follower .custom-quote-success * {
  cursor: auto !important;
}

html.quote-success-open.has-mouse-follower .custom-quote-success button {
  cursor: pointer !important;
}

html.quote-success-open .mouse-follower {
  visibility: hidden !important;
  opacity: 0 !important;
}

.home-page .custom-quote {
  margin-top: 0.5rem;
}

body[data-page="services"] .custom-quote {
  margin: 0 0 1.5rem;
}

body[data-page="custom-quote"] .custom-quote--page {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.custom-quote__inner--stacked {
  grid-template-columns: 1fr !important;
  gap: 1.75rem;
}

.custom-quote__inner--stacked .custom-quote__intro {
  max-width: 46rem;
}

.custom-quote__block {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.85rem;
}

.custom-quote__block + .custom-quote__block {
  margin-top: 0.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.custom-quote__block-title {
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #fff;
}

.custom-quote__hint,
.custom-quote__file-hint {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.custom-quote__optional {
  font-style: normal;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
}

.custom-quote__choices {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .custom-quote__choices {
    grid-template-columns: 1fr 1fr;
  }
}

.custom-quote__choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 16, 0.55);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.custom-quote__choice:hover {
  border-color: rgba(91, 157, 255, 0.45);
}

.custom-quote__choice:has(input:checked) {
  border-color: rgba(26, 115, 232, 0.85);
  background: rgba(26, 115, 232, 0.14);
  box-shadow: 0 0 0 1px rgba(26, 115, 232, 0.25);
}

.custom-quote__choice input {
  margin-top: 0.2rem;
  accent-color: #1a73e8;
}

.custom-quote__choice strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}

.custom-quote__choice small {
  display: block;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  line-height: 1.35;
}

.custom-quote__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
}

.custom-quote__checks label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 16, 0.5);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  cursor: pointer;
}

.custom-quote__checks input {
  accent-color: #1a73e8;
}

.custom-quote__field input[type="file"] {
  padding: 0.65rem 0.75rem;
  cursor: pointer;
}

.custom-quote__field input[type="file"]::file-selector-button {
  margin-right: 0.85rem;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: rgba(26, 115, 232, 0.9);
  cursor: pointer;
}

