.vn { display: none; }
.sk { display: none; }
.de { display: none; }

body {
  width: 100%;
  height: 100vh - 80px;
  margin: 0;
  font-family: 'Libre Baskerville', serif;
  font-size: 20px;
  font-weight: 400;
}

*, h1, h2, h3, h4, h5, h6, b, strong, th {
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Libre Baskerville', serif;
  font-weight: 400;
  line-height: 1.3;
  margin: 0.5em 0;
}

.navbar {
  height: 80px;
  width: 100%;
  padding: 10px;
  background-color: #ffffff;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  z-index: 999;
}

.col {
  flex: 1;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

* {
    box-sizing: border-box;
}

.background-1 {
  background: url("../img/background_hitched_1.jpg") top center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 400px;
  padding: auto;
  justify-content: center;
  align-items: center;
  margin-top: 100px;
}

.background-2 {
  background-repeat: no-repeat;
  background-position: left top, right top;
  background-size: auto 600px, auto 600px;
  background-image: url('../img/leaves_left.png'), url('../img/leaves_right.png');
  min-height: 600px;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  padding-left: 15%;
  padding-right: 15%;
}

.center-text {
  padding: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

h1 {
  font-size: 35pt;
}

.background-2 h2 {
  font-weight: 200;
}

.footer {
  background: url("../img/footer_background.jpg") top center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 400px;
}

a.nav-link {
  color: black;
  text-decoration: none;
  font-variant: small-caps;
  font-size: 27px;
  letter-spacing: 0.5px;
  margin-left: 10px;
  margin-right: 10px;
}

a.nav-link:hover, a.nav-link:hover:visited {
  color:#4169e1;
}

a.nav-link:visited {
  color: black;
}

a {
  text-decoration: none;
  color: #4169e1;
}

a:hover {
  color: #5a7ff0;
}

.main-content {
  text-align: center;
  margin: auto;
  max-width: 1200px;
  padding-bottom: 50px;
}

.language {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding-right: 10px;
  gap: 6px;
  position: relative;
  z-index: 10;
}

.lang-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 4px 6px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.lang-btn:hover {
  background: #f0f0f0;
  border-color: #ccc;
}

.lang-btn-active {
  border-color: #4169e1;
  background: #eef1ff;
}

.flag-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 1px solid #ddd;
}

.lang-abbr {
  font-size: 9px;
  letter-spacing: 0.5px;
  color: #555;
  font-variant: small-caps;
}

.form {
  margin: 0 auto 0 auto;
  max-width: 1200px;
  padding: 20px 50px 20px 50px;
}

.rsvp {
  margin: 0 auto 0 auto;
  max-width: 1200px;
  padding: 20px;
}

.container {
  margin: 100px auto 0 auto;
  max-width: 1200px;
  padding: 20px;

}

.name-col {
  margin-right: 20px;
  min-width: 500px;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1.2rem;
  line-height: 1.4;
  color: #222529;
  background: #ffffff;
  border: 1px solid #dfe3e8;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04);
  outline: none;
  -webkit-appearance: none; /* remove native styling on iOS */
  margin-top: 5px;
  font: inherit;
}

.form-control:focus {
  border-color: #66afe9;
  box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.15);
  transform: translateY(-0.5px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04);
  color: #fff;
  background: #6c757d;
  border-color: rgba(0,0,0,0.05);
  font-family: inherit;
}

.btn:hover {
  background: #5c636a;
}

.btn:active {
  box-shadow: none;
  background: #545b62;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid black;
  padding: .5rem;
  text-align: center;      /* horizontal */
  vertical-align: middle;  /* vertical (for table cells) */
}

table.no-border,
table.no-border th,
table.no-border td {
  border: none;
}

table.fit-content {
  width: auto;
}

.success {
  background-color: #d4edda; /* light green */
  color: #155724;           /* dark green text */
  border: 1px solid #c3e6cb;
  padding: 8px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.radio-list {
    display: grid;
    gap: 10px;
    padding: 5px 0 5px 0;
    margin-top: 15px;
    max-height: 50vh;
    overflow-y: auto;
}

.guest-link {
    position: relative;
    width: 100%;
    border: 1.5px solid #d1d5db;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(2,6,23,.08), 0 1px 3px rgba(2,6,23,.08);
    transition: border-color .15s ease, box-shadow .15s ease, transform .02s ease;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    color: black;
}

.guest-link:hover {
    border-color: #9ca3af;
}

.guest-link:active {
    transform: translateY(1px);
}

.radio-option {
    position: relative;
    width: 100%;
    border: 1.5px solid #d1d5db;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(2,6,23,.08), 0 1px 3px rgba(2,6,23,.08);
    transition: border-color .15s ease, box-shadow .15s ease, transform .02s ease;
}

.radio-option:hover {
    border-color: #9ca3af;
}

.radio-option:active {
    transform: translateY(1px);
}

/* Hide the native control but keep it accessible */
.radio-option input[type="radio"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

/* Visual content */
.radio-label {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
}

/* Custom radio bullet */
.bullet {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid #9ca3af;
    display: grid;
    place-items: center;
    transition: border-color .15s ease, background .15s ease;
}

.bullet::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: transparent;
    transition: background .15s ease;
}

.text {
    display: grid;
    gap: 2px;
}

.title {
    font-weight: 400;
}

.sub {
    font-size: 1rem;
    color: #6b7280;
}

/* Fixed selectors for when input is inside label */
.radio-option input[type="radio"]:checked ~ .bullet {
    border-color: #2563eb;
    background: #eef2ff;
}

.radio-option input[type="radio"]:checked ~ .bullet::after {
    background: #2563eb;
}

.radio-option input[type="radio"]:checked ~ .text .title {
    color: #0b2a78;
}

/* Remove the problematic selector that doesn't make sense */
.radio-option input[type="radio"]:checked {
    /* This targets the checked input itself, could add border styling here if needed */
}

.radio-option label,
.radio-option input {
    cursor: pointer;
}

.info {
  margin: 80px auto 0 auto;
  padding: 50px;
  max-width: 1200px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: clip; /* prevents border jitter on animation */
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
  }

  .faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    font: inherit;
    padding: 12px;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .faq-question:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 10px;
  }

  .chevron {
    transition: transform .2s ease;
    inline-size: 1.1em;
    block-size: 1.1em;
  }
  .faq-question[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
  }

  .faq-answer {
    padding: 0 14px;
    border-top: 1px solid #e5e7eb;
    max-height: 0;
    opacity: 0;
    transition: max-height .25s ease,
                opacity .25s ease,
                padding-top .25s ease,
                padding-bottom .25s ease;
  }
  .faq-answer[data-open="true"] {
    padding-top: 14px;
    padding-bottom: 14px;
    opacity: 1;
    max-height: min-content;
  }

h3 {
  margin-block-start: 10px;
  margin-block-end: 10px;
}

.info-section-heading {
  margin-top: 50px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e9ecef;
  color: #555;
  letter-spacing: 1px;
}

/* Tablet and below: keep body text full size, nav stays large */
@media (max-width: 1024px) {
  body {
    font-size: 22px;
  }

  a.nav-link {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  a.nav-link {
    font-size: 22px;
    margin-left: 6px;
    margin-right: 6px;
  }

  .background-2 {
    padding-left: 20px;
    padding-right: 20px;
  }

  .main-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .info {
    padding: 20px;
  }

  .form {
    padding: 20px;
  }

  .rsvp {
    padding: 20px;
  }

  .container {
    padding: 20px;
  }

  .name-col {
    min-width: unset;
    width: 100%;
    margin-right: 0;
  }
}

/* Home page blog-style info cards */
.home-blog {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto 10px auto;
}

.home-card {
  flex: 1 1 240px;
  max-width: 280px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(2,6,23,.06);
  padding: 26px 22px;
  text-align: center;
  text-decoration: none;
  color: #222529;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(2,6,23,.10);
  border-color: #c7d2fe;
  color: #222529;
}

.home-card-icon {
  font-size: 32px;
  color: #4169e1;
  margin-bottom: 12px;
}

.home-card h3 {
  font-size: 22px;
  margin: 4px 0 8px 0;
}

.home-card p {
  font-size: 16px;
  line-height: 1.5;
  color: #555;
  margin: 0;
}

@media (max-width: 768px) {
  .home-card {
    flex-basis: 100%;
    max-width: 100%;
  }
}

.option-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 820px;
  margin: 10px auto 20px auto;
}

.option-card {
  flex: 1 1 320px;
  max-width: 360px;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(2,6,23,.12);
  padding: 34px 28px;
  text-align: left;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .15s ease, box-shadow .15s ease;
}

.option-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(2,6,23,.18);
  color: #fff;
}

.option-card-blue {
  background: #4169e1;
}

.option-card-red {
  background: #b3382c;
}

.option-card-icon {
  font-size: 42px;
  margin-bottom: 10px;
}

.option-card-square-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
}

.option-card h3 {
  font-size: 24px;
  margin: 0 0 16px 0;
  text-align: center;
}

.option-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px 0;
  width: 100%;
}

.option-card li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.4;
}

.option-card li:before {
  content: "\2665";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

.option-cta {
  margin-top: auto;
  width: 100%;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.35);
}

@media (max-width: 480px) {
  .option-card {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* Directions page - scrollable step-by-step */
.directions {
  max-width: 820px;
  margin: 110px auto 40px auto;
  padding: 0 20px;
}

.dir-step {
  margin-bottom: 50px;
}

.dir-step h3 {
  font-size: 23px;
  line-height: 1.4;
  margin: 0 0 14px 0;
}

.dir-num {
  color: #4169e1;
  margin-right: 6px;
}

.dir-step img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.venue-map {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.venue-map img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Deep red button variant */
.btn-red {
  background: #b3382c;
  border-color: #b3382c;
}

.btn-red:hover {
  background: #93261c;
}

.btn-red:active {
  background: #7f1f16;
}

/* Photo Challenge bingo card */
.bingo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.bingo-cell {
  background: #eef1fb;
  border: 1px solid #d7ddf5;
  border-radius: 10px;
  padding: 14px 10px;
  font-size: 20px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100px;
}

@media (max-width: 700px) {
  .bingo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
