@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:wght@500;700&display=swap');

:root {
  --bg: #fffaf5;
  --card: #ffffff;
  --text: #3f2d2a;
  --muted: #6d5752;
  --line: #ecdcd2;
  --accent: #b4674d;
  --accent-2: #8e4b36;
  --ok: #2f7a4f;
  --error: #9b2c2c;
  --shadow: 0 10px 30px rgba(85, 42, 30, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 250, 245, 0.4), rgba(255, 250, 245, 0.9)),
    url("../assets/png-clipart-pattern-classical-pattern-brown-floral-textile-geometric-pattern-thumbnail.png");
  background-repeat: repeat, repeat;
  background-size: auto, 900px 900px;
  background-position: center, 0 0;
  color: var(--text);
}

body {
  min-height: 100vh;
  line-height: 1.45;
}

.page {
  width: min(900px, 92vw);
  margin: 1.5rem auto 3rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section {
  padding: 1.4rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.section:last-child {
  border-bottom: 0;
}

.hero {
  text-align: center;
  padding: 2rem 1.2rem 1.6rem;
}

.hero-photo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 auto 0.9rem;
}

.hero-loader {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 3px solid #efdccf;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: hero-spin 0.9s linear infinite;
}

.hero-loader[hidden] {
  display: none;
}

.hero-photo {
  width: min(270px, 78vw);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 999px;
  border: 5px solid #f4e0d4;
  box-shadow: 0 14px 32px rgba(79, 49, 40, 0.2);
  opacity: 0;
  transition: opacity 220ms ease;
}

.hero-photo.loaded {
  opacity: 1;
}

.hero h1 {
  margin: 0.2rem 0 0;
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: 0.02em;
  font-family: "Playfair Display", Georgia, serif;
}

.hero p {
  margin: 0.35rem 0;
  color: var(--muted);
}

#eventSubtitle {
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.4rem, 6vw, 2.1rem);
  color: var(--accent-2);
}

.hero .icons {
  font-size: 1.2rem;
  margin: 0.7rem 0;
}

.hero-description {
  margin: 0.35rem auto 0.45rem;
  max-width: 640px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.hero-description a {
  color: var(--accent-2);
  font-weight: 600;
}

.hero .date {
  font-weight: 600;
  color: var(--accent-2);
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.section p {
  margin: 0;
  color: var(--muted);
}

.hero .hero-description {
  margin: 0.35rem auto 0.45rem;
  width: min(100%, 640px);
}

.options {
  background: linear-gradient(180deg, rgba(255, 250, 245, 0.72), rgba(255, 255, 255, 0.95));
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.option-card {
  border: 1px solid #ecd9cd;
  border-radius: 16px;
  padding: 1rem;
  background: #fffdfb;
  box-shadow: 0 6px 16px rgba(95, 62, 45, 0.06);
}

.actions {
  margin-top: 0.9rem;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 0.72rem 1.05rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform 140ms ease, filter 140ms ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.btn.secondary {
  background: #f2e5dc;
  color: var(--accent-2);
  border: 1px solid #e9d4c7;
}

.label-soon {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

label {
  font-size: 0.9rem;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  border: 1px solid #decabf;
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

input[type="file"] {
  padding: 0.5rem;
  background: #fffaf6;
}

textarea {
  resize: vertical;
  min-height: 95px;
}

.helper-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.status {
  margin-top: 0.65rem;
  min-height: 1.2rem;
  font-size: 0.9rem;
}

.status.ok {
  color: var(--ok);
}

.status.error {
  color: var(--error);
}

.messages-wrap {
  margin-top: 1rem;
}

.messages-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.message-card {
  border: 1px solid #f0dfd4;
  background: #fffdfa;
  border-radius: 14px;
  padding: 0.8rem;
}

.message-card .name {
  font-weight: 700;
  color: var(--accent-2);
}

.message-card .text {
  margin-top: 0.25rem;
  color: var(--text);
  white-space: pre-wrap;
}

.message-card .photo {
  margin-top: 0.6rem;
  width: 100%;
  border-radius: 10px;
  border: 1px solid #ecd9cd;
  object-fit: cover;
  max-height: 250px;
}

.message-card .meta {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.empty {
  color: var(--muted);
  font-style: italic;
}

.footer-note {
  text-align: center;
  font-weight: 600;
  color: var(--accent-2);
  padding: 1.5rem 1rem 1.8rem;
}

.footer-note p {
  margin: 0;
}

.contact-box {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.45rem;
  justify-items: center;
}

#contactNumber {
  color: var(--muted);
  font-size: 0.92rem;
}

@keyframes hero-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 700px) {
  .section,
  .hero {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .messages-list {
    grid-template-columns: 1fr 1fr;
  }

  .options-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.2rem;
    align-items: stretch;
  }
}
