@font-face {
  font-family: 'FzAlphaBrights';
  src: url('font/FzAlphaBrights.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'SVN-Manchester Park';
  src: url('font/SVN-Manchester\ Park.otf') format('opentype');
}
@font-face {
  font-family: 'Roboto';
  src: url('font/Roboto-VariableFont.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto-Italic';
  src: url(font/Roboto-Italic-VariableFont.ttf) format('truetype');
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background: #fffef9;
}

.half-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.half-image {
  flex: 1;
  position: relative;
}
.mobile-only {
  display: none;
}
.desktop-only {
  display: block;
}
.half-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: filter 0.4s ease, transform 0.4s ease;
}

.half-image:hover img {
  transform: scale(1.03);
}

.half-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px;
  background: #fffef9;
  color: #333;
}
.graduation-info {
  text-align: center;
  margin-top: 80px;
}
.highlight-title {
  font-family: 'SVN-Manchester Park', cursive;
  font-size: 55px;
  color: #000;
  margin: 16px 0;
  text-align: center;
}
.subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 23px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0;
  text-align: center;
  font-weight: 700;
}

.date-title {
  font-family: 'Lato', sans-serif;
  font-size: 23px;
  text-align: center;
}

.text-overlay {
    position: absolute;
    top: 100%;
    left: 10%;
    text-align: center;
    max-width: 100%;
}
.invite-inside {
    position: absolute;
    top: 100%;
    left: 60%;
    text-align: center;
    max-width: 100%;
}

.invite {
  font-family: 'FzAlphaBrights', cursive;
  font-size: 45px;
  margin-top: 16px;
  margin-bottom: 5px;
  color: #000000;
}

h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #ffd166;
}

.event {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
}
.name {
  font-size: 20px;
  margin-bottom: 20px;
}

.highlight {
  font-family: 'SVN-Manchester Park', cursive;
  font-size: 45px;
  color: #000;
  margin: 16px 0;
  text-align: center;
}

.info {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.note {
  font-size: 15px;
  font-style: italic;
  color: #ccc;
}

.quote {
  font-size: 15px;
  font-style: italic;
  color: #000;
}
.location {
    font-size: 25px;
    color: #000;
    letter-spacing: 1px;
}
.address {
    font-size: 15px;
    font-style: italic;
    color: #000;
    margin-bottom: 20px;
    letter-spacing: 1px;
}
.calendar {
  text-align: center;
  margin: 40px auto;
}

.month-title {
  font-family: 'FzAlphaBrights', cursive;
  font-size: 33px;
  margin: 16px 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 60px);
  gap: 5px;
  justify-content: center;
}

.day {
  font-weight: bold;
  color: #555;
}

.date {
  padding: 10px;
  font-size: 18px;
  color: #222;
}

.date.graduation {
  color: #d32f2f;
  font-weight: bold;
}

.date.empty {
  visibility: hidden;
}
.date-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 30px 0;
  font-family: 'Roboto', sans-serif;
}

.date-block {
  text-align: center;
  color: #000;
}

.label {
  font-size: 25px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.main-label {
  font-size: 25px;
  letter-spacing: 1px;
  margin-bottom: 4px;
  color: #d32f2f;
  font-weight: bold;
}

.value {
  font-size: 22px;
  margin: 15px 0;
}
.main-value {
  font-size: 40px;
  font-weight: 500;
  margin: 15px 0;
  color: #d32f2f;
}
.divider {
  width: 0.15rem;
  height: 100px;
  background-color: #000;
}
.map-container {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.directions-button {
  text-align: center;
  margin-bottom: 40px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
  }
  100% {
    transform: scale(1);
  }
}

.btn-direction {
  background-color: #a94442;
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease;
  animation: pulse 2s infinite;
}
.btn-direction:hover {
  background-color: #922b2b;
  animation: none; /* Dừng nhấp nháy khi hover nếu muốn */
  transform: scale(1.05); /* Hiệu ứng hover chủ động */
}
.timeline-block {
  text-align: center;
  margin: 40px auto;
}

.timeline-title {
  font-size: 45px;
  margin-bottom: 30px;
  font-family: 'FzAlphaBrights', cursive;
}
.timeline-items-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;     /* Căn giữa theo chiều ngang */
  gap: 10px;
}
.timeline-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 12px 0;
  width: 100%;
  max-width: 300px;      /* THÊM dòng này để không quá rộng */
}
.time {
  font-weight: bold;
  font-size: 18px;
  color: #000;
  width: 60px;
  text-align: right;
}

.line {
  flex: 0 0 20px;
  height: 2px;
  background-color: #888;
  margin-top: 0;
}

.desc {
  font-size: 18px;
  color: #000;
}

.custom-line {
  width: 60%;
  margin: 815px auto 0px;
  border: none;
  border-top: 2px solid #000;
  opacity: 0.8;
}
.custom-line-2 {
  width: 60%;
  margin: 0px auto 40px;
  border: none;
  border-top: 2px solid #000;
  opacity: 0.8;
}
.rsvp-container {
  width: 90%;
  max-width: 500px;
  margin: 60px auto;
  text-align: center;
  font-family: 'Roboto', sans-serif;
}
.rsvp-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-bottom: 24px;
}

.rsvp-icon {
  width: 35%;
  height: auto;
  border-radius: 15px;
}

.rsvp-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  font-family: 'FzAlphaBrights', cursive;
  font-size: 60px;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.rsvp-form input,
.rsvp-form textarea {
  padding: 12px 16px;
  border-radius: 30px;
  border: 1px solid #aaa;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}

.rsvp-form textarea {
  resize: none;
  border-radius: 20px;
}

.rsvp-form select {
  padding: 12px 16px;
  padding-right: 40px; /* Giúp mũi tên không dính sát chữ */
  border-radius: 30px;
  border: 1px solid #aaa;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  appearance: none; /* Bỏ giao diện mặc định trình duyệt */
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8"><path fill="black" d="M1 1l5 5 5-5"/></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center; /* Đặt mũi tên ở bên phải */
  background-size: 12px;
}

.rsvp-form button {
  padding: 12px 16px;
  font-weight: bold;
  border-radius: 30px;
  border: 2px solid #000;
  background: transparent;
  cursor: pointer;
  transition: 0.3s;
}

.rsvp-form button:hover {
  background: #000;
  color: white;
}
.countdown-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;     /* ✅ Căn giữa theo chiều ngang */
  justify-content: center;
}

.countdown-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-family: 'FzAlphaBrights', cursive;
  width: 100%;
  max-width: 350px;
}

.countdown-title .line {
  flex: 1;
  height: 2px;
  background-color: #000;
  margin: 0 10px;
  opacity: 1;
  max-width: none;
}

.countdown-title .label {
  font-weight: normal;
  font-size: 40px;
  color: #000;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  font-weight: 600;
  color: #000;
  gap: 15px;
  letter-spacing: 2px;
  padding-right: 20px;
  padding-left: 20px;
  padding-bottom: 20px;
  border-right: 2px solid #000;
  border-left: 2px solid #000;
  border-bottom: 2px solid #000;
  max-width: 300px;
}

.time-box {
  min-width: 50px;
}

.colon {
  font-weight: normal;
  color: #888;
}

.time-labels {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  gap: 58px; /* ✅ GIẢM khoảng cách nếu cần */
  font-size: 14px;
  color: #777;
  text-transform: uppercase;
}
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
  }
  
  .toast {
    background-color: #28a745;
    color: white;
    padding: 14px 20px;
    margin-top: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 16px;
    min-width: 220px;
    animation: slideInRight 0.5s ease forwards;
    position: relative;
    z-index: 99999;
    overflow: hidden;
  }
  
  .toast.exit {
    animation: slideOutRight 0.5s ease forwards;
  }
    @keyframes slideInRight {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  @keyframes slideOutRight {
    from {
      transform: translateX(0);
      opacity: 1;
    }
    to {
      transform: translateX(100%);
      opacity: 0;
    }
  }
.thankyou-footer {
  position: relative;
  width: 100%;
  height: 250px; /* hoặc 200–300px tùy thiết kế */
  overflow: hidden;
  margin-top: 60px;
}

.footer-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  z-index: 1;
  opacity: 0.8;
}

.footer-text {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'FzAlphaBrights', cursive; /* hoặc font viết tay bạn dùng */
  font-size: 90px;
  color: #000;
  text-shadow: 0 2px 4px rgba(255,255,255,0.4);
  z-index: 9999;
}
