/* ─── Forms ─────────────────────────────────────────────────────────────────
   Floating label inputs for contact form.
   ─────────────────────────────────────────────────────────────────────────── */

/* Wrapper */
.field-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Input / textarea */
.field-line {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #D3D3D3;
  outline: none;
  color: #090909;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  padding: 20px 0 10px;
  transition: border-color 200ms ease;
}
.field-line::placeholder { color: transparent; }
.field-line:focus { border-bottom-color: #090909; outline: none; }
.field-line:focus-visible { outline: none; }

textarea.field-line { resize: none; line-height: 1.6; }

/* Floating label */
.field-label {
  position: absolute;
  left: 0;
  top: 20px;
  font-size: 16px;
  font-weight: 400;
  color: #535353;
  pointer-events: none;
  transition: top 200ms ease, font-size 200ms ease, color 200ms ease;
}

/* Float up on focus or when filled */
.field-line:focus ~ .field-label,
.field-line:not(:placeholder-shown) ~ .field-label {
  top: 0;
  font-size: 12px;
  color: #535353;
}

/* Custom checkbox */
.check-wrap { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check-wrap input[type="checkbox"] {
  appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid #D3D3D3;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 150ms ease, border-color 150ms ease;
}
.check-wrap input[type="checkbox"]:hover {
  border-color: #535353;
}
.check-wrap input[type="checkbox"]:focus-visible {
  outline: 2px solid #090909;
  outline-offset: 2px;
}
.check-wrap input[type="checkbox"]:checked {
  background: #090909;
  border-color: #090909;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8l2.5 2.5L11.5 5.5' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

/* Dark variant — input (footer, dark backgrounds) */
.field-line--dark {
  color: #FAFAFA;
  font-size: 14px;
  border-bottom-color: rgba(255,255,255,0.4);
}
.field-line--dark:focus {
  border-bottom-color: #FAFAFA;
}

/* Dark variant — floating label */
.field-label--dark {
  color: rgba(255,255,255,0.5);
}
.field-line--dark:focus ~ .field-label--dark,
.field-line--dark:not(:placeholder-shown) ~ .field-label--dark {
  color: rgba(255,255,255,0.5);
}

/* Dark variant — checkbox (footer) */
.check-wrap--dark input[type="checkbox"] {
  border-color: rgba(255,255,255,0.4);
  background: transparent;
}
.check-wrap--dark input[type="checkbox"]:hover {
  border-color: rgba(255,255,255,0.6);
}
.check-wrap--dark input[type="checkbox"]:focus-visible {
  outline-color: #FAFAFA;
}
.check-wrap--dark input[type="checkbox"]:checked {
  background: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.85);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8l2.5 2.5L11.5 5.5' stroke='%23000' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}
