/* =============================================================
   FUKUI GIG GUIDE – form.css
   フォームページ共通 (login / register / contact / unsubscribe)
   ============================================================= */

/* body flex for centering */
body.page-body {
  display: flex;
  flex-direction: column;
}

/* ── Page layout ── */
.page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  position: relative;
}
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 60% at 50% 40%,
    rgba(255, 149, 0, 0.05) 0%,
    transparent 60%
  );
  pointer-events: none;
}

/* ── Card ── */
.card {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}
.card-header {
  margin-bottom: 2rem;
  text-align: center;
}
.card-title {
  font-family: var(--ff-display);
  font-size: 2.4rem;
  letter-spacing: 0.1em;
  line-height: 1;
}
.card-title em {
  color: var(--amber);
  font-style: normal;
}
.card-sub {
  font-family: var(--ff-ui);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 0.4rem;
}
.card-body {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 2rem;
}
.card-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.card-footer a {
  color: var(--amber);
}
.card-footer a:hover {
  text-decoration: underline;
}

/* ── Contact-specific ── */
.page-sub {
  font-family: var(--ff-ui);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 0.5rem;
}
.form-sec {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 1.2rem;
}
.submit-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 1.5rem 2rem;
}
.submit-note {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
}
.notice-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.8;
}
.notice-box strong {
  color: var(--text);
}
.success-box {
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 3rem;
  text-align: center;
}
.success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.success-title {
  font-family: var(--ff-display);
  font-size: 2rem;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 0.8rem;
}
.success-msg {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.9;
}

/* ── select style ── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%239aa3b8' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.8;
}

/* ── flash (card version) ── */
.flash-ok-card {
  background: rgba(52, 211, 153, 0.07);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 0.8rem 1rem;
  margin-bottom: 1.2rem;
  font-size: 0.75rem;
  color: #34d399;
}

/* ── Unsubscribe / Result Card ── */
.icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
}
.title {
  font-family: var(--ff-display);
  font-size: 2rem;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 0.8rem;
  text-align: center;
}
.msg {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.9;
  text-align: center;
  margin-bottom: 2rem;
}
.btn {
  display: block;
  width: 100%;
  font-family: var(--ff-ui);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem;
  background: var(--amber);
  color: var(--bg);
  text-align: center;
  font-weight: 700;
  transition: background 0.2s;
}
.btn:hover {
  background: var(--amber2);
}

@media (max-width: 600px) {
  .wrap {
    padding: 2rem 1.2rem;
  }
  .submit-area {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-submit {
    text-align: center;
  }
}

/* ── Refactoring Utilities & Components ── */
.hn-link--danger {
  color: var(--red) !important;
}

.btn-secondary-mono {
  display: inline-block;
  font-family: var(--ff-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.7rem 1.8rem;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
}
.btn-secondary-mono:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.field-hint {
  font-style: italic;
  text-transform: none;
  font-size: 0.55rem;
  opacity: 0.7;
  display: inline-block;
  margin-left: 0.3rem;
}

.err-box-inline {
  background: rgba(255, 60, 95, 0.06);
  border: 1px solid rgba(255, 60, 95, 0.25);
  padding: 0.8rem 1.2rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--red);
}
