body {
  width: 100%;
  height: 100vh - 80px;
  margin: 0;
  font-family: 'Baskervville', serif;
  font-size: 15pt;
}

@media (max-width: 600px) {
  body {
    font-size: 17pt; /* slightly bigger for small screens */
  }
}

.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: 30pt;
}

.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;
  margin-left: 5px;
  margin-right: 5px;
}

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;
}

.dropdown {
  position: relative;
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 10px;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 8px;
  user-select: none;
}

.flag-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  min-width: 150px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 1;
}

.dropdown-content div {
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.dropdown-content > div:hover {
  background-color: #dddddd;
}

.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.2rem;
  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) */
}

.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: 600; 
}

.sub { 
    font-size: .875rem; 
    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;
}
