/* ===== Stellarzzz Simple Form デザイン ===== */

/* フォーム全体のカード */
.stellar-form {
  max-width: 520px;
  margin: 3rem auto 4rem;
  padding: 2.4rem 2.6rem;
  box-sizing: border-box;
  background: #050505;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  position: relative;
  color: #f5f5f5;
}

/* 上部のアクセントライン（黄〜オレンジのグラデ） */
.stellar-form::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(120deg, #ffd74a, #ff8b2b);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.9;
}

/* 中身は黒いカード */
.stellar-form > * {
  position: relative;
  z-index: 1;
}

/* フォームタイトル */
.stellar-form-header {
  margin-bottom: 1.6rem;
  text-align: center;
}

.stellar-form-title {
  margin: 0 0 0.25rem;
  font-size: 1.85rem;
  letter-spacing: 0.32em;
  font-weight: 600;
  text-align: center;
  background: linear-gradient(120deg, #ffe48b, #ff9f40);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.8;
  filter: drop-shadow(0 2px 6px rgba(255, 160, 60, 0.35));
}

/* ラベル */
.stellar-form label {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffe382;
}

/* 各行の余白 */
.stellar-form p {
  margin: 0 0 1.4rem;
}

/* 入力フィールド共通 */
.stellar-form input[type="text"],
.stellar-form input[type="email"],
.stellar-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 10, 0.96);
  color: #f5f5f5;
  font-size: 0.95rem;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    transform 0.12s ease;
}

/* プレースホルダ */
.stellar-form input::placeholder,
.stellar-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* フォーカス時の光り方 */
.stellar-form input[type="text"]:focus,
.stellar-form input[type="email"]:focus,
.stellar-form textarea:focus {
  border-color: #ffb835;
  box-shadow: 0 0 0 1px rgba(255, 184, 53, 0.8),
              0 12px 24px rgba(0, 0, 0, 0.7);
  background: #080808;
  transform: translateY(-1px);
}

/* テキストエリア */
.stellar-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* 送信ボタン */
.stellar-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 0.7rem 1.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  background: linear-gradient(135deg, #ffdd4d, #ff8e30);
  color: #111111;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.75),
    0 0 14px rgba(255, 185, 50, 0.7);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    filter 0.12s ease;
}

.stellar-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.9),
    0 0 22px rgba(255, 185, 50, 0.9);
  filter: brightness(1.05);
}

.stellar-form button[type="submit"]:active {
  transform: translateY(0);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.75),
    0 0 10px rgba(255, 185, 50, 0.6);
}

/* 成功・エラー画面（フォームと同じカードデザイン） */
.stellar-form-success,
.stellar-form-error {
  max-width: 520px;
  margin: 3rem auto 4rem;
  padding: 2.4rem 2.6rem;
  box-sizing: border-box;
  background: #050505;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  position: relative;
  color: #f5f5f5;
}

.stellar-form-success::before,
.stellar-form-error::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(120deg, #ffd74a, #ff8b2b);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.9;
}

.stellar-form-success > *,
.stellar-form-error > * {
  position: relative;
  z-index: 1;
}

.stellar-form-success h2,
.stellar-form-error h2 {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stellar-form-success h2 {
  background: linear-gradient(120deg, #ffe48b, #ff9f40);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(255, 160, 60, 0.35));
}

.stellar-form-error h2 {
  color: #ff6b5a;
}

.stellar-form-success p,
.stellar-form-error p {
  margin: 0;
  line-height: 1.9;
  font-size: 0.96rem;
}

/* スマホ向け微調整 */
@media (max-width: 599px) {
  .stellar-form,
  .stellar-form-success,
  .stellar-form-error {
    margin: 1.8rem 1rem 3rem;
    padding: 1.8rem 1.5rem;
  }
}
