/* Webform navigation buttons - mobile layout */
@media (max-width: 768px) {
  .webform-submission-form .form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }
  /* ----------------------------------------------------
   GLOO TYPOGRAPHY — GLOBAL
----------------------------------------------------- */

/* Import Inter from Google Fonts if theme doesn't already include it */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: #1c1d20; /* Gloo dark gray */
  font-weight: 400;
  letter-spacing: 0.005em;
}

/* Restrict readable width like Gloo */
.region-content,
.container {
  max-width: 860px;
}

/* ----------------------------------------------------
   HEADINGS — Gloo Style Hierarchy
----------------------------------------------------- */

h1, .h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #111;
}

h2, .h2 {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-top: 2.2rem;
  margin-bottom: 0.75rem;
}

h3, .h3 {
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.005em;
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
}

h4, .h4 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

/* ----------------------------------------------------
   PARAGRAPHS & LISTS — Gloo Rhythm
----------------------------------------------------- */

p {
  font-size: 1.05rem;
  line-height: 1.62;
  max-width: 720px;
  margin-bottom: 1.2rem;
  color: #2c2d31;
}

ul, ol {
  margin-bottom: 1.4rem;
  padding-left: 1.45rem;
}

li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

/* Small text style used across Gloo */
.small,
.text-small {
  font-size: 0.875rem;
  font-weight: 400;
  opacity: 0.8;
}

/* ----------------------------------------------------
   FORMS — Gloo-Inspired Form Styling
----------------------------------------------------- */

form label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: #1f2022;
}

.form-item {
  margin-bottom: 1.2rem !important;
}

form input,
form select,
form textarea {
  font-family: "Inter";
  font-size: 1rem;
  font-weight: 400;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #d0d2d6;
  line-height: 1.42;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: #4a6cf7; /* subtle Gloo blue */
  box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.15);
  outline: none;
}

form textarea {
  min-height: 130px;
}

/* ----------------------------------------------------
   SECTIONS — Light Gloo Structure Spacing
----------------------------------------------------- */

.region-content section,
.node--type-page .content {
  margin-bottom: 2.6rem;
}
  
  /* ----------------------------------------------------
   GLOO-STYLE WEBFORM PROGRESS TRACKER
   Targets EXACT markup you provided
----------------------------------------------------- */

/* Container ---------------------------------------------------- */
.webform-progress {
  margin: 2rem 0 2.5rem 0;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #e5e7eb;
}

.webform-progress-tracker {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  padding: 0;
  list-style: none;
  font-family: "Inter", sans-serif;
}

/* Individual Step ---------------------------------------------------- */
.webform-progress-tracker .progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

/* Circle marker ---------------------------------------------------- */
.webform-progress-tracker .progress-marker {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s ease;
}

/* Step label ---------------------------------------------------- */
.webform-progress-tracker .progress-title {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 0.01em;
  max-width: 90px;
  line-height: 1.25;
}

/* ACTIVE STEP ---------------------------------------------------- */
.webform-progress-tracker .progress-step.is-active .progress-marker {
  background: #4a6cf7;       /* Gloo blue */
  border-color: #4a6cf7;
}

.webform-progress-tracker .progress-step.is-active .progress-title {
  color: #1c1d20;
  font-weight: 600;
}

/* COMPLETED STEP ---------------------------------------------------- */
.webform-progress-tracker .progress-step.is-complete .progress-marker {
  background: #4a6cf7;
  border-color: #4a6cf7;
}

.webform-progress-tracker .progress-step.is-complete .progress-marker::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  top: 1px;
  left: 5px;
}

.webform-progress-tracker .progress-step.is-complete .progress-title {
  color: #1c1d20;
  font-weight: 500;
}

/* HOVER EFFECTS ---------------------------------------------------- */
.webform-progress-tracker .progress-step:hover .progress-marker {
  border-color: #94a3b8;
}

.webform-progress-tracker .progress-step:hover .progress-title {
  color: #374151;
}

/* MOBILE RESPONSIVE ---------------------------------------------------- */
@media (max-width: 768px) {
  .webform-progress-tracker {
    flex-wrap: wrap;
    gap: 1.4rem;
  }

  .webform-progress-tracker .progress-title {
    max-width: none;
    font-size: 0.8rem;
  }
}

