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

:root {
  --primary: #a45661;
  --text: #777;
  --border: #bcc3b9;
  --background: #ffffff;
}

body {
  margin: 0;
  font-size: 17px;
  font-family: "Cormorant Infant", serif;
  color: var(--text);
  background: var(--background);
  text-align: left;
}

/* HERO */

.hero {
  padding-top: 60px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: white;
  position: relative;
  overflow: hidden;
}

.venue-image {
  width: 30%;
  max-width: 900px;
  margin-top: 0px;
  margin-bottom: -10px;
  opacity: 0.95;
  display: block;
}

.hero-text {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-top: -20px;
}

.eyebrow {
  letter-spacing: 10px;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: #8c8c8c;
  margin-bottom: 10px;
  margin-top: 40px;
}

.script {
  font-family: "Milton";
  font-size: 5rem;
  font-weight: normal;
  line-height: 1;
  letter-spacing: 0;
  color: #a45661;
  margin: 0;

  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;

  text-shadow: 0 0 0.25px currentColor;
}

.date {
  font-size: 1.4rem;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: #8f8f8f;
  margin-top: 18px;
  margin-bottom: 22px;
  text-align: center;
}

.date sup {
  font-size: 0.45em;
  vertical-align: super;
  letter-spacing: 2px;
}

.venue {
  font-size: 1.4rem;
  color: #7f7f7f;
  margin-top: 0;
  margin-bottom: 30px;
  text-align: center;
}

/* COUNTDOWN */

.countdown {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  justify-content: center;
  flex-wrap: wrap;
}

.time-box {
  width: 78px;
  height: 78px;
  border: 1px solid #c8cec5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 4px;
}

.time-box span {
  font-size: 1.9rem;
  color: #a45661;
  font-family: "Cormorant Infant", serif;
}

.time-box p {
  letter-spacing: 3px;
  font-size: 0.55rem;
  margin-top: 4px;
  color: #9a9a9a;
}

/* TABS */

.tabs {
  display: flex;
  max-width: 960px;
  margin: 20px auto 0 auto;
  padding: 0 10px;
}

.tabs + .content-section {
  padding-top: 20px;
}

.tab {
  flex: 1;
  max-width: none;
  padding: 14px 20px;
  background: white;
  border: none;
  border-bottom: 1px solid var(--border);
  font-family: "Cormorant Infant", serif;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab.active {
  background: #a45661;
  color: white;
}

/* CONTENT */

.content-section {
  min-height: 400px;
}

.timeline-section {
  min-height: 600px;
}
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 30px 40px 30px;
}

#rsvp-section {
  padding-left: 0;
  padding-right: 0;
}

.content-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: left;
}

.content-section h2 {
  font-size: 1.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a45661;
  margin-bottom: 0px;
  font-weight: 500;
  line-height: 1.1;
}

.content-section h3 {
  font-size: 1.35rem;
  font-weight: 400;
  margin-top: 32px;
  margin-bottom: 6px;
  line-height: 1.1;
  color: #a45661;
}

.content-section h4.menu-starter {
  margin-top: 8px;
}

.content-section h4 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-top: 24px;
  margin-bottom: 6px;
  line-height: 1.1;
  color: #a45661;
}

.content-inner p {
  margin-top: 0;
}

.content-section p {
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 22px;
  color: var(--text);
  margin-top: 5px;
}

#accommodation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#accommodation li {
  font-size: 1.2rem;
  line-height: 1.1;
  margin-bottom: 8px;
}

#accommodation a {
  color: #a45661;
  text-decoration: none;
}

/* MOBILE */

@media (max-width: 768px) {
  .hero {
    padding-top: 20px;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
  }

  .venue-image {
    display: block;
    width: 80%;
    max-width: none;
    margin-left: -7.5%;
    margin-right: -7.5%;
    margin-top: -20px;
    margin-bottom: 10px;
  }

  .script {
    font-size: 5rem;
    line-height: 0.9;
  }

  .tabs {
    flex-direction: column;
    max-width: 100%;
    padding: 0 15px;
    gap: 0;
  }

  .tab {
    width: 100%;
    max-width: 100%;
    border-bottom: 1px solid var(--border);
    padding: 18px 20px;
    font-size: 0.9rem;
  }

  .tab.active {
    background: #a45661;
    color: white;
    margin-bottom: 0;
  }

  .content-section {
    padding: 70px 30px;
  }

  .content-inner {
    max-width: 560px;
  }

  .content-section h2 {
    font-size: 1.6rem;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 18px;
    color: #a45661;
    text-transform: uppercase;
  }

  .content-section h3 {
    font-size: 1.35rem;
    margin-top: 8px;
    margin-bottom: 8px;
    color: #a45661;
  }

  .content-section h4 {
    font-size: 1.2rem;
    margin-top: 8px;
    margin-bottom: 8px;
    color: #a45661;
  }

  .content-section p {
    font-size: 1.2rem;
    line-height: 1.3;
    color: #777;
  }

  .group-actions {
    flex-direction: column;
  }

  .new-rsvp-btn {
    width: 100%;
  }
}

/* =========================
TIMELINE
========================= */

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

.timeline-section h2 {
  font-size: 1.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a45661;
  margin-bottom: 40px;
  font-weight: 500;
  line-height: 1.1;
}

.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

/* CENTER LINE */

.timeline-line {
  position: absolute;
  top: 50%;
  left: 7%;
  width: 86%;
  height: 1px;
  background: #bcc3b9;
}

/* ROWS */

.top-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 10px;
  margin-bottom: 70px;
}

.bottom-row {
  display: grid;
  grid-template-columns: repeat(3, 180px);
  justify-content: center;
  column-gap: 10px;
  margin-top: 70px;
}

/* ITEMS */

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* ICONS */

.timeline-item img {
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* TIME */

.timeline-item .time {
  font-size: 1rem;
  color: #8d8d8d;
  margin: 10px 0 6px 0;
  line-height: 1;
}

/* HEADINGS */

.timeline-item h3 {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.2;
  color: #a45661;
  margin: 0;
  height: 38px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
}

/* ICONS */

.timeline-item img {
  width: auto;
  height: 90px;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

/* SMALL VISUAL TWEAKS */

img[src*="rings"] {
  max-width: 110px;
}

img[src*="speeches"] {
  max-width: 140px;
}

img[src*="buffet"] {
  max-width: 100px;
}

img[src*="bus"] {
  max-width: 85px;
}

/* OPTICAL ALIGNMENT */

.bottom-row .timeline-item:nth-child(1) img {
  margin-left: -8px;
}

/* CONNECTOR LINES */

.timeline-item {
  position: relative;
}

.timeline-item.top::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  margin-top: 12px;
  width: 1px;
  height: 23px;
  background: #bcc3b9;
}

.timeline-item.bottom::before {
  content: "";
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 23px;
  background: #bcc3b9;
}

/* FIX VERTICAL ALIGNMENT */

.top-row .timeline-item,
.bottom-row .timeline-item {
  justify-content: flex-start;
}

.top-row .timeline-item img {
  display: block;
  margin-bottom: 14px;
}

.bottom-row .timeline-item img {
  display: block;
  margin-bottom: 14px;
}

/* FIX CONNECTOR POSITION */

.timeline-item.top::after {
  bottom: -36px;
}

/* RSVP */

.rsvp-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 30px;
  text-align: center;
  box-sizing: border-box;
}

.rsvp-deadline {
  font-size: 1.8rem;
  color: #a45661;
  margin-top: 10px;
  margin-bottom: 30px;
}

.rsvp-text {
  font-size: 1.2rem;
  line-height: 1.4;
  color: #8a8a8a;
  margin-bottom: 22px;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.rsvp-text {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.rsvp-input {
  width: 100%;
  max-width: 100%;
  padding: 18px 22px;
  border: 1px solid #aab2a5;
  background: transparent;
  font-family: "Cormorant Infant", serif;
  font-size: 1.2rem;
  color: #777;
  outline: none;
  box-sizing: border-box;
  transition: 0.3s ease;
}

.rsvp-input:focus {
  border-color: #a45661;
}

.rsvp-input::placeholder {
  color: #999;
}

@media (max-width: 768px) {
  .content-section {
    padding: 30px 20px 30px 20px;
  }

  .content-section h2,
  .timeline-section h2 {
    margin-top: 20px;
    margin-bottom: 16px;
  }

  .rsvp-inner {
    padding: 0 20px;
  }

  .rsvp-text {
    font-size: 1.05rem;
    line-height: 1.4;
  }

  .rsvp-input {
    font-size: 1.05rem;
    padding: 16px 18px;
  }

  #rsvp-section {
    padding-top: 10px;
  }

  #accommodation h3:last-of-type {
    margin-top: 32px;
  }
}

@media (max-width: 768px) {
  .timeline {
    max-width: 100%;
  }

  .timeline-line {
    display: none;
  }

  .top-row,
  .bottom-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 0;
  }

  .timeline-item {
    width: 100%;
  }

  .timeline-item.top::after,
  .timeline-item.bottom::before {
    display: none;
  }

  .timeline-item img {
    margin-bottom: 18px;
  }

  .bottom-row {
    margin-top: 25px;
  }
}

@media (max-width: 768px) {
  .timeline-item img {
    height: 110px !important;
    width: auto;
    object-fit: contain;
  }

  img[src*="rings"] {
    height: 76px !important;
  }

  img[src*="speeches"] {
    height: 70px !important;
  }

  img[src*="dinner"] {
    height: 90px !important;
  }

  img[src*="buffet"] {
    height: 80px !important;
  }

  .timeline-item h3 {
    height: auto;
  }

  .bottom-row {
    margin-top: 25px;
  }
}

/* RSVP RESULTS */

#guest-results {
  margin-top: 50px;
  width: 100%;
}

.guest-card {
  border: 1px solid #d9ddd6;
  margin-top: 28px;
  background: #ffffff;
}

.guest-card + .guest-card {
  margin-top: 0px;
}

.guest-card h3 {
  font-family: "Cormorant Infant", serif;
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: none;
  color: #a45661;
  padding: 18px 28px;
  border-bottom: 1px solid #d9ddd2;
  margin: 0;
  background: #fafbfa;
}

.guest-field {
  padding: 12px 26px 12px;
}

.guest-field:last-child {
  padding-top: 10px;
  padding-bottom: 26px;
}

.guest-field label {
  display: block;
  font-family: "Cormorant Infant", serif;
  font-size: 1.25rem;
  color: #7c7c7c;
  margin-bottom: 12px;
}

.guest-select,
.guest-input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid #cfd5c8;
  background: #fff;
  font-family: "Cormorant Infant", serif;
  font-size: 1.2rem;
  color: #7c7c7c;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.guest-select:focus,
.guest-input:focus {
  outline: none;
  border-color: #a45661;
}

.guest-input::placeholder {
  color: #c8c8c1;
}

.guest-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a45661' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px;
  padding-right: 50px;
}

.guest-select option {
  font-size: 0.95rem;
}

.guest-search-result {
  padding: 24px 28px;
  background: #fcfcfb;
  border-left: 1px solid #bcc3b9;
  border-right: 1px solid #bcc3b9;
  border-bottom: 1px solid #bcc3b9;
  font-family: "Cormorant Infant", serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.2;
  color: #a45661;
  cursor: pointer;
  transition: 0.2s ease;
  text-align: left;
}

#guest-results {
  margin-top: -1px;
}

.guest-search-result:hover {
  background: #f7f8f6;
}

.guest-card {
  border: 1px solid #d9ddd6;
  margin-top: 28px;
  background: #ffffff;
  text-align: left;
}

.guest-card-header {
  padding: 0px;
  background: #fafbfa;
  text-align: left;
}

.guest-card-header h3 {
  margin: 0px;
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: #a45661;
}

.guest-card-body {
  padding: 0px;
  padding-bottom: 26px;
  text-align: left;
}

.guest-field {
  margin-bottom: 0px;
}

.guest-field:last-child {
  margin-bottom: 0;
}

.guest-field label {
  display: block;
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: #7c7c7c;
}

.guest-select,
.guest-input {
  width: 100%;
  height: 58px;
  padding: 0 22px;
  border: 1px solid #bcc3b9;
  background: #ffffff;
  font-family: "Cormorant Infant", serif;
  font-size: 1.1rem;
  color: #7c7c7c;
  box-sizing: border-box;
}

.guest-select:focus,
.guest-input:focus {
  outline: none;
  border-color: #a45661;
}

.guest-input::placeholder {
  color: #b7bdb5;
}

.guest-actions {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  padding: 0 0px 12px;
  margin-bottom: 12px;
  padding-top: 0;
}

.reset-btn,
.submit-btn {
  flex: 1;
  height: 58px;
  border: none;
  cursor: pointer;

  font-family: "Cormorant Infant", serif;
  font-size: 1.2rem;
  font-weight: 500;

  transition: 0.2s ease;
}

.reset-btn {
  background: #747d86;
  color: #ffffff;
}

.submit-btn {
  background: #a45661;
  color: #ffffff;
}

.reset-btn:hover {
  background: #646c74;
}

.submit-btn:hover {
  background: #a45661;
}

.guest-content {
  padding-top: 12px;
  padding-bottom: 12px;
}

.guest-content .guest-field:first-child {
  padding-bottom: 0;
  margin-bottom: 0;
}

.guest-content.active {
  display: block;
}

.guest-header {
  cursor: pointer;
  padding: 0;
}

.submitted-card {
  opacity: 0.82;
}

.submitted-card .submit-btn {
  background: #a45661;
  cursor: default;
}

.rsvp-success-message {
  display: none;
  margin-top: 24px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a45661;
  text-align: center;
}

.submitted-card .rsvp-success-message {
  display: block;
}

.rsvp-success-state {
  padding: 40px 40px;
  text-align: center;
}

.rsvp-success-state h2 {
  font-family: "Cormorant Infant", serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a45661;
  margin: 0 0 6px;
}

.rsvp-success-state p {
  font-family: "Cormorant Infant", serif;
  font-size: 16px;
  line-height: 1.5;
  color: #7c7c7c;
  margin: 0;
}

.guest-search-result:first-child {
  border-top: 1px solid #c8cdbf;
}

.new-rsvp-btn {
  margin-top: 30px;
  padding: 18px 32px;

  border: 1px solid #a45661;
  background: #a45661;

  color: #ffffff;

  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  cursor: pointer;

  transition: 0.3s ease;
}

.new-rsvp-btn:hover {
  background: #a45661;
  border-color: #a45661;
}

.required-star {
  color: #b84b4b;
  margin-left: 3px;
}

.guest-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a45661' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: right 24px center;

  padding-right: 60px;
}

.accept-fields {
  display: none;
}

.group-actions {
  display: flex;
  gap: 24px;
  width: 100%;
  margin-top: 24px;
}

.group-actions .reset-btn,
.group-actions .submit-btn {
  flex: 1;
  width: 100%;
  max-width: none;
}

.rsvp-inner:has(.rsvp-success-state) .rsvp-text,
.rsvp-inner:has(.rsvp-success-state) .rsvp-deadline {
  display: none;
}

.rsvp-inner:has(.rsvp-success-state) > h2:first-of-type {
  display: none;
}
