:root {
  --bg: #f5f4ee;
  --ink: #0d2c1d;
  --green: #075f4d;
  --gold: #c5a880;
  --muted: rgba(13, 44, 29, 0.66);
  --card: #ffffff;
  --soft: #e8f1ec;
  --line: rgba(13, 44, 29, 0.1);
  --shadow: 0 24px 60px rgba(13, 44, 29, 0.09);
  --error: #a62d2d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.giveaway-header,
.photo-single,
.details-card,
.form-section,
.success-shell {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.giveaway-header {
  padding: 28px 0 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}

.brand-badge {
  display: inline-flex;
  width: 78px;
  height: 78px;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 34px rgba(13, 44, 29, 0.08);
}

.brand-badge img {
  width: 118%;
  height: 118%;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 19px;
  font-weight: 800;
}

.brand-copy small {
  color: rgba(13, 44, 29, 0.62);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.photo-single img {
  width: 100%;
  height: clamp(300px, 46vw, 560px);
  display: block;
  object-fit: cover;
  border-radius: 30px;
  background: var(--soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.details-card,
.form-section,
.success-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.details-card {
  margin-top: 28px;
  padding: clamp(30px, 5vw, 54px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  max-width: 860px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.8vw, 4rem);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: 0.025em;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.hero-text,
.hero-note,
.details-card p,
.form-intro p,
.success-card p,
.steps {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-text {
  max-width: 800px;
  margin-top: 22px;
  font-size: 1.08rem;
}

.prize-label {
  width: fit-content;
  margin: 22px 0 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(197, 168, 128, 0.16);
  color: var(--green);
  font-weight: 850;
}

.deadline-pill {
  width: fit-content;
  margin: 22px 0 0;
  padding: 11px 15px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--green);
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.rules-box {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.rules-box ul {
  margin: 16px 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.75;
}

.rules-box li + li {
  margin-top: 8px;
}

.steps {
  margin: 14px 0 0;
  padding-left: 1.2rem;
}

.notice-card,
.address-note,
.entry-id-box {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  background: var(--soft);
  color: var(--green);
  font-weight: 750;
  line-height: 1.65;
}

.top-cta,
.submit-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.top-cta {
  margin-top: 28px;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 28px;
  margin-bottom: 72px;
  padding: clamp(26px, 4vw, 40px);
}

.entry-form {
  display: grid;
  gap: 18px;
}

.entry-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.entry-form input[type="email"],
.entry-form input:not([type]) {
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid rgba(13, 44, 29, 0.18);
  border-radius: 14px;
  background: #fbfcfa;
  color: var(--ink);
  font: inherit;
}

.entry-form input:focus {
  border-color: var(--green);
  outline: 3px solid rgba(7, 95, 77, 0.12);
}

.check-row {
  grid-template-columns: 22px 1fr;
  align-items: start;
  font-weight: 650 !important;
  line-height: 1.6;
}

.check-row input {
  width: 19px;
  height: 19px;
  margin-top: 3px;
  accent-color: var(--green);
}

.field-error {
  min-height: 1.1em;
  color: var(--error);
  font-size: 0.86rem;
  font-weight: 750;
}

.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: 14px;
  line-height: 1.55;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  background: #fff0f0;
  color: var(--error);
}

.form-status.is-info {
  background: var(--soft);
}

.submit-button {
  width: 100%;
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.success-shell {
  display: grid;
  min-height: calc(100vh - 130px);
  place-items: center;
  padding: 44px 0 76px;
}

.success-card {
  max-width: 720px;
  padding: clamp(32px, 7vw, 64px);
  text-align: center;
}

.success-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 1.8rem;
}

.entry-id-box span,
.entry-id-box strong {
  display: block;
}

.entry-id-box strong {
  margin-top: 5px;
  font-size: clamp(1.2rem, 4vw, 1.7rem);
}

.success-community {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.success-community img {
  width: min(210px, 62vw);
  height: auto;
  display: block;
  margin: 0 auto 16px;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(13, 44, 29, 0.12);
}

.success-community p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
}

.success-home {
  width: auto;
  margin: 20px auto 0;
}

@media (max-width: 820px) {
  .detail-grid,
  .form-section {
    grid-template-columns: 1fr;
  }

  .photo-single img {
    height: clamp(220px, 62vw, 360px);
  }
}

@media (max-width: 640px) {
  .giveaway-header,
  .photo-single,
  .details-card,
  .form-section,
  .success-shell {
    width: min(100% - 24px, 1120px);
  }

  .brand-mark {
    gap: 10px;
  }

  .brand-badge {
    width: 62px;
    height: 62px;
    padding: 3px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .brand-copy small {
    font-size: 10px;
  }

  .details-card,
  .form-section {
    border-radius: 24px;
  }
}
