/*
 * Contact page styles for Hiroshi Tanita Photography.
 * Page-specific layer only — chrome (header/nav/mobile/footer) lives in
 * css/site-chrome.css. Prefix: t-  (shared tokens from css/tokens.css).
 * Faithful port of the Contact prototype.
 */

/* ------------------------------------------------------------------ *
 * main container (centered, max 640px)
 * ------------------------------------------------------------------ */
.t-main {
  padding: clamp(32px, 5vw, 52px) clamp(20px, 4.5vw, 48px);
  max-width: 640px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

/* ------------------------------------------------------------------ *
 * heading block
 * ------------------------------------------------------------------ */
.t-title {
  margin: 0;
  color: var(--c-light);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(17px, 2vw, 19px);
  letter-spacing: .32em;
}

.t-subtitle {
  margin: 6px 0 0;
  color: rgba(var(--c-light-rgb), .55);
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: .14em;
}

.t-intro {
  margin: clamp(20px, 3vw, 28px) 0 0;
  color: rgba(var(--c-light-rgb), .85);
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 13px;
  line-height: 2.3;
  letter-spacing: .04em;
}

/* ------------------------------------------------------------------ *
 * form
 * ------------------------------------------------------------------ */
.t-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: clamp(28px, 4vw, 38px);
}

.t-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.t-label {
  color: rgba(var(--c-light-rgb), .6);
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: .24em;
}

.t-input {
  background: rgba(var(--c-light-rgb), .07);
  border: 1px solid rgba(var(--c-light-rgb), .3);
  color: var(--c-light);
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 13px;
  padding: 13px 15px;
  outline: none;
  box-sizing: border-box;
  width: 100%;
  transition: border-color .35s var(--ease-out);
}

.t-input:focus {
  border-color: rgba(var(--c-light-rgb), .6);
}

.t-textarea {
  resize: vertical;
}

/* ------------------------------------------------------------------ *
 * subject chips (single-select)
 * ------------------------------------------------------------------ */
.t-chips {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.t-chip {
  border: 1px solid rgba(var(--c-light-rgb), .35);
  background: transparent;
  color: rgba(var(--c-light-rgb), .85);
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: .12em;
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: background .35s, color .35s, border-color .35s;
}

.t-chip:hover {
  border-color: rgba(var(--c-light-rgb), .95);
}

.t-chip:focus-visible {
  outline: 1px solid rgba(var(--c-light-rgb), .6);
  outline-offset: 2px;
}

.t-chip.is-on {
  background: var(--c-light);
  color: var(--c-ink);
  border-color: var(--c-light);
}

/* ------------------------------------------------------------------ *
 * status message
 * ------------------------------------------------------------------ */
.t-status {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 13px;
  line-height: 2;
  letter-spacing: .04em;
}

.t-status.is-error {
  color: rgba(var(--c-light-rgb), .85);
}

.t-status.is-success {
  color: var(--c-light);
}

/* ------------------------------------------------------------------ *
 * submit button
 * ------------------------------------------------------------------ */
.t-submit {
  display: inline-block;
  align-self: flex-start;
  background: var(--c-light);
  color: var(--c-ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .3em;
  text-indent: .3em;
  padding: 15px 42px;
  cursor: pointer;
  border: none;
  transition: opacity .35s var(--ease-out);
}

.t-submit:disabled {
  opacity: .5;
  cursor: default;
}
