    .cf-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 10000;
      display: none;
      align-items: center;
      justify-content: center;
    }
    .cf-modal.cf-modal--active {
      display: flex;
    }
    .cf-modal__overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(4px);
    }
    .cf-modal__container {
      position: relative;
      background: var(--surface);
      border-radius: 16px;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
      width: 90%;
      max-width: 520px;
      max-height: 90dvh;
      display: flex;
      flex-direction: column;
      animation: cf-slide-in 0.3s ease-out;
      overflow: hidden;
    }
    @keyframes cf-slide-in {
      from { transform: translateY(20px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }

    /* Header */
    .cf-modal__header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 24px 0;
      flex-shrink: 0;
    }
    .cf-modal__progress {
      font-family: 'Inter', Arial, sans-serif;
      font-size: 13px;
      font-weight: 500;
      color: var(--text-muted);
    }
    .cf-modal__close {
      background: none;
      border: none;
      cursor: pointer;
      padding: 8px;
      border-radius: 8px;
      color: var(--text-muted);
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .cf-modal__close:hover {
      background: var(--background);
      color: var(--text);
    }
    .cf-modal__close:focus-visible {
      outline: 3px solid var(--brand);
      outline-offset: -3px;
    }

    /* Progress bar */
    .cf-modal__progress-bar {
      height: 3px;
      background: var(--surface-subtle);
      margin: 16px 24px 0;
      border-radius: 3px;
      overflow: hidden;
      flex-shrink: 0;
    }
    .cf-modal__progress-fill {
      height: 100%;
      background: var(--action);
      border-radius: 3px;
      transition: width 0.3s ease;
    }

    /* Body */
    .cf-modal__body {
      padding: 28px 24px 24px;
      overflow-y: auto;
      flex: 1;
    }

    /* Steps */
    .cf-step {
      display: none;
    }
    .cf-step--active {
      display: block;
      animation: cf-step-in 0.25s ease-out;
    }
    @keyframes cf-step-in {
      from { opacity: 0; transform: translateX(12px); }
      to { opacity: 1; transform: translateX(0); }
    }

    .cf-step__context {
      font-family: 'Inter', Arial, sans-serif;
      font-size: 14px;
      color: var(--text-muted);
      margin-bottom: 20px;
      line-height: 1.5;
    }
    .cf-step__question {
      font-family: 'Space Grotesk', Arial, sans-serif;
      font-size: 22px;
      font-weight: 600;
      color: var(--text);
      line-height: 1.3;
      margin-bottom: 24px;
    }

    /* Text inputs */
    .cf-input-group {
      margin-bottom: 20px;
    }
    .cf-input-group label {
      display: block;
      font-family: 'Inter', Arial, sans-serif;
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 6px;
    }
    .cf-input {
      width: 100%;
      padding: 14px 16px;
      border: 2px solid var(--border);
      border-radius: 10px;
      font-size: 16px;
      font-family: 'Inter', Arial, sans-serif;
      color: var(--text);
      background: var(--surface);
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
      box-sizing: border-box;
    }
    .cf-input:focus {
      outline: none;
      border-color: var(--brand);
      box-shadow: 0 0 0 3px rgba(61, 94, 89, 0.15);
    }
    .cf-input--error {
      border-color: #c53030;
    }
    .cf-input-error {
      font-size: 13px;
      color: #c53030;
      margin-top: 4px;
      display: none;
    }
    .cf-input-error--visible {
      display: block;
    }

    /* Option chips (single & multi select) */
    .cf-options {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .cf-option {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      background: var(--surface);
      border: 2px solid var(--border);
      border-radius: 10px;
      cursor: pointer;
      font-family: 'Inter', Arial, sans-serif;
      font-size: 15px;
      color: var(--text);
      line-height: 1.4;
      transition: all 0.15s ease;
      text-align: left;
      width: 100%;
      min-height: 48px;
    }
    .cf-option:hover {
      border-color: var(--brand);
      background: var(--surface);
    }
    .cf-option:focus-visible {
      outline: 3px solid var(--brand);
      outline-offset: -3px;
    }
    .cf-option--selected {
      border-color: var(--action);
      background: var(--surface);
      box-shadow: 0 0 0 1px var(--action);
    }
    .cf-option__indicator {
      flex-shrink: 0;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      border: 2px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.15s ease;
    }
    .cf-option--multi .cf-option__indicator {
      border-radius: 6px;
    }
    .cf-option--selected .cf-option__indicator {
      border-color: var(--action);
      background: var(--action);
    }
    .cf-option__check {
      display: none;
      width: 12px;
      height: 12px;
      color: white;
    }
    .cf-option--selected .cf-option__check {
      display: block;
    }

    /* "Other" text input that reveals on selection */
    .cf-other-input {
      margin-top: 10px;
      display: none;
    }
    .cf-other-input--visible {
      display: block;
    }

    /* Multi-select hint */
    .cf-multi-hint {
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 12px;
    }

    /* Textarea */
    .cf-textarea {
      width: 100%;
      padding: 14px 16px;
      border: 2px solid var(--border);
      border-radius: 10px;
      font-size: 16px;
      font-family: 'Inter', Arial, sans-serif;
      color: var(--text);
      background: var(--surface);
      resize: vertical;
      min-height: 120px;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
      box-sizing: border-box;
    }
    .cf-textarea:focus {
      outline: none;
      border-color: var(--brand);
      box-shadow: 0 0 0 3px rgba(61, 94, 89, 0.15);
    }

    /* Footer / navigation */
    .cf-modal__footer {
      padding: 16px 24px 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }
    .cf-btn-back {
      background: none;
      border: none;
      cursor: pointer;
      font-family: 'Inter', Arial, sans-serif;
      font-size: 15px;
      font-weight: 500;
      color: var(--text-muted);
      padding: 10px 16px;
      border-radius: 8px;
      transition: all 0.2s ease;
    }
    .cf-btn-back:hover {
      color: var(--text);
      background: var(--background);
    }
    .cf-btn-back:focus-visible {
      outline: 3px solid var(--brand);
      outline-offset: -3px;
    }
    .cf-btn-back--hidden {
      visibility: hidden;
    }
    .cf-btn-next {
      background: var(--action);
      color: var(--surface);
      border: none;
      cursor: pointer;
      font-family: 'Inter', Arial, sans-serif;
      font-size: 15px;
      font-weight: 600;
      padding: 14px 28px;
      border-radius: 8px;
      transition: all 0.3s ease;
      box-shadow: 0 12px 40px rgba(38,51,78,.12);
      letter-spacing: 0.02em;
      min-width: 120px;
    }
    .cf-btn-next:hover {
      background: var(--brand);
      transform: translateY(-1px);
      box-shadow: 0 8px 24px rgba(194, 123, 94, 0.25);
    }
    .cf-btn-next:focus-visible {
      outline: 3px solid var(--brand);
      outline-offset: 2px;
    }
    .cf-btn-next:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    /* Confirmation step */
    .cf-confirmation {
      text-align: center;
      padding: 20px 0;
    }
    .cf-confirmation__icon {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: var(--action);
      color: var(--surface);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 24px;
    }
    .cf-confirmation__icon svg {
      width: 28px;
      height: 28px;
    }
    .cf-confirmation__heading {
      font-family: 'Space Grotesk', Arial, sans-serif;
      font-size: 24px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 12px;
    }
    .cf-confirmation__text {
      font-size: 16px;
      line-height: 1.6;
      color: var(--text-muted);
      max-width: 400px;
      margin: 0 auto;
    }
    .cf-confirmation__link {
      display: inline-block;
      margin-top: 24px;
      font-size: 15px;
      color: var(--action);
      font-weight: 500;
      text-decoration: none;
    }
    .cf-confirmation__link:hover {
      color: var(--brand);
    }


/* Current-system treatment; behavior remains in production contact-flow.js. */
.cf-modal{font-family:Inter,Arial,sans-serif;color:var(--text)}
.cf-modal__container{background:var(--surface);border:1px solid var(--border);border-radius:24px}
.cf-btn-next,.cf-btn-next:hover{background:var(--action);color:#fff;box-shadow:none}
.cf-option--selected{border-color:var(--brand);background:var(--illustration-blue)}
.recaptcha-field{max-width:100%;min-height:144px;overflow:hidden;margin-block:20px}
.recaptcha-status{font-size:14px;color:var(--text-muted)}
.recaptcha-status--error{color:#b42318}
.recaptcha-status[hidden]{display:none}
button.text-link{font-family:inherit;color:inherit;cursor:pointer;background:none;border:0;padding:0;text-decoration:underline;text-underline-offset:4px}
@media(max-width:768px){.cf-modal__container{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0}.cf-modal__body{padding:24px 16px}.cf-modal__footer{padding:12px 16px 20px}.cf-step__question{font-size:24px}}
@media(prefers-reduced-motion:reduce){.cf-modal *{animation:none!important;transition:none!important}}

.contact-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-popup.active {
    display: flex;
    opacity: 1;
}

.contact-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.contact-popup__modal {
    position: relative;
    margin: auto;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: contact-popup-slide-in 0.3s ease-out;
}

@keyframes contact-popup-slide-in {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.contact-popup__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: var(--text-muted);
    transition: all 0.2s ease;
    z-index: 10;
}

.contact-popup__close:hover {
    background: var(--background);
    color: var(--text);
}

.contact-popup__close i {
    width: 20px;
    height: 20px;
}

.contact-popup__content {
    padding: 40px;
}

.contact-popup__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: -0.025em;
}

.contact-popup__checklist {
    margin-bottom: 24px;
}

.contact-popup__item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text);
}

.contact-popup__check {
    width: 20px;
    height: 20px;
    color: var(--brand);
    margin-right: 12px;
    flex-shrink: 0;
}

.contact-popup__subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-style: italic;
}

.contact-form {
    margin-top: 32px;
}

.contact-form__field {
    margin-bottom: 24px;
}

.contact-form__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    color: var(--text);
    background: var(--surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
    outline: none;
    border-color: var(--border);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.contact-form__textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form__submit {
    width: 100%;
    background: linear-gradient(135deg, var(--brand), var(--brand));
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-form__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

.contact-form__submit:active {
    transform: translateY(0);
}

.contact-form__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.contact-form__submit-loading i {
    width: 16px;
    height: 16px;
}

.contact-form__disclaimer {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

/* Form Accessibility Styles */

/* Required asterisk */
.required {
    color: #c45a5a;
    margin-left: 2px;
}

/* Form hints */
.form-hint {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.4;
}

/* Form error messages */
.form-error {
    display: block;
    color: #c45a5a;
    font-size: 14px;
    margin-top: 6px;
    font-weight: 500;
}

.form-error[hidden] {
    display: none;
}

/* Invalid and valid field states */
.contact-form__field input:invalid:not(:placeholder-shown),
.contact-form__field select:invalid:not([value=""]),
.contact-form__field textarea:invalid:not(:placeholder-shown) {
    border-color: #c45a5a;
}

.contact-form__field input:valid:not(:placeholder-shown):not([type="email"]),
.contact-form__field select:valid:not([value=""]) {
    border-color: var(--action);
}

/* Email validation - only show valid state when truly valid */
.contact-form__field input[type="email"]:valid:not(:placeholder-shown) {
    border-color: var(--action);
}

/* Form status messages */
.form-status {
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
}

.form-status--success {
    background: var(--surface-subtle);
    border: 1px solid var(--action);
    color: var(--action-hover);
}

.form-status--error {
    background: #fdf2f2;
    border: 1px solid #c45a5a;
    color: #a84848;
}

.form-status[hidden] {
    display: none;
}

.form-status__message {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.contact-success {
    text-align: center;
    padding: 40px 20px;
}

.contact-success__icon {
    width: 48px;
    height: 48px;
    color: var(--brand);
    margin-bottom: 16px;
}

.contact-success__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.contact-success__message {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .contact-popup__modal {
        width: 95%;
        margin: 20px auto;
    }

    .contact-popup__content {
        padding: 24px;
    }

    .contact-popup__title {
        font-size: 24px;
    }

    .contact-popup__subtitle {
        font-size: 16px;
    }

    .contact-form__input,
    .contact-form__select,
    .contact-form__textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}


.contact-popup__modal{background:var(--surface);border-radius:24px;max-height:calc(100dvh - 32px);overflow:auto;margin:auto;font-family:var(--font-body)}
.contact-popup__title,.contact-success__title{font-family:var(--font-heading);font-weight:500}
.contact-popup__close{font-size:28px;line-height:1}
.contact-form__submit{background:var(--action);color:var(--action-text);border-radius:50px;font-family:var(--font-body)}
.contact-form__submit:hover{background:var(--action-hover)}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.form-error{color:#b42318;font-size:14px}
@media(max-width:480px){.contact-popup__modal{width:100%;height:100dvh;max-height:100dvh;border-radius:0;margin:0}.contact-popup__content{padding:52px 8px 24px}.contact-popup__close{right:12px;top:8px}}
/* Keep verification errors above the controls, including narrow mobile widths. */
.cf-modal__footer{flex-wrap:wrap}
[data-cf-submit-error]{flex-basis:100%;line-height:1.5}
.cf-btn-next{margin-left:auto}
[data-cf-submit-error] button,#form-status button{font:inherit;border:1px solid var(--border);border-radius:8px;background:var(--surface-subtle);color:var(--text);padding:4px 10px;cursor:pointer}
@media(max-width:360px){.cf-modal__body{padding-inline:8px}.cf-modal__header{padding-inline:16px}}
