* {
  box-sizing: border-box;
}

:root {
  --brand-red: #d62828;
  --brand-deep: #a31d1d;
  --brand-green: #6a7e1d;
  --cream: #fffaf1;
  --sand: #f6e5d6;
  --text: #2a1a12;
  --muted: #6b4a3c;
  --border: #f1d2bd;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  --radius: 18px;
}

body {
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #fffaf3, #fef2e5);
  color: var(--text);
  margin: 0;
  padding: 0;
}

.brand-bar {
  background: #fff;
  color: var(--brand-deep);
  padding: 18px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.brand-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-logo {
  height: 52px;
  width: auto;
}

.brand-tag {
  background: transparent;
  color: var(--brand-deep);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.92rem;
  border: 1px solid #d9b6a2;
  box-shadow: none;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

a {
  color: var(--brand-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

a:hover {
  color: var(--brand-red);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
  padding: 22px;
  background: #fffdf8;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #f4d5c5;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 6px;
}

.title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 600;
  font-size: 2rem;
  margin: 0 0 6px;
  color: var(--brand-deep);
}

.subtitle {
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.6;
}

.meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: #fff6ec;
  border: 1px dashed #e8bda3;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.meta-bar span {
  padding: 4px 8px;
  background: #fff;
  border-radius: 8px;
}

.panel {
  margin-top: 26px;
  background: #fffdf8;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid #f4d5c5;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-title {
  margin: 0;
  font-size: 1.4rem;
  color: var(--brand-deep);
}

.panel-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
}

.badge {
  background: var(--brand-red);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 22px rgba(200, 16, 46, 0.25);
}

.dropzone {
  border: 2px dashed #e8bda3;
  border-radius: 14px;
  background: linear-gradient(145deg, #fffdf8, #fff2e2);
  padding: 30px;
  color: var(--muted);
  min-height: 200px;
}

.dz-message {
  font-weight: 700;
  color: var(--brand-deep);
  font-size: 1.05rem;
}

.dz-preview .dz-progress {
  background: #ffe3d6 !important;
}

.dz-preview .dz-upload {
  background: linear-gradient(90deg, var(--brand-red), var(--brand-deep)) !important;
}

.status-text {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--text);
  border: 1px solid var(--border);
}

.status-text.success {
  background: #f0fff4;
  border-color: #b7e4c7;
  color: #2b5c3a;
}

.status-text.error {
  background: #fff5f3;
  border-color: #f1b9b9;
  color: #9c1f2d;
}

.rules {
  background: #fffdf8;
}

.rules ul {
  padding-left: 18px;
  line-height: 1.6;
  color: var(--text);
  margin-top: 6px;
}

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

.rules .small {
  color: var(--muted);
  margin-top: 12px;
}

.tips {
  background: #fff;
}

.form-field {
  margin: 12px 0;
}

.form-field label {
  display: block;
  font-weight: 800;
  color: var(--brand-deep);
  margin-bottom: 6px;
}

.form-field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
  min-height: 90px;
  background: #fffdfa;
}

.form-field .input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font: inherit;
  background: #fffdfa;
}

.helper-text {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  font-weight: 800;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-deep));
  color: #fff;
  box-shadow: 0 12px 26px rgba(200, 16, 46, 0.25);
}

.btn.secondary {
  background: #fff;
  color: var(--brand-deep);
  border: 1px solid var(--brand-deep);
}

.btn + .btn {
  margin-top: 10px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 18px 20px;
  border-radius: 14px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow);
  text-align: center;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn:not(:disabled):active {
  transform: translateY(1px);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.tip-title {
  margin: 0 0 4px;
  font-weight: 800;
  color: var(--brand-deep);
}

code {
  background: #f3e4da;
  padding: 3px 6px;
  border-radius: 6px;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.site-footer {
  margin-top: 34px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

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

  .brand-mark {
    width: 62px;
    height: 62px;
    font-size: 1.6rem;
  }
}
