/* UnyFix public form, services and tracking components.
   100% THEME-MATCHED to the brochure, using the theme's own rules:
   - fields = exact .form-control (50px, 6px 20px, 14px, square, #dedede border,
     transparent bg, red #ee3b24 focus border)
   - buttons = exact .btn.btn-primary.solid (red pill, 10px 30px, 14px, uppercase,
     Lato normal weight, 2px red border, ghost hover)
   - labels = Lato (the theme's own form-label font), legends = JaapokkiRegular
     uppercase (the theme's section-title font)
   Driven by the design tokens in unyfix-tokens.css (single source, imported below);
   every var() carries a literal fallback. Accessibility kept where it does not break
   the native look: real labels, ARIA status regions, off-screen honeypot, a visible
   focus cue on buttons. (Typed-field text is kept dark for legibility rather than the
   theme's light grey, which would make what the user types hard to read; site-wide
   keyboard-focus visibility is tracked separately so the form is not an outlier.) */

@import url("unyfix-tokens.css");

/* ---- Field layout ---- */
.uf-form .uf-field { margin-bottom: 1.1rem; }

/* Labels: Lato (matches the theme's own #contact-form labels) */
.uf-form label {
  display: block;
  font-family: var(--uf-font-body, 'Lato', sans-serif);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: .4rem;
  color: var(--uf-text-dark, #323232);
}
.uf-form .uf-required { color: var(--uf-brand, #ee3b24); }
.uf-form .uf-hint {
  display: block;
  font-family: var(--uf-font-body, 'Lato', sans-serif);
  font-weight: 400;
  font-size: .9rem;
  color: var(--uf-text-body, #6A6A6A);
  margin-top: .25rem;
}

/* Fields: exact theme .form-control (square, 50px, theme border, 14px) */
.uf-form input[type="text"],
.uf-form input[type="tel"],
.uf-form input[type="email"],
.uf-form select,
.uf-form textarea {
  width: 100%;
  height: 50px;
  padding: 6px 20px;
  border: 1px solid var(--uf-border, #dedede);
  border-radius: 0;
  background: transparent;
  font-family: var(--uf-font-body, 'Lato', sans-serif);
  font-size: 14px;
  line-height: 1.4;
  color: var(--uf-text-dark, #323232);
  transition: var(--uf-transition, all 0.3s ease 0s);
}
.uf-form textarea { height: auto; min-height: 120px; padding: 12px 20px; resize: vertical; }
.uf-form input::placeholder,
.uf-form textarea::placeholder { color: var(--uf-text-muted, #959595); }

/* Field focus: the theme's red border (matches .form-control:focus exactly) */
.uf-form input:focus,
.uf-form select:focus,
.uf-form textarea:focus,
.uf-track-form input:focus {
  border-color: var(--uf-brand, #ee3b24);
  outline: none;
}
/* Buttons/links keep a visible on-brand focus cue (accessibility) */
.uf-form button:focus,
.uf-form a:focus,
.uf-track-form button:focus {
  outline: 2px solid var(--uf-brand, #ee3b24);
  outline-offset: 2px;
}

/* Honeypot: present for bots, off-screen for people (not display:none) */
.uf-hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Fieldsets + legends as native section titles (JaapokkiRegular uppercase) */
.uf-form fieldset {
  border: 1px solid var(--uf-border-light, #e7e7e7);
  border-radius: 0;
  padding: 1.1rem 1.25rem 1.25rem;
  margin: 0 0 1.5rem;
}
.uf-form legend {
  font-family: var(--uf-font-heading, 'JaapokkiRegular');
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 1.25rem;
  line-height: 1.3;
  padding: 0 .5rem;
  color: var(--uf-text-dark, #323232);
}

/* Consent row (Lato, readable) */
.uf-consent { display: flex; gap: .55rem; align-items: flex-start; }
.uf-consent input { margin-top: .3rem; flex: 0 0 auto; }
.uf-consent label {
  font-family: var(--uf-font-body, 'Lato', sans-serif);
  font-weight: 400;
  font-size: .95rem;
  margin: 0;
  color: var(--uf-text-body, #6A6A6A);
}

/* Status / result messages (ARIA live region). Semantic colours kept. */
.uf-status { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 0; font-family: var(--uf-font-body, 'Lato', sans-serif); font-size: 1rem; line-height: 1.45; }
.uf-status:empty { display: none; }
.uf-status--info { background: var(--uf-bg-light, #f2f2f2); color: var(--uf-text-dark, #323232); border: 1px solid var(--uf-border, #dedede); }
.uf-status--success { background: var(--uf-status-success-bg, #e7f6ec); color: var(--uf-status-success-text, #14532d); border: 1px solid var(--uf-status-success-border, #a7d8b6); }
.uf-status--error { background: var(--uf-status-error-bg, #fdecec); color: var(--uf-status-error-text, #8a1020); border: 1px solid var(--uf-status-error-border, #f1b6bb); }

/* Services list: Lato names, price in brand red (theme accent) */
.uf-services-list { list-style: none; margin: 0; padding: 0; }
.uf-services-item { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem .25rem; border-bottom: 1px solid var(--uf-border-light, #e7e7e7); }
.uf-services-name { font-family: var(--uf-font-body, 'Lato', sans-serif); font-weight: 700; color: var(--uf-text-dark, #323232); }
.uf-services-price { white-space: nowrap; color: var(--uf-brand, #ee3b24); font-weight: 700; }
.uf-services-empty { padding: 1rem 1.1rem; background: var(--uf-bg-light, #f2f2f2); border: 1px solid var(--uf-border, #dedede); border-radius: 0; font-family: var(--uf-font-body, 'Lato', sans-serif); color: var(--uf-text-body, #6A6A6A); }

/* Buttons: exact theme .btn.btn-primary.solid (red pill, uppercase, ghost hover) */
.uf-btn {
  display: inline-block;
  padding: 10px 30px;
  font-family: var(--uf-font-body, 'Lato', sans-serif);
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  border: 2px solid var(--uf-brand, #ee3b24);
  border-radius: 50px;
  background: var(--uf-brand, #ee3b24);
  color: var(--uf-text-white, #fff);
  cursor: pointer;
  transition: var(--uf-transition, all 0.3s ease 0s);
}
.uf-btn:hover { background: transparent; color: var(--uf-brand, #ee3b24); }
.uf-btn:disabled { opacity: .6; cursor: default; }
.uf-btn:disabled:hover { background: var(--uf-brand, #ee3b24); color: var(--uf-text-white, #fff); }
