/* 451 Atölye — site-wide form & control kit (light / water) */

.field,
.form-field,
.join-form__field,
.contact-form__field,
.auth-form .form-group {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.field__label,
.form-label,
.join-form__label,
.contact-form__label {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--site-ink, #1a2c2a);
}

.field__help,
.form-help,
.join-form__help,
.contact-form__help {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--site-ink-muted, rgba(26, 44, 42, 0.58));
}

.field__error,
.form-error,
.join-form__error,
.contact-form__error,
.errorlist {
  color: #b42318;
  font-size: 0.82rem;
  line-height: 1.4;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="number"],
.field input[type="search"],
.field input[type="date"],
.field textarea,
.field select,
.form-field input,
.form-field textarea,
.form-field select,
.join-form__field input,
.join-form__field textarea,
.join-form__field select,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select,
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.dashboard-main-area input[type="text"],
.dashboard-main-area input[type="email"],
.dashboard-main-area input[type="password"],
.dashboard-main-area input[type="number"],
.dashboard-main-area input[type="date"],
.dashboard-main-area textarea,
.dashboard-main-area select {
  width: 100%;
  margin: 0;
  padding: 0.78rem 0.95rem;
  border-radius: 11px;
  border: 1px solid rgba(26, 44, 42, 0.14);
  background: #fff;
  color: var(--site-ink, #1a2c2a);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
  transition: border-color 0.2s var(--ease-premium, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow 0.2s var(--ease-premium, cubic-bezier(0.22, 1, 0.36, 1));
}

.field textarea,
.form-field textarea,
.contact-form textarea,
.join-form__field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:hover,
.form-field input:hover,
.contact-form input:hover,
.auth-form input:hover,
.dashboard-main-area input:hover,
.dashboard-main-area textarea:hover,
.dashboard-main-area select:hover {
  border-color: rgba(47, 122, 114, 0.35);
}

.field input:focus,
.form-field input:focus,
.contact-form input:focus,
.auth-form input:focus,
.dashboard-main-area input:focus,
.dashboard-main-area textarea:focus,
.dashboard-main-area select:focus,
.field textarea:focus,
.form-field textarea:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(47, 122, 114, 0.55);
  box-shadow: 0 0 0 4px rgba(47, 122, 114, 0.12);
}

/* Buttons */
.btn-451-primary,
.btn-primary,
button.cta,
a.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-451-primary::after,
.btn-primary::after,
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease-premium, cubic-bezier(0.22, 1, 0.36, 1));
  pointer-events: none;
  z-index: 0;
}

.btn-451-primary:hover::after,
.btn-primary:hover::after,
.cta:hover::after {
  transform: translateX(120%);
}

.btn-451-primary > *,
.btn-primary > *,
.cta > * {
  position: relative;
  z-index: 1;
}

/* Checkbox / radio comfort */
input[type="checkbox"],
input[type="radio"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--water, #2f7a72);
  flex-shrink: 0;
}

.choice-chip,
.bf-fieldset label {
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease-premium, cubic-bezier(0.22, 1, 0.36, 1));
}

.choice-chip:hover,
.bf-fieldset label:hover {
  transform: translateY(-1px);
}

/* Surfaces */
.form-surface,
.auth-card,
.contact-form {
  border: 1px solid var(--site-rule, rgba(26, 44, 42, 0.1));
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft, 0 22px 50px -32px rgba(22, 62, 58, 0.38));
}

html[data-theme="light"] .auth-form input,
html[data-theme="light"] .auth-card input {
  background: #fff !important;
  border-color: rgba(26, 44, 42, 0.14) !important;
  color: var(--site-ink, #1a2c2a) !important;
}
