/* ==========================================================================
   1. ADRIANNA EXTENDED (HEADINGS FONT) INTEGRATION
   ========================================================================== */

/* 1. SF Pro Display Setup */
@font-face {
  font-family: "SF Pro Display";
  src:
    url("./fonts/sf-pro-display/SFProDisplay-Regular.woff2") format("woff2"),
    url("./fonts/sf-pro-display/SFProDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "SF Pro Display";
  src:
    url("./fonts/sf-pro-display/SFProDisplay-Bold.woff2") format("woff2"),
    url("./fonts/sf-pro-display/SFProDisplay-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

/* 2. Adrianna Extended Setup */
@font-face {
  font-family: "Adrianna Extended";
  src:
    url("./fonts/adrianna-extended/AdriannaExtended-Regular.woff2")
      format("woff2"),
    url("./fonts/adrianna-extended/AdriannaExtended-Regular.ttf")
      format("truetype");
  font-weight: 400;
  font-style: normal;
}

/* ==========================================================================
   3. GLOBAL OVERRIDES FOR GOHIGHLEVEL FRAMEWORK FORM ELEMENTS
   ========================================================================== */

/* Body, text, paragraph, forms field labels, input box, textareas aur selects */
html,
body,
p,
span,
label,
input,
select,
textarea,
.form-control,
.ghl-form,
.form-builder {
  font-family: "SF Pro Display", sans-serif;
  font-weight: 300;
}

/* Inputs fields aur checkboxes text text optimize options */
input,
select,
textarea {
  font-family: "SF Pro Display", sans-serif;
}

/* Main title, subtitles, steps headings controllers */
h1,
h2,
h3,
h4,
h5,
h6,
.form-title,
.step-title,
.field-label,
[class*="heading"],
[id*="heading"] {
  font-family: "Adrianna Extended", sans-serif;
}

:root {
  --bg: #eef0f4;
  --card-bg: #ffffff;
  --text: #16181d;
  --muted: #6b7280;
  --border: #e5e7eb;
  --field-bg: #f3f4f6;
  --green: #22c55e;
  --blue: #2f5cdb;
  --red: #dc2626;
  --gradient: linear-gradient(135deg, #5b21b6 0%, #c026d3 50%, #dc2626 100%);
  --shadow: 0 10px 40px rgba(16, 24, 40, 0.08);
  --radius-lg: 28px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.card {
  width: 100%;
  max-width: 1100px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 48px;
  margin: 0 auto;
}

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  margin-bottom: 48px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.step-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  background: var(--blue);
  transition: background 0.25s ease;
}

.step.completed .step-circle {
  background: var(--green);
}
.step.active .step-circle {
  background: var(--gradient);
}

.step-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 12px;
  margin-bottom: 28px;
}

/* Panels */
.panel-title {
  font-size: 30px;
  /* font-weight: 800; */
  margin: 0 0 8px;
}

.panel-subtitle {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 15px;
}

.panel[data-panel="1"] .panel-title,
.panel[data-panel="2"] .panel-title,
.panel[data-panel="3"] .panel-title {
  margin-bottom: 24px;
}

/* Option grid (facility type / flooring needs) */
.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 8px;
}

.option-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: var(--field-bg);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 22px;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.1s ease;
}

.option-card:hover {
  border-color: #c7cbd3;
}

.option-card.selected {
  border-color: #c026d3;
  background: #fdf4ff;
}

.option-icon {
  font-size: 26px;
  line-height: 1;
}

.option-label {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

/* Option list (budget range rows) */
.option-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--field-bg);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  cursor: pointer;

  text-align: left;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.option-row:hover {
  border-color: #c7cbd3;
}

.option-row.selected {
  border-color: var(--red);
  background: #fef2f2;
}

.option-row-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.option-row-title {
  font-weight: 700;
  font-size: 16px;
}
.option-row-sub {
  font-size: 14px;
  color: var(--muted);
}

.radio-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #c7cbd3;
  flex-shrink: 0;
  position: relative;
}

.option-row.selected .radio-dot {
  border-color: var(--red);
}

.option-row.selected .radio-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--red);
}

/* Slider */
.slider-block {
  margin-bottom: 32px;
}

.slider-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.field-label {
  font-weight: 700;
  font-size: 15px;
}

.slider-value {
  /* font-weight: 800; */
  font-size: 20px;
  color: var(--red);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  outline: none;
  margin: 8px 0;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  margin-top: -8px;
  cursor: pointer;
}

input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--border);
}

input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--red);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid #fff;
  cursor: pointer;
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

/* Step 4 summary bar */
.summary-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--field-bg);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.summary-value {
  font-weight: 700;
  font-size: 16px;
}

/* Field grid / inputs */
.field-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.field-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.field-grid .field {
  margin-bottom: 0;
}

.req {
  color: var(--red);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;

  color: var(--text);
  outline: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #7c3aed;
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--red);
  background: #fef2f2;
}

.field-error {
  color: var(--red);
  font-size: 13px;
  margin: 4px 0 0;
}

/* Consent */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  margin-bottom: 8px;
}

.consent-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--red);
  cursor: pointer;
}

.consent-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Nav row */
.nav-row {
  display: flex;
  align-items: center;
  margin-top: 32px;
}

.nav-spacer {
  flex: 1;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    opacity 0.15s ease,
    transform 0.05s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.arrow {
  font-weight: 400;
}

/* Success card */
.success-card {
  text-align: center;
  padding: 64px 48px;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}
.success-card p {
  color: var(--muted);
  margin: 0 0 24px;
}

/* Responsive */
@media (max-width: 860px) {
  .card {
    padding: 28px 20px;
  }
  .option-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .field-grid.three {
    grid-template-columns: 1fr;
  }
  .summary-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .step-label {
    display: none;
  }
  .stepper {
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .option-grid {
    grid-template-columns: 1fr;
  }
  .panel-title {
    font-size: 24px;
  }
  .btn {
    padding: 14px 20px;
    font-size: 14px;
  }
}
