/*
 * Contact form — matches the Figma "Start the Process by Filling out the Form"
 * card (Frame 19). Measurements are taken 1:1 from the Figma frame at 100%.
 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.cf-card {
  --cf-accent: var(--primary);            /* step indicator colour (Figma: #FF8A00) */
  --cf-ink: #0f0f10;
  --cf-label: #1c1c1e;
  --cf-muted: #7a7a7e;
  --cf-line: #d2d2d6;
  --cf-bg: #f4f4f4;
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: 32px 28px 28px;
  border-radius: 20px;
  background: var(--cf-bg);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, .04),
    0 26px 50px -18px rgba(0, 0, 0, .22),
    inset 0 -3px 0 rgba(0, 0, 0, .035);
  color: var(--cf-ink);
  font-family: 'Inter', system-ui, sans-serif;
}

.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;
}

/* Step indicator + close */
.cf-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cf-steps { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cf-step__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  font: 500 14px/18px 'Inter', system-ui, sans-serif;
  color: var(--cf-label);
  cursor: default;
}
button.cf-step__btn:not(:disabled) { cursor: pointer; }
.cf-step__dot {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  border: 2.5px solid #c9c9cd;
  display: grid;
  place-items: center;
  color: #fff;
  transition: background-color .25s ease, border-color .25s ease;
}
.cf-step__dot svg { width: 12px; height: 12px; opacity: 0; transition: opacity .2s ease; }
.cf-step.is-current .cf-step__dot { border-color: var(--cf-accent); }
.cf-step.is-done .cf-step__dot { border-color: var(--cf-accent); background: var(--cf-accent); }
.cf-step.is-done .cf-step__dot svg { opacity: 1; }
.cf-steps__line {
  width: 70px;
  height: 2px;
  margin: 0 3px;
  border-radius: 2px;
  background: #d9d9dc;
  transition: background-color .25s ease;
}
.cf-steps.is-step-2 .cf-steps__line { background: var(--cf-accent); }

.cf-close {
  width: 28px;
  height: 28px;
  margin-right: -6px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--cf-ink);
  cursor: pointer;
  transition: background-color .2s ease;
}
.cf-close:hover { background: rgba(0, 0, 0, .06); }
.cf-close svg { width: 20px; height: 20px; }

/* Title */
.cf-title {
  margin: 16px 0 12px;
  max-width: 11.5em;
  font-family: var(--font-geist-sans), 'Urbanist', sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: -.01em;
  color: var(--cf-ink);
}

/* Fields */
.cf-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.cf-field + .cf-field,
.cf-row + .cf-field,
.cf-field + .cf-row { margin-top: 16px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
/* Fields side by side in a row must not get the vertical-stack spacing above,
   otherwise the second field (Email) sits 16px lower than the first (Phone). */
.cf-row > .cf-field { margin-top: 0; min-width: 0; }
.cf-row .cf-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-label {
  display: block;
  margin-bottom: 6px;
  font: 500 14px/20px 'Inter', system-ui, sans-serif;
  color: var(--cf-label);
}
.cf-input {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--cf-line);
  border-radius: 11px;
  background: transparent;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04);
  font: 400 14px/20px 'Inter', system-ui, sans-serif;
  color: var(--cf-ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.cf-input::placeholder { color: var(--cf-muted); opacity: 1; }
.cf-input:hover { border-color: #bdbdc2; }
.cf-input:focus {
  border-color: var(--cf-accent);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cf-accent) 18%, transparent);
}
.cf-input[aria-invalid="true"] { border-color: #e5484d; }
.cf-textarea { height: 74px; padding-top: 11px; padding-bottom: 11px; resize: vertical; }

.cf-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1h10L6 7z' fill='%23555558'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px;
}
.cf-select:required:invalid { color: var(--cf-muted); }
.cf-select option { color: var(--cf-ink); }

.cf-time { position: relative; }
.cf-time .cf-input { padding-right: 42px; }
.cf-time svg {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: #5f5f63;
  pointer-events: none;
}
.cf-time input::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 0;
  width: 44px;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Attachment */
.cf-attach {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  max-width: 100%;
  font: 500 15px/20px 'Inter', system-ui, sans-serif;
  color: var(--cf-label);
  cursor: pointer;
}
.cf-attach input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cf-attach svg { width: 18px; height: 18px; flex: none; color: #3a3a3d; }
.cf-attach span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-attach:hover span { text-decoration: underline; }
.cf-attach:focus-within { outline: 2px solid var(--cf-accent); outline-offset: 4px; border-radius: 6px; }
.cf-attach.has-file span { color: var(--cf-accent); }

/* Buttons */
.cf-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #3a3a3d 0%, #1f1f21 55%, #141415 100%);
  box-shadow:
    0 12px 20px -8px rgba(0, 0, 0, .5),
    0 3px 6px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 -2px 0 rgba(0, 0, 0, .55);
  color: #fff;
  font: 500 14px/1 var(--font-geist-sans), 'Urbanist', sans-serif;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.cf-btn::before {                        /* soft diagonal sheen from the Figma button */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .09) 46%, transparent 62%);
  pointer-events: none;
}
.cf-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.cf-btn:active { transform: translateY(0); }
.cf-btn:disabled { cursor: wait; filter: none; transform: none; }
.cf-btn--block { width: 100%; margin-top: 22px; }
.cf-btn--got { width: 136px; padding: 0; margin-top: 26px; }
.cf-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.cf-error { margin-top: 14px; font: 500 13px/18px 'Inter', system-ui, sans-serif; color: #d93036; }
.cf-step-panel .cf-error + .cf-btn { margin-top: 14px; }

/* Success state */
.cf-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 465px;
  text-align: center;
}
.cf-success__icon {
  width: 136px;
  height: 136px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 26%, #a6e640 0%, #72c912 38%, #4aa705 72%, #3a8f00 100%);
  box-shadow:
    inset 0 -8px 14px rgba(0, 0, 0, .14),
    inset 0 6px 10px rgba(255, 255, 255, .28),
    0 14px 26px -12px rgba(58, 143, 0, .7);
  color: #fff;
  animation: pop-in .6s cubic-bezier(.34, 1.56, .64, 1) both;
}
.cf-success__icon svg { width: 62px; height: 62px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .18)); }
.cf-success__title {
  margin: 26px 0 0;
  max-width: 7.5em;
  font-family: var(--font-geist-sans), 'Urbanist', sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 34px;
  letter-spacing: -.01em;
  color: var(--cf-ink);
}

/* Tablet & phone */
@media (max-width: 1023px) {
  .cf-card { margin-inline: auto; }
}
@media (max-width: 480px) {
  .cf-card { padding: 26px 18px 22px; border-radius: 18px; }
  .cf-title { font-size: 26px; line-height: 30px; }
  .cf-steps__line { width: 44px; }
  .cf-success { min-height: 400px; }
  .cf-success__icon { width: 112px; height: 112px; }
  .cf-success__icon svg { width: 52px; height: 52px; }
  .cf-success__title { font-size: 26px; line-height: 30px; }
}
@media (max-width: 360px) {
  .cf-row { grid-template-columns: 1fr; gap: 16px; }   /* same spacing as stacked fields */
}
