* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #faf7f2;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #1f4f80;
  --accent-soft: #eaf3fb;
  --button: #1f4f80;
  --button-hover: #163d67;
  --border: rgba(31, 79, 128, 0.12);
}

body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  user-select: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #ffffff;
  background-image: url("../images/invitation.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.58) 0%,
    rgba(15, 23, 42, 0.28) 50%,
    rgba(15, 23, 42, 0.68) 100%
  );
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 3rem 1.5rem;
}

.hero-subtitle {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255);
  text-shadow: 1px 1px 2px black;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: -0.05em;
}

.hero-text {
  margin: 1.5rem auto 2rem;
  max-width: 620px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
}

main {
  overflow: hidden;
}

section {
  padding: 1rem 1.5rem;
}

.section-card {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: 0 35px 80px rgba(15, 23, 42, 0.06);
}

.section-card h2 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.info-grid div {
  background: var(--surface-strong);
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(31, 79, 128, 0.08);
}

.info-grid span {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.info-grid p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.info-card {
  margin-top: 1.5rem;
}

.section-header {
  display: grid;
}

.small-text {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.rsvp-form {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

.rsvp-details {
  display: grid;
  gap: 1.25rem;
}

#hotelDetails {
  padding: 1rem;
  background: var(--surface-strong);
  border-radius: 16px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

.copyable {
  cursor: pointer;
  user-select: text;
}

.names-container {
  display: grid;
  gap: 0.9rem;
}

.calendar-section {
  text-align: center;
  margin-top: 1rem;
}

.names-container label,
.field-group p {
  display: block;
  margin-bottom: 0.55rem;
  font-weight: 600;
}

.names-container input[type="text"],
input[type="text"],
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.names-container input[type="text"]:focus,
input[type="text"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(31, 79, 128, 0.35);
  box-shadow: 0 0 0 4px rgba(223, 236, 255, 0.4);
}

textarea {
  min-height: 80px;
  resize: vertical;
}

.names-section {
  display: grid;
  gap: 0.9rem;
}

.names-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.name-row input,
.name-row select {
  width: 100%;
  min-height: 3rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.name-row input::placeholder {
  color: #9ca3af;
}

@media (max-width: 720px) {
  .names-header,
  .name-row {
    /* grid-template-columns: 1fr; */
  }
}

.field-group,
.radio-group {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 0;
}

.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  cursor: pointer;
}

.checkbox-label input,
.radio-label input {
  accent-color: var(--accent);
  width: 1.1rem;
  height: 1.1rem;
}

.primary-button,
.secondary-button {
  border: none;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 1.6rem;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.primary-button {
  margin-top: 1rem;
  background: var(--button);
  color: #fff;
  box-shadow: 0 20px 30px rgba(31, 79, 128, 0.18);
}

.secondary-button {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(31, 79, 128, 0.18);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  section {
    padding: 1rem 1rem;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-content {
    padding: 2rem 1rem;
  }

  .hero-text {
    font-size: 1rem;
  }
}
