#cw-studio .cw-contact-form-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, .45fr);
  gap: clamp(1.85rem, 5vw, 5.5rem);
  align-items: start;
  padding-top: clamp(1.75rem, 4vw, 4rem);
}

#cw-studio .cw-contact-card {
  min-width: 0;
  padding: clamp(1.3rem, 4vw, 3.35rem);
  border: 1px solid var(--rule);
  background: var(--panel);
}

#cw-studio .cw-contact-card h2 { font-size: clamp(2.2rem, 4vw, 3.7rem); }
#cw-studio .cw-contact-card form { margin-top: clamp(1.25rem, 3vw, 2rem); }
#cw-studio .cw-contact-card [hidden] { display: none; }

#cw-studio .cw-contact-card .cw-form-progress {
  margin-bottom: .65rem;
  color: var(--gold);
  font-size: .875rem;
}

#cw-studio .cw-form-step + .cw-form-step { margin-top: 1.25rem; }
#cw-studio .cw-contact-card .cw-form-enhanced .cw-form-step { margin-top: 0; }

#cw-studio .cw-form-label {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.25;
}

#cw-studio .cw-form-enhanced .cw-form-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#cw-studio .cw-form-label span, #cw-studio .cw-form-hint {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 400;
}

#cw-studio .cw-form-step .cw-form-hint { margin-top: .55rem; }

#cw-studio .cw-form-field { position: relative; margin-top: .75rem; }
#cw-studio .cw-form-enhanced .cw-form-field { margin-top: 0; }

#cw-studio .cw-form-step :is(input, textarea) {
  display: block;
  width: 100%;
  min-height: 3.2rem;
  padding: .7rem .9rem;
  border: 1px solid rgb(221 186 117 / .55);
  border-radius: .55rem;
  background: var(--black);
  color: var(--white);
  font: inherit;
}

#cw-studio .cw-form-step textarea { min-height: 7.25rem; resize: vertical; }
#cw-studio .cw-form-enhanced .cw-form-field-next :is(input, textarea) { padding-inline-end: 3.45rem; }
#cw-studio .cw-form-field :is(input, textarea)::placeholder { color: var(--muted); opacity: 1; }
#cw-studio .cw-form-enhanced .cw-form-field :is(input, textarea):focus:not([data-contact-auto-focus])::placeholder { opacity: 0; }

#cw-studio .cw-form-next.cw-button {
  --cw-button-glow-light: rgb(221 186 117 / .36);
  position: absolute;
  inset-block-start: .225rem;
  inset-inline-end: .225rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  font: 650 1.45rem/1 var(--sans);
  cursor: pointer;
}

#cw-studio .cw-form-next:hover { background: rgb(221 186 117 / .12); color: var(--gold-bright); }

#cw-studio .cw-contact-card :is(input, textarea, button):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

#cw-studio .cw-contact-card .cw-form-next:focus-visible { outline-offset: -3px; }

#cw-studio .cw-form-step [aria-invalid="true"] { border-color: #f4ab9a; }
#cw-studio .cw-contact-card :is(.cw-form-error, .cw-form-status[data-state="error"]) { color: #f4ab9a; }
#cw-studio .cw-contact-card .cw-form-error { margin-top: .55rem; font-size: .9rem; }
#cw-studio .cw-contact-card .cw-form-status:not(:empty) { margin-top: .8rem; }

#cw-studio .cw-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.15rem;
}

#cw-studio .cw-form-actions button { cursor: pointer; }
#cw-studio .cw-form-actions button:disabled { cursor: wait; opacity: .65; }
#cw-studio .cw-form-success h3, #cw-studio .cw-contact-email-aside h3 { font: 400 clamp(1.65rem, 2.7vw, 2.35rem)/1.15 var(--serif); }
#cw-studio :is(.cw-form-success, .cw-contact-email-aside) p { margin-top: .55rem; color: var(--muted); }
#cw-studio .cw-contact-email-aside { padding-block: 1.3rem; }
#cw-studio .cw-contact-email-aside .cw-email { display: inline-block; margin-top: .55rem; }

@media (max-width: 44rem) {
  #cw-studio .cw-contact-form-details { grid-template-columns: minmax(0, 1fr); }
  #cw-studio .cw-contact-email-aside { padding-block: 0; }
}
