.mgf-app {
  --mgf-color-bg: #f6efe6;
  --mgf-color-surface: #fffdf8;
  --mgf-color-surface-alt: #fff7ef;
  --mgf-color-border: rgba(151, 126, 81, 0.18);
  --mgf-color-text: #5f513b;
  --mgf-color-text-soft: #8a7a63;
  --mgf-color-primary: #95aa58;
  --mgf-color-primary-strong: #7f9444;
  --mgf-color-accent: #60c4ca;
  --mgf-shadow-card: 0 24px 60px rgba(128, 107, 73, 0.12);
  --mgf-radius-card: 28px;
  --mgf-radius-field: 18px;
  color: var(--mgf-color-text);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.mgf-app * {
  box-sizing: border-box;
}

.mgf-shell {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.mgf-hero,
.mgf-panel,
.mgf-notice {
  position: relative;
  overflow: hidden;
  background: var(--mgf-color-surface);
  border: 1px solid var(--mgf-color-border);
  border-radius: var(--mgf-radius-card);
  box-shadow: var(--mgf-shadow-card);
}

.mgf-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(247, 204, 182, 0.88), rgba(255, 244, 234, 0.96));
}

.mgf-hero-content {
  position: relative;
  z-index: 1;
}

.mgf-eyebrow {
  margin: 0 0 0.4rem;
  color: var(--mgf-color-text-soft);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mgf-hero-title,
.mgf-panel-title,
.mgf-section-title {
  margin: 0;
  line-height: 1.2;
}

.mgf-hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: #fff9f2;
  text-shadow:
    -2px -2px 0 rgba(96, 196, 202, 0.75),
    2px -2px 0 rgba(96, 196, 202, 0.75),
    -2px 2px 0 rgba(96, 196, 202, 0.75),
    2px 2px 0 rgba(96, 196, 202, 0.75),
    0 10px 28px rgba(122, 93, 74, 0.18);
}

.mgf-hero-subtitle {
  max-width: 36rem;
  margin: 0.9rem 0 1rem;
  color: #705b4a;
  font-size: 1rem;
}

.mgf-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.mgf-hero-chips span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #6e6354;
  font-size: 0.95rem;
  font-weight: 700;
}

.mgf-hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mgf-hero-media img {
  width: 100%;
  max-width: 280px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 22px 40px rgba(106, 82, 56, 0.16);
}

.mgf-hero-decoration {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}

.mgf-hero-decoration--left {
  width: 190px;
  height: 190px;
  left: -40px;
  top: -72px;
  background: rgba(255, 255, 255, 0.28);
}

.mgf-hero-decoration--right {
  width: 220px;
  height: 220px;
  right: -60px;
  bottom: -100px;
  background: rgba(96, 196, 202, 0.18);
}

.mgf-panel {
  margin-bottom: 1.25rem;
}

.mgf-panel-header,
.mgf-section-header {
  padding: 1.4rem 1.5rem 0;
}

.mgf-panel-title {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.mgf-panel-body,
.mgf-section-body {
  padding: 1rem 1.5rem 1.5rem;
}

.mgf-notice-stack {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.mgf-notice {
  padding: 1rem 1.1rem;
  background: var(--mgf-color-surface-alt);
}

.mgf-notice strong {
  display: block;
  margin-bottom: 0.35rem;
}

.mgf-notice p {
  margin: 0;
}

.mgf-form {
  padding: 0.5rem 1.5rem 1.75rem;
}

.mgf-section-card {
  margin-bottom: 1.1rem;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.95), #fff 100%);
  border: 1px solid var(--mgf-color-border);
  border-radius: 24px;
}

.mgf-section-title {
  font-size: 1.2rem;
}

.mgf-section-description,
.mgf-field-help,
.mgf-richtext {
  color: var(--mgf-color-text-soft);
  font-size: 0.96rem;
}

.mgf-section-description p,
.mgf-richtext p {
  margin: 0 0 0.65rem;
}

.mgf-section-description p:last-child,
.mgf-richtext p:last-child {
  margin-bottom: 0;
}

.mgf-field-help {
  white-space: pre-line;
}

.mgf-fields-grid {
  display: grid;
  gap: 1rem;
}

.mgf-field {
  display: grid;
  gap: 0.45rem;
}

.mgf-field-label {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--mgf-color-text);
}

.mgf-field-required {
  color: #c44d56;
  font-weight: 800;
}

.mgf-input,
.mgf-textarea,
.mgf-select,
.mgf-file-control {
  width: 100%;
  border: 1px solid rgba(134, 114, 76, 0.22);
  border-radius: var(--mgf-radius-field);
  background: #fff;
  color: var(--mgf-color-text);
  font: inherit;
  padding: 0.92rem 1rem;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.mgf-textarea {
  min-height: 140px;
  resize: vertical;
}

.mgf-input:focus,
.mgf-textarea:focus,
.mgf-select:focus,
.mgf-file-control:focus {
  outline: none;
  border-color: rgba(96, 196, 202, 0.9);
  box-shadow: 0 0 0 4px rgba(96, 196, 202, 0.16);
}

.mgf-choice-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.mgf-choice-card,
.mgf-checkbox-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  min-height: 100%;
  border: 1px solid rgba(134, 114, 76, 0.18);
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.mgf-choice-card:hover,
.mgf-checkbox-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 196, 202, 0.55);
  box-shadow: 0 10px 22px rgba(126, 109, 80, 0.08);
}

.mgf-choice-card input,
.mgf-checkbox-pill input {
  margin-top: 0.18rem;
  accent-color: var(--mgf-color-primary);
}

.mgf-choice-body {
  display: grid;
  gap: 0.15rem;
}

.mgf-choice-title {
  font-weight: 700;
  color: var(--mgf-color-text);
}

.mgf-choice-description {
  color: var(--mgf-color-text-soft);
  font-size: 0.92rem;
}

.mgf-file-input {
  display: grid;
  gap: 0.65rem;
}

.mgf-file-control {
  padding: 0.7rem 0.85rem;
}

.mgf-field-error {
  min-height: 1.2rem;
  color: #c44d56;
  font-size: 0.9rem;
  font-weight: 700;
}

.mgf-field--invalid .mgf-input,
.mgf-field--invalid .mgf-textarea,
.mgf-field--invalid .mgf-select,
.mgf-field--invalid .mgf-file-control,
.mgf-field--invalid .mgf-choice-card,
.mgf-field--invalid .mgf-checkbox-pill {
  border-color: rgba(196, 77, 86, 0.65);
}

.mgf-form-status {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  font-weight: 700;
}

.mgf-form-status--success {
  background: rgba(45, 139, 87, 0.12);
  color: #2d8b57;
}

.mgf-form-status--error {
  background: rgba(196, 77, 86, 0.1);
  color: #c44d56;
}

.mgf-form-actions {
  margin-top: 1.4rem;
  display: flex;
  justify-content: center;
}

.mgf-submit-button {
  border: 0;
  border-radius: 999px;
  padding: 0.92rem 2.2rem;
  min-width: 220px;
  background: linear-gradient(135deg, var(--mgf-color-primary) 0%, var(--mgf-color-primary-strong) 100%);
  color: #fffdf8;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 18px 30px rgba(127, 148, 68, 0.28);
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.mgf-submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 34px rgba(127, 148, 68, 0.32);
}

.mgf-submit-button:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.mgf-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (max-width: 720px) {
  .mgf-hero {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .mgf-panel-header,
  .mgf-panel-body,
  .mgf-form,
  .mgf-section-header,
  .mgf-section-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .mgf-choice-grid {
    grid-template-columns: 1fr;
  }
}
