/* forms.css — styling for the public client forms (Client Service Agreement,
   Terms & Conditions, Pricing Agreement, Medication Authorization). */

.forms-body { background: var(--cream); color: var(--ink); }

.forms-header {
  background: var(--paper); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.forms-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.forms-logo img { height: 48px; width: auto; display: block; }
.forms-back { color: var(--forest); font-weight: 600; text-decoration: none; font-size: 15px; }
.forms-back:hover { color: var(--terracotta); }

.forms-main { padding: 40px 0 80px; }
.forms-container { max-width: 820px; }

.form-intro { margin-bottom: 32px; }
.form-intro .eyebrow {
  display: inline-block; color: var(--terracotta); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; margin-bottom: 8px;
}
.form-intro h1 { font-family: 'Fraunces', serif; font-size: 38px; line-height: 1.1; color: var(--ink); margin-bottom: 12px; }
.form-intro p { color: var(--ink-soft); font-size: 16px; line-height: 1.6; }

/* The form card */
.client-form {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-md, 16px); padding: 32px;
}
.client-form h2 {
  font-family: 'Fraunces', serif; font-size: 22px; color: var(--forest);
  margin: 36px 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--sage-pale);
}
.client-form h2:first-of-type { margin-top: 0; }
.client-form h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 20px 0 8px; }
.client-form > p, .client-form .muted { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.client-form .muted { color: var(--ink-muted); }

.client-form label {
  display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin: 14px 0 0;
}
.client-form label.req::after { content: ' *'; color: var(--terracotta); }
.client-form input[type=text],
.client-form input[type=email],
.client-form input[type=tel],
.client-form input[type=date],
.client-form input[type=number],
.client-form textarea,
.client-form select {
  width: 100%; margin-top: 6px; padding: 11px 13px; font: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--cream);
  color: var(--ink); box-sizing: border-box;
}
.client-form textarea { min-height: 80px; resize: vertical; }
.client-form input:focus, .client-form textarea:focus, .client-form select:focus {
  outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px var(--sage-pale);
}

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 600px) { .field-grid { grid-template-columns: 1fr; } }

.check-list { margin: 10px 0; display: grid; gap: 8px; }
.checkbox-row, .radio-row {
  display: flex; align-items: flex-start; gap: 10px; font-weight: 500; margin-top: 8px;
}
.checkbox-row input, .radio-row input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.checkbox-row.req span::after { content: ' *'; color: var(--terracotta); }
.inline-options { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 6px; }
.inline-options .radio-row { margin-top: 0; }

.pet-block, .med-block {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-top: 14px; background: #fcfaf5;
}

/* Legal text (Terms & Conditions) */
.legal-text { max-height: 460px; overflow-y: auto; padding: 22px; border: 1px solid var(--line);
  border-radius: 12px; background: #fcfaf5; margin: 20px 0; }
.legal-text h3 { font-family: 'Fraunces', serif; color: var(--forest); font-size: 17px; margin: 20px 0 6px; }
.legal-text h3:first-child { margin-top: 0; }
.legal-text p { color: var(--ink-soft); font-size: 14px; line-height: 1.6; margin-bottom: 8px; }
.legal-text ul { margin: 6px 0 12px 20px; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }

/* Pricing table */
.price-rows { margin: 16px 0; }
.price-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-row .pr-name { font-weight: 700; color: var(--ink); }
.price-row .pr-desc { color: var(--ink-soft); font-size: 14px; }
.price-row .pr-amt { font-weight: 700; color: var(--terracotta); white-space: nowrap; }

/* Signature block */
.sig-block { margin-top: 36px; padding-top: 24px; border-top: 2px solid var(--sage-pale); }

.form-error {
  background: #fdecea; border: 1px solid #f5c2c0; color: #b3261e;
  padding: 12px 14px; border-radius: 10px; font-weight: 600; font-size: 14px;
}

.form-actions { margin-top: 28px; }
.form-submit {
  background: var(--terracotta); color: var(--cream); border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 16px; padding: 14px 32px; border-radius: 999px;
}
.form-submit:hover { background: var(--terracotta-deep); }

/* Thank-you */
.thank-you { background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 48px 32px; text-align: center; }
.thank-you .tick {
  width: 64px; height: 64px; border-radius: 50%; background: var(--sage-pale);
  color: var(--forest); display: grid; place-items: center; margin: 0 auto 20px;
}
.thank-you .tick svg { width: 34px; height: 34px; }
.thank-you h1 { font-family: 'Fraunces', serif; font-size: 32px; color: var(--ink); margin-bottom: 12px; }
.thank-you p { color: var(--ink-soft); font-size: 16px; line-height: 1.6; max-width: 520px; margin: 0 auto 8px; }
.thank-you .ref { font-size: 13px; color: var(--ink-muted); margin-top: 16px; }
.thank-you .btn-home {
  display: inline-block; margin-top: 24px; background: var(--forest); color: var(--cream);
  padding: 12px 28px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
