* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #164b57;
  background: #f7ffff;
}

.badge {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
  margin-bottom: 28px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 13px;
}

h1 {
  font-family: 'Cormorant Garamond', serif;

  font-size: clamp(64px, 10vw, 118px);

  font-weight: 500;

  line-height: .95;

  letter-spacing: 1px;
}

h2 {
  font-family: 'Cormorant Garamond', serif;

  font-size: clamp(48px, 6vw, 78px);

  font-weight: 500;

  line-height: 1;

  letter-spacing: .5px;

  color: var(--smoke);
}

h4 {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(54px, 7vw, 20px);
  font-weight: 400;
  color: #0d8d9b;
  line-height: .95;
}

.text {
  margin-top: 24px;
  line-height: 1.9;
  font-size: 17px;
  color: #4d7d86;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 42px;
}

.btn {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 30px;
  font-weight: 600;
  transition: .25s ease;
  display: inline-block;
}

.btn-primary {
  background: white;
  color: #159dad;
  border: 1px solid #c8f1f5;
}

.btn-primary:hover {
  background: #eefcfd;
  transform: translateY(-2px);
}

.btn-secondary {
  color: white;
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(22, 184, 201, .22);
  backdrop-filter: blur(8px);
}

section {
  padding: 96px 20px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

.card {
  padding: 34px 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(10px);
}

.card-icon {
  font-size: 34px;
  margin-bottom: 16px;
}

.card h3 {
  font-family: 'Great Vibes', cursive;
  font-size: 40px;
  font-weight: 400;
  margin-bottom: 12px;
}

.card p {
  color: rgba(255, 255, 255, .84);
  line-height: 1.7;
}

.form-card {
  background: rgba(255, 255, 255, .95);
  border-radius: 34px;
  padding: 38px;
  box-shadow: 0 28px 70px rgba(22, 184, 201, .12);
  backdrop-filter: blur(10px);
  border: 1px solid #d8f4f7;
}

label {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 600;
  color: #4d7d86;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c8edf1;
  border-radius: 18px;
  padding: 15px 17px;
  font-family: inherit;
  font-size: 15px;
  color: #164b57;
  background: white;
  outline: none;
  transition: .2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #16b8c9;
  box-shadow: 0 0 0 4px rgba(22, 184, 201, .14);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 20px;
}

.submit-btn {
  width: 100%;
  border-radius: 18px;
  background: #16b8c9;
  color: white;
  padding: 17px 24px;
  font-size: 16px;
}

.submit-btn:hover {
  background: #0fa6b5;
  transform: translateY(-2px);
}

.success-message {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #e8fbfd;
  color: #0d8d9b;
  font-weight: 500;
  text-align: center;
  border: 1px solid #c8edf1;
}

/* Premium checkboxes
.checkbox-list {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.checkbox-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(240,252,253,.96));
  border: 1px solid #d8f4f7;
  box-shadow: 0 10px 24px rgba(22, 184, 201, .08);
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
  overflow: hidden;
}

.checkbox-item:hover {
  transform: translateY(-2px);
  border-color: #9fe4ea;
  box-shadow: 0 18px 38px rgba(22, 184, 201, .14);
}

.checkbox-item input {
  appearance: none;
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  min-width: 26px;
  padding: 0;
  border-radius: 10px;
  border: 2px solid #9edee5;
  background: white;
  position: relative;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.checkbox-item input:hover {
  transform: scale(1.05);
}

.checkbox-item input:checked {
  background: linear-gradient(135deg, #12c2a9, #0ea5a4);
  border-color: #0ea5a4;
}

.checkbox-item input:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  color: white;
  font-size: 15px;
  font-weight: 900;
}

.checkbox-item span {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  color: #164b57;
  line-height: 1.4;
}

.checkbox-item:has(input:checked) {
  background: linear-gradient(135deg, rgba(18,194,169,.10), rgba(14,165,164,.08));
  border-color: #7ad9d7;
  box-shadow: 0 18px 42px rgba(14, 165, 164, .16);
} */

.status-ok {
  color: #0ea7b7;
  font-weight: 700;
}

.status-pending {
  color: #7aaeb5;
  font-weight: 700;
}

footer {
  background: #0c7280;
  color: white;
  text-align: center;
  padding: 46px 20px;
}

footer .names {
  font-family: 'Great Vibes', cursive;
  font-size: 48px;
}

footer p:last-child {
  margin-top: 8px;
  color: rgba(255, 255, 255, .72);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .story-grid,
  .rsvp-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .story-image {
    min-height: 380px;
  }

  .hero,
  .story-image,
  .details {
    background-attachment: scroll;
  }
}

@media (max-width: 600px) {
  section {
    padding: 72px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 26px;
  }

  .checkbox-item {
    padding: 16px 18px;
    border-radius: 18px;
  }

  /* .checkbox-item span {
    font-size: 15px;
  }

  .checkbox-item input {
    width: 24px;
    height: 24px;
    min-width: 24px;
  } */
}

.family-title {
  margin-top: 30px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  color: #164b57;
  font-size: 24px;
  font-weight: 700;
  border-bottom: 1px solid #d8f4f7;
}

/* .checkbox-list {
  margin-top: 10px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(243, 254, 255, .72);
  border: 1px solid #d8f4f7;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75);
} */