@font-face {
  font-family: "SVN Magellin";
  src: url("../fonts/SVN-Magellin.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "TH Maginia";
  src: url("../fonts/TH-Maginia.ttf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "FzAmericanTypewriter-Light";
  src: url("../fonts/FzAmericanTypewriter-Light.ttf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "FzAmericanTypewriter-LightIta";
  src: url("../fonts/FzAmericanTypewriter-LightIta.ttf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "FzAmericanTypewriter-MedIta";
  src: url("../fonts/TH-FzAmericanTypewriter-MedIta.ttf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "FzAmericanTypewriter-Medium";
  src: url("../fonts/FzAmericanTypewriter-Medium.ttf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

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

body {
  font-family: "FzAmericanTypewriter-Medium", "Times New Roman", serif;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  /* width: 100%; */
  background: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 8px solid #8b0000;
  position: relative;
}

.header {
  background: url("../images/Layout2535_05.webp") no-repeat center center;
  background-size: cover;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
}

.header-text {
  font-family: "SVN Magellin", serif;
  color: white;
  text-align: center;
  font-style: italic;
  font-size: 6rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px;
}

.header-quote {
  font-family: "FzAmericanTypewriter-Light", serif;
  color: white;
  text-align: center;
  font-style: italic;
  font-size: 1.8rem;
  /* position: absolute; */
  left: 0;
  padding: 0 20px;
}

.save-date {
  background: #8b0000;
  color: white;
  text-align: center;
  margin: -3% auto 0;
  width: 35%;
  max-width: 90%;
  position: relative;
  z-index: 2;
}

.save-date h2 {
  font-family: "FzAmericanTypewriter-Light", serif;
  font-size: 3rem;
  font-style: italic;
  margin-bottom: 0px;
}

.save-date .date {
  font-family: "FzAmericanTypewriter-Light", serif;
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: -10px;
}

.couple-names {
  text-align: center;
  margin-top: 10%;
  /* padding: 40px 30px 20px; */
}

.couple-names h1 {
  font-family: "TH Maginia", serif;
  font-size: 6rem;
  color: #333;
  transform: scaleY(1.5);
  display: inline-block; /* để transform hoạt động đúng */
  /* margin-bottom: 15px; */
  font-weight: 300;
  /* letter-spacing: 2px; */
}

.couple-names .and {
  font-family: "TH Maginia", serif;
  font-size: 5rem;
  font-style: italic;
  /* line-height: 0.5; */
  /* margin: -40px 0 -30px; */
  /* color: #666; */
}

.parents {
  margin-top: 5%;
  text-align: center;
  /* padding: 20px 40px; */
  font-size: 1.2rem;
  color: #555;
  /* line-height: 1.8; */
}

.parents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 15px;
}

.parent-section {
  font-family: "FzAmericanTypewriter-Medium", serif;
  font-size: 2.5rem;
}

.parent-section h3 {
  font-weight: bold;
  /* margin-bottom: 20px; */
}

.parent-section p {
  font-family: "FzAmericanTypewriter-Light", serif;
}

.invitation-text {
  margin-top: 5%;
  font-family: "FzAmericanTypewriter-Light", serif;
  font-size: 2.5rem;
  padding: 0 5px 5px;
}

.wedding-photo {
  text-align: center;
  padding: 20px 0;
}

.photo-placeholder {
  width: 50%;
  aspect-ratio: 3 / 2; /* hoặc 16/9 tùy hình */
  background: url("../images/GAU02015.webp") no-repeat center center;
  background-size: contain;
  background-color: #f0f0f0;
  margin: 0 auto;
}

.ceremony-details {
  margin-top: 5%;
  font-family: "FzAmericanTypewriter-Light", serif;
  font-size: 40px;
  text-align: center;
  /* line-height: 1.8; */
  color: #333;
  padding: 20px;
}

.ceremony-details h3 {
  font-family: "FzAmericanTypewriter-Medium", serif;
  color: #555;
}

.ceremony-details strong {
  font-size: 40px;
  display: block;
  /* margin: 10px 0; */
}

.address-section {
  margin-top: 5%;
  font-family: "FzAmericanTypewriter-Light", serif;
  font-size: 2.5rem;
  text-align: center;
  /* line-height: 1.8; */
  color: #333;
  padding: 20px;
}

.address-section h3 {
  font-family: "FzAmericanTypewriter-Medium", serif;
  color: #555;
}

.calendar {
  text-align: center;
  padding: 20px;
}

#calendar-month {
  margin-top: 5%;
  font-family: "SVN Magellin", serif;
  font-size: 3.5rem;
}

.calendar table {
  margin: 15px auto;
  border-collapse: collapse;
}

.calendar th,
.calendar td {
  width: 80px;
  height: 80px;
  text-align: center;
  font-size: 20px;
}

.calendar th {
  font-weight: bold;
  color: #666;
  padding-bottom: 5px;
}

.calendar .highlight {
  background: #000000;
  color: white;
  border-radius: 50%;
  position: relative;
}

.calendar .highlight::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
}

.important {
  text-align: center;
  padding: 20px;
}

.important-event {
  font-family: "SVN Magellin", serif;
  font-size: 2.5rem;
  font-style: italic;
}

.important-note {
  font-family: "FzAmericanTypewriter-Light", serif;
  font-size: 2.5rem;
  font-style: italic;
  margin: -50px 0px -10px 300px;
}

.timeline {
  padding: 20px 0;
  /* background: #f9f9f9; */
}

.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 15px;
  margin-top: 20px;
}

/* .timeline-photo-placeholder {
  width: 80%;
  height: 70vh;
  min-height: 30vh;
  background: url("../images/GAU04563.JPG") no-repeat center center;
  background-size: cover;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
} */
.timeline-photo-placeholder {
  width: 80%;
  /* aspect-ratio: 2 / 3; */
  aspect-ratio: 1 / 2;
  background: url("../images/GAU04563.webp") no-repeat center center;
  background-size: contain;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  order: 2;
}

.timeline-details {
  margin-left: 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  order: 1;
}

.timeline-item {
  font-family: "FzAmericanTypewriter-Light", serif;
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  margin: 15px 0;
  flex-wrap: wrap;
}

.timeline-item .time {
  color: #333;
  margin-right: 10px;
}

.timeline-message {
  font-family: "FzAmericanTypewriter-Light", serif;
  font-size: 2rem;
  text-align: center;
  font-style: italic;
  color: #555;
  line-height: 1.3;
  padding-top: 40px;
}

.album-section {
  text-align: center;
  padding: 40px 20px;
  /* background: #f5f5f5; */
}

.album-section h3 {
  font-family: "FzAmericanTypewriter-Light", serif;
  font-size: 40px;
  margin-bottom: 10px;
}

.album-section p {
  font-style: italic;
}

.album-section-quote {
  font-family: "SVN Magellin", serif;
  font-size: 3.5rem;
  font-style: italic;
  margin: 10px 0;
}

.guest-section-guestbook {
  font-family: "SVN Magellin", serif;
  font-size: 3rem;
  font-style: italic;
  margin: 10px 0;
  text-align: center;
}

.guest-info {
  font-family: "FzAmericanTypewriter-Light", serif;
  font-size: 30px;
  padding: 0 40px;
  background: white;
  text-align: left;
}

.guest-info p {
  margin: 8px 0;
  line-height: 1.6;
}

/* Confirmation section */
.rsvp-form {
  max-width: 480px;
  margin: 40px auto;
  padding: 30px 28px;
  background: #ffffffd9;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  font-family: "Helvetica Neue", sans-serif;
}

/* Input + Textarea */
.rsvp-form input,
.rsvp-form textarea,
.rsvp-form select {
  width: 100%;
  padding: 15px 16px;
  margin: 12px 0;
  font-size: 15px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fafafa;
  outline: none;
  transition: 0.25s;
}

.rsvp-form select {
  color: #333 !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

/* Focus effect */
.rsvp-form input:focus,
.rsvp-form textarea:focus
.rsvp-form select:focus {
  border-color: #000000;
  box-shadow: 0 0 8px rgba(200, 122, 122, 0.35);
  background: #fff;
}

/* Placeholder */
.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder {
  color: #999;
  font-style: italic;
}

/* Textarea */
.rsvp-form textarea {
  min-height: 130px;
  resize: vertical;
}

/* Button */
.submit-btn {
  width: 100%;
  margin-top: 18px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #555, #333);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.submit-btn:hover {
  background: linear-gradient(135deg, rgba(51, 51, 51, 0.466), #33333393);
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: scale(0.98);
}

.confirmation-section {
  font-family: "FzAmericanTypewriter-Light", serif;
  font-size: 30px;
  padding: 30px 40px;
  background: white;
  text-align: center;
}

.confirmation-section strong {
  color: #8b0000;
  font-size: 30px;
  display: block;
  margin: 15px 0;
}

.signature-section {
  /* display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px; */
  margin-bottom: 15px;
}

.signature {
  font-family: "SVN Magellin", serif;
  font-size: 40px;
  font-style: italic;
  text-align: center;
  margin-top: 5%;
}

.countdown-title {
  font-family: "SVN Magellin", serif;
  font-size: 3rem;
  font-style: italic;
  /* margin: 10px 0; */
}

.countdown {
  font-family: "SVN Magellin", serif;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 2px;
}

.countdown-section {
  text-align: center;
}

/* Khung bao quanh */
fieldset {
  max-width: 420px;
  margin: 10px auto;
  padding: 25px 20px;
  border-radius: 18px;
  border: 1px solid #000000; /* màu hồng nhạt sang trọng */
  background: #ffffffea;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(4px);
  position: relative;
}

/* Title (legend) */
fieldset legend {
  margin: 0 auto;
  padding: 0 12px;
  text-align: center;
}

/* Countdown số */
.countdown {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  color: #333; /* đỏ trầm cưới */
  letter-spacing: 2px;
  font-family: "Montserrat", sans-serif;
}

.copyright-section {
  font-size: 0.8rem;
  text-align: center;
  color: #c0bfbf;
}

/* ============================= IMAGE SLIDER STYLES  ============================= */

.slider-section {
  width: 100%;
  max-width: 900px;
  margin: auto;
  position: relative;
}

.slider-container {
  position: relative;
  overflow: hidden;
}

.slide {
  width: 100%;
  display: none;
  transition: opacity 0.6s ease;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 50%;
}
.prev {
  left: 10px;
}
.next {
  right: 10px;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.dots {
  text-align: center;
  margin-top: 10px;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 4px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: #333;
}

/* ===== MUSIC CONTROL ===== */
.music-control {
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-pink), var(--accent-gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 20px var(--shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

.music-control:hover {
  transform: scale(1.1);
}

.music-control span {
  color: var(--white);
  font-size: 1.5rem;
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #9b9b9b, #cebdbd);
  color: var(--white);
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: 0 5px 20px var(--shadow);
  z-index: 1001;
  transform: translateX(400px);
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateX(0);
}

/* =============================
   LARGE TABLET (≤1280px)
============================= */
@media (max-width: 1280px) {
  .header {
    height: 65vh;
  }
  .header-text {
    font-size: 3.6rem;
  }

  .header-quote {
    font-size: 1.8rem;
    /* bottom: 35%; */
  }

  .save-date {
    /* width: 55%; */
    margin-top: -3%;
  }

  .save-date h2,
  .save-date .date {
    font-size: 2rem;
  }

  .couple-names h1,
  .couple-names .and {
    font-size: 4rem;
  }

  .parent-section,
  .invitation-text {
    font-size: 2rem;
  }

  .parent-section p {
    font-size: 1.8rem;
  }

  .ceremony-details,
  .ceremony-details strong {
    font-size: 2rem;
  }

  .address-section {
    font-size: 1.6rem;
  }

  #calendar-month {
    font-size: 2.5;
  }

  .calendar th,
  .calendar td {
    width: 75px;
    height: 75px;
    font-size: 18px;
  }

  .important-event,
  .important-note {
    font-size: 2rem;
  }

  .important-note {
    margin: -2% 0px -0px 20%;
  }

  .timeline-message {
    font-size: 1.5rem;
  }

  .timeline-details {
    padding: 0px;
    /* margin-left: 10%; */
  }

  .timeline-grid {
    gap: 5px;
  }

  .timeline-item {
    font-size: 1.4rem;
    padding-left: 0;
    margin-left: 0;
    margin: 5px 0;
  }

  .timeline-item span {
    text-align: center;
  }
  .album-section h3,
  .album-section-quote,
  .guest-section-guestbook {
    font-size: 2.5rem;
  }

  .guest-info,
  .confirmation-section {
    font-size: 24px;
  }

  .signature,
  .countdown-title {
    font-size: 3rem;
  }

  /* .countdown-section {
    margin-top: -15%;
    margin-left: 5%;
  } */

  .countdown {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    color: #333; /* đỏ trầm cưới */
    letter-spacing: 2px;
    font-family: "Montserrat", sans-serif;
  }
}

/* =============================
   TABLET (≤768px)
============================= */
@media (max-width: 768px) {
  .container {
    border-width: 4px;
  }

  .header {
    height: 55vh;
  }

  .header-text {
    font-size: 2.5rem;
  }

  .header-quote {
    font-size: 1.2rem;
    /* bottom: 30%; */
  }

  .save-date h2,
  .save-date .date {
    font-size: 1.6rem;
  }

  .couple-names h1,
  .couple-names .and {
    font-size: 48px;
  }

  .parents {
    padding: 0 5px;
  }

  .parents-grid {
    gap: 0px;
  }

  .parent-section,
  .invitation-text {
    font-size: 20px;
  }

  .parent-section p {
    font-size: 1.4rem;
  }

  /* .photo-placeholder {
    width: 80%;
    height: 25vh;
  } */

  .ceremony-details,
  .ceremony-details strong {
    font-size: 1.5rem;
    padding: 10px;
    /* line-height: 1; */
  }

  .address-section {
    font-size: 1.2rem;
  }

  #calendar-month {
    font-size: 2.5rem;
  }

  .calendar th,
  .calendar td {
    width: 50px;
    height: 50px;
    font-size: 14px;
  }

  .important-event {
    font-size: 2rem;
  }

  .important-note {
    font-size: 1.6rem;
    margin: -5% 0px -10px 28%;
  }

  .timeline-grid {
    gap: 5px;
  }

  .timeline-item {
    font-size: 1rem;
    padding-left: 0;
    margin-left: 0;
    margin: 5px 0;
  }

  .timeline-message {
    font-size: 1.2rem;
  }

  .guest-info {
    font-size: 18px;
    padding: 20px;
  }

  .guest-section-guestbook {
    font-size: 2rem;
  }

  .confirmation-section {
    font-size: 18px;
  }

  .signature,
  .countdown-section legend,
  .countdown-section .countdown {
    font-size: 2rem;
  }
}

/* =============================
   MOBILE (≤578px)
============================= */
@media (max-width: 578px) {
  .header-text {
    font-size: 2.2rem;
  }

  .header-quote {
    font-size: 1rem;
  }

  .save-date h2,
  .save-date .date {
    font-size: 1.2rem;
  }

  .parent-section p {
    font-size: 1.1rem;
  }

  .invitation-text {
    padding: 0;
  }

  .address-section {
    font-size: 1rem;
  }

  .timeline-item {
    letter-spacing: -0.08rem;
  }

  .ceremony-details {
    font-size: 1.2rem;
  }

  .album-section-quote {
    font-size: 2rem;
  }

  .timeline-message {
    font-size: 1.1rem;
  }
}

/* =============================
   MOBILE (≤480px)
============================= */
@media (max-width: 480px) {
  .container {
    border-width: 3px;
  }

  .header {
    height: 45vh;
  }

  .header-text {
    font-size: 1.5rem;
  }

  .header-quote {
    font-size: 0.8rem;
    /* bottom: 35%; */
    /* padding: 0 1% 0 1%; */
  }

  .save-date {
    width: 40%;
  }

  .save-date h2,
  .save-date .date {
    font-size: 1rem;
  }

  .couple-names {
    padding-top: 10px;
  }

  .couple-names h1,
  .couple-names .and {
    font-size: 2rem;
  }

  .parent-section {
    font-size: 1rem;
  }

  .parent-section p {
    font-size: 0.8rem;
  }

  .invitation-text {
    font-size: 0.9rem;
  }

  .ceremony-details,
  .ceremony-details strong {
    font-size: 1rem;
    /* line-height: 1; */
  }

  .address-section {
    padding: 0;
    font-size: 0.9rem;
  }

  #calendar-month {
    font-size: 2rem;
  }

  .calendar th,
  .calendar td {
    width: 35px;
    height: 35px;
    font-size: 12px;
  }

  .important {
    padding: 10px;
  }

  .important-event {
    font-size: 1rem;
  }

  .important-note {
    font-size: 1rem;
    /* text-align: center; */
    margin: -3% 0px -10px 25%;
  }

  .timeline {
    padding: 0;
  }

  .timeline-grid {
    gap: 5px;
  }

  .timeline-item {
    font-size: 0.8rem;
    padding-left: 0;
    margin-left: 0;
    margin: 5px 0;
  }

  .timeline-item .time {
    margin-right: 0;
  }

  .timeline-message {
    padding-top: 5%;
    font-size: 0.8rem;
  }

  .album-section h3,
  .guest-section-guestbook {
    font-size: 1.4rem;
  }

  .album-section-quote {
    font-size: 1.2rem;
  }

  .guest-info {
    font-size: 0.8rem;
  }

  .rsvp-form {
    padding: 22px 18px;
  }

  /* Input + Textarea */
  .rsvp-form input,
  .rsvp-form textarea {
    font-size: 12px;
  }

  .submit-btn {
    font-size: 0.8rem;
  }

  .confirmation-section,
  .confirmation-section strong {
    font-size: 0.9rem;
    padding: 0;
  }

  .countdown-section fieldset {
    margin: 10px;
  }

  .signature,
  .countdown-title {
    font-size: 1.8rem;
  }

  .copyright-section {
    font-size: 0.5rem;
  }
}

/* =============================
   EXTRA SMALL (≤330px)
============================= */
@media (max-width: 330px) {
  .header {
    height: 35vh;
  }

  .header-text {
    font-size: 1.2rem;
  }

  .header-quote {
    font-size: 0.6rem;
  }

  .save-date {
    width: 65%;
    margin-top: -20px;
  }

  .save-date h2,
  .save-date .date {
    font-size: 1rem;
  }

  .couple-names h1,
  .couple-names .and {
    font-size: 1.4rem;
  }

  .parent-section,
  .invitation-text {
    font-size: 0.8rem;
  }

  .parent-section p {
    font-size: 0.6rem;
  }

  .ceremony-details,
  .ceremony-details strong {
    font-size: 0.8rem;
  }

  #calendar-month {
    font-size: 1.5rem;
  }

  .calendar th,
  .calendar td {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .important {
    padding: 10px;
  }

  .important-event {
    font-size: 1rem;
  }

  .important-note {
    font-size: 1rem;
    /* text-align: center; */
    margin: -5% 0px -10px 28%;
  }

  .timeline-grid {
    gap: 0px;
  }

  .timeline-item {
    font-size: 0.7rem;
    padding-left: 0;
    margin-left: 0;
  }

  .timeline-message {
    font-size: 0.7rem;
  }

  .guest-info,
  .confirmation-section {
    font-size: 12px;
  }

  #countdown {
    font-size: 1.5rem;
  }

  .signature {
    font-size: 1rem;
  }
}
