:root {
  --bg-color: #f9f9f9;
  --text-color: #4a4a4a;
  --primary-color: #dfa6a6; /* Soft Rose */
  --accent-color: #b76e79; /* Rose Gold/Copper */
  --white: #ffffff;
  --font-heading: "Cormorant Garamond", serif;
  --font-body: "Lato", sans-serif;
  --shadow: 0 10px 30px rgba(183, 110, 121, 0.15); /* Rose shadow */
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.8;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--accent-color);
  font-weight: 600;
}

/* Hero */
.hero {
  height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
    url("https://images.unsplash.com/photo-1515934751635-c81c6bc9a2d8?q=80&w=2670&auto=format&fit=crop")
      no-repeat center center/cover;
  background-attachment: fixed; /* Parallax Effect */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  background: rgba(255, 255, 255, 0.85); /* Light frosted */
  padding: 4rem;
  border-radius: 4px; /* More editorial, less rounded */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  max-width: 80%;
}

.pre-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1rem;
}

.main-title {
  font-size: 6rem;
  color: var(--accent-color);
  line-height: 0.9;
  margin: 1rem 0;
}

.date {
  font-size: 1.5rem;
  letter-spacing: 5px;
  margin-top: 1rem;
  color: var(--text-color);
}

.divider {
  height: 1px;
  width: 100px;
  background: var(--accent-color);
  margin: 2rem auto;
}

.scroll-down {
  margin-top: 3rem;
  color: var(--accent-color);
  animation: bounce 2s infinite;
}

/* Sections */
.section {
  padding: 6rem 1rem;
  text-align: center;
}

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

.section-title {
  font-size: 3.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.section-subtitle {
  margin-bottom: 3rem;
  color: #777;
  font-style: italic;
}

/* Cards */
.content-card {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.content-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(183, 110, 121, 0.25);
}

.quote {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--text-color);
  line-height: 1.4;
}

.icon-quote {
  color: #eee;
  font-size: 2rem;
  margin: 1rem;
}

/* Countdown */
.timer {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.time-box {
  text-align: center;
  min-width: 80px;
}

.time-box span:not(.label) {
  display: block;
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.time-box .label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
}

/* Timeline */
.timeline {
  position: relative;
  margin-top: 4rem;
}

/* Timeline Line */
.timeline::after {
  content: "";
  position: absolute;
  width: 2px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-item {
  width: 50%;
  position: relative;
  margin-bottom: 3rem;
}

.left {
  left: 0;
  padding-right: 40px;
  text-align: right;
}
.right {
  left: 50%;
  padding-left: 40px;
  text-align: left;
}

.timeline-item::after {
  /* Dot */
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: var(--bg-color); /* Ensure opaque background */
  border: 3px solid var(--accent-color);
  border-radius: 50%;
  top: 4px;
  z-index: 2; /* Clearly above line */
}

.left::after {
  right: 0;
  transform: translateX(50%); /* Moves center to the right edge */
}

.right::after {
  left: 0;
  transform: translateX(-50%); /* Moves center to the left edge */
}

.timeline-item h3 {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.timeline-item h4 {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Buttons */
.btn {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  font-family: var(--font-body);
}

.btn-primary,
.btn-rose {
  background: var(--accent-color);
  color: white;
}

.btn-primary:hover,
.btn-rose:hover {
  background: #a55d68;
  box-shadow: 0 5px 15px rgba(183, 110, 121, 0.3);
}

.btn-outline,
.btn-outline-sm {
  border: 1px solid var(--accent-color);
  background: transparent;
  color: var(--accent-color);
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.btn-outline:hover,
.btn-outline-sm:hover {
  background: var(--accent-color);
  color: white;
}

.btn-outline-sm {
  padding: 0.5rem 1.5rem;
  font-size: 0.8rem;
  border-radius: 20px;
}

/* NEW: Gift Grid */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.gift-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.gift-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(183, 110, 121, 0.25);
}

.gift-img {
  width: 100%;
  height: 200px;
  background-color: #fff;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.gift-details {
  padding: 1.5rem;
}

.gift-details h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #333;
}

.bank-section {
  margin-top: 2rem;
}

.cbu-box {
  margin-top: 1rem;
}

/* NEW: Form Styles */
.form-group {
  margin-bottom: 2rem;
  text-align: left;
}

.form-label {
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--accent-color);
}

.radio-group {
  display: flex;
  gap: 2rem;
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.radio-label input {
  width: auto;
  margin-bottom: 0;
  margin-right: 10px;
}

.form-section {
  background: #fdfdfd;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #eee;
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-section h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Dynamic Companions & Not Attending */
.companion-item,
.not-attending-item {
  border-top: 1px dashed #ddd;
  padding-top: 1rem;
  margin-top: 1rem;
  position: relative;
}

.not-attending-item:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.btn-add {
  background: none;
  border: 2px dashed var(--accent-color);
  color: var(--accent-color);
  width: 100%;
  padding: 1rem;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 1rem;
  transition: 0.3s;
}

.btn-add:hover {
  background: rgba(183, 110, 121, 0.1);
}

.btn-remove {
  position: absolute;
  top: 1rem;
  right: 0;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

input,
textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #eee;
  border-radius: 5px;
  background: #fafafa;
  font-family: var(--font-body);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

textarea {
  resize: none;
  height: 120px;
}

.char-count {
  text-align: right;
  font-size: 0.8rem;
  color: #999;
  margin-top: -10px;
  margin-bottom: 1rem;
}

/* Custom Checkbox */
.checkbox-container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 1rem;
  user-select: none;
  color: var(--text-color);
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 3px;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 1px solid var(--accent-color);
  border-radius: 4px;
  transition: all 0.2s;
}

.checkbox-container:hover input ~ .checkmark {
  background-color: #fff0f5;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--accent-color);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 7px;
  top: 3px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* NEW: Custom Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal-box {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  animation: zoomIn 0.3s ease;
}

.modal-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Common Classes */
.gift-info {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 500px;
  margin: 1rem auto;
  border: 1px solid #f0f0f0;
}

.btn-copy {
  background: none;
  border: none;
  color: var(--accent-color);
  font-weight: bold;
  cursor: pointer;
  margin-top: 0.5rem;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .main-title {
    font-size: 3.5rem;
  }
  .section-title {
    font-size: 2.5rem;
  }
  .hero-content {
    width: 95%;
    padding: 1.5rem;
  }

  .timeline::after {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    text-align: left;
  }
  .left {
    padding-right: 0;
    left: 0;
  }
  .right {
    left: 0;
  }
  .left::after,
  .right::after {
    left: 12px;
  }

  .time-box span {
    font-size: 2.5rem;
  }
  .gift-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* Animation */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 100ms;
}
.delay-200 {
  transition-delay: 200ms;
}
.delay-300 {
  transition-delay: 300ms;
}
.delay-400 {
  transition-delay: 400ms;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  border-top: 1px solid #eee;
  color: var(--accent-color);
}

footer p {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 2px;
  font-weight: 600;
}

.alfa-digital-link {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: #bbb;
  text-decoration: none;
  letter-spacing: 2px;
  transition: color 0.3s ease;
  text-transform: uppercase;
}

.alfa-digital-link:hover {
  color: var(--accent-color);
}

/* Location Section */
.location-card h3 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
  color: var(--accent-color);
}

.location-card p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #666;
}

.location-card .btn-outline {
  margin-bottom: 2.5rem;
  padding: 0.8rem 2rem;
}

.map-frame {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
  border: 5px solid #fff;
}

/* Dress Code Section */
.dress-card {
  border: 2px solid var(--primary-color);
  padding: 4rem 2rem;
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.dress-card i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  display: block;
}

.dress-card h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.dress-card h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #666;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 1rem;
}

.dress-card p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.dress-card small {
  display: block;
  color: var(--accent-color);
  font-weight: bold;
  font-style: italic;
  font-size: 0.9rem;
}

.reserved-color-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

.color-swatch {
  width: 40px;
  height: 40px;
  background-color: #ffc0cb; /* Classic Pink */
  background-image: linear-gradient(135deg, #ffc0cb 0%, #ffb6c1 100%);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.dress-card small {
  display: inline-block;
  margin: 0; /* Override previous block style */
}
