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

body {
  font-family: 'Quicksand', sans-serif;
  background-color: #ffff;
  color: #333;
  padding-top: 120px;
  overflow-x: hidden;
}

.header-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background-color: #ffff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
}

.header-left, .header-center, .header-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.header-center {
  justify-content: center;
  gap: 20px; /* Added spacing between title and call-to-action */
}

.header-right {
  justify-content: flex-end;
  align-items: center;
  gap: 60px; /* Adds spacing between CTA and logo */
}

.title {
  font-family: 'League Spartan', sans-serif;
  font-weight: 900;
  font-size: 3.5rem;
  color: #5e2a2a;
}

.logo-img {
  height: 100%;
  max-height: 120px;
  width: auto;
  object-fit: contain;
}

.hamburger {
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1101;
}

.hamburger span {
  display: block;
  height: 4px;
  background-color: #5e2a2a;
  border-radius: 2px;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: #ffff;
  box-shadow: 2px 0 5px rgba(0,0,0,0.2);
  padding-top: 120px;
  transition: left 0.3s ease;
  z-index: 1100;
  font-family: 'Quicksand';
  font-size: 25px;
  color: #5e2a2a;
}

.sidebar ul {
  list-style: none;
  padding: 20px;
}

.sidebar ul li {
  margin-bottom: 20px;
}

.sidebar ul li a {
  text-decoration: none;
  color: #5e2a2a;
  font-size: 25px;
}

.sidebar.active {
  left: 0;
}
.sub-header-bar {
  position: fixed;
  top: 120px;
  left: 0;
  right: 0;
  height: 40px;
  background-color: #ffffff; /* fully opaque white */
  color: #c2a165;
  font-family: 'Crimson Text', serif;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  z-index: 999;
  animation: fadePulse 3s ease-in-out infinite;
}
@keyframes fadePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.the-experience {
  font-family: 'Tangerine', sans-serif;
  font-weight: 900;
  font-size: 40px;
  color: #5e2a2a;
  padding: 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.main-content {
  font-size: 25px;
  font-family: 'Crimson Text', serif;
  line-height: 1.5;
  color: #5e2a2a;
  padding-top: 0;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-content h2 {
  max-width: 700px;
  margin: 10px auto;
  font-weight: inherit;
  font-size: inherit;
  font-family: inherit;
  color: inherit;
}

.fancy-every {
  font-family: 'Tangerine', cursive;
  font-weight: 700;
  font-size: 1.4em;
  color: #5e2a2a;
  letter-spacing: 1px;
}

.contact-box {
  position: fixed;
  right: 80px;
  top: 80px;
  background-color: #5e2a2a;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-family: 'League Spartan', sans-serif;
  font-weight: 500;
  font-size: 10px;
  color: #000;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.contact-box img {
  width: 50px;
  height: 50px;
}

.call-to-action {
  background-color: rgba(255, 255, 255, 0.9);
  color: #c2a165;
  font-family: 'Crimson Text', serif;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  animation: fadePulse 3s ease-in-out infinite;
  text-align: center;
  white-space: nowrap; /* Prevents text wrapping */
}

@keyframes fadePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.03);
  }
}

.decorative-boxes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: -20px;
  margin-bottom: 60px;
}

.decor-img {
  height: 350px;
  padding: 10px;
  width: auto;
  object-fit: cover;
  border-radius: 20px;
  margin-top: 10px;
}

.beige-box {
  background-color: #f0efeb;
  border-radius: 30px;
  width: 900px;
  padding: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin: 0 auto;
  margin-bottom: 10px;
}
.questionnaire {
  margin-top: 40px;
  width: 100%;
  max-width: 700px;
  font-size: 20px;
  color: #5e2a2a;
  font-family: 'Crimson Text', serif;
}

.question-block {
  background-color: #f8f4ef;
  border-radius: 20px;
  padding: 25px 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.question-block p {
  font-family: 'Crimson Text';
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #5e2a2a;
  letter-spacing: 1px;
}

.question-block label {
  display: block;
  padding: 10px 15px;
  border-radius: 12px;
  margin-bottom: 10px;
  background-color: #fff;
  border: 1px solid #e0d6cc;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.question-block input[type="radio"] {
  margin-right: 10px;
}

.question-block label:hover {
  background-color: #f1eae2;
  border-color: #c2a165;
}

.answer-description {
  font-family: 'Crimson Text', serif;
  font-size: 0.85em;
  color: #8a7f71;
  margin: 4px 0 15px 32px; /* indent aligns with radio button */
  line-height: 1.3;
  font-style: italic;
  user-select: none;
}
.decor-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
  max-width: 700px;
}

.decor-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 700px;
}

.decor-text {
  font-family: 'Tangerine', sans-serif;
  font-weight: 900;
  font-size: 80px;
  color: #ffff;
  margin: 0;
  white-space: nowrap;
}

.white-overlay-box {
  background-color: #ffff;
  border-radius: 30px;
  min-height: 300px;
  padding: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  font-family: 'Crimson Text', serif;
  font-size: 25px;
  line-height: 1.5;
  color: #333;
  width: 100%;
}

.white-overlay-box .stars {
  font-size: 60px;
  color: #5e2a2a;
  margin-bottom: 20px;
}

#estimate {
  position: fixed;
  bottom: 20px;   /* stays 20px above bottom of screen */
  right: 20px;    /* stays 20px from right edge */
  background: #5e2a2a;
  color: #e8e2db;
  padding: 15px 20px;
  border-radius: 20px;
  font-family: 'League Spartan', sans-serif;
  font-weight: 900;
  font-size: 18px;
  text-align: center;
  width: 200px;
  z-index: 1012;  /* makes sure it stays on top */
}

#saveQuoteBtn {
  background-color: grey;
  color: #e8e2db;
  padding: 15px 30px;
  border: none;
  border-radius: 12px;
  font-size: 20px;
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  cursor: not-allowed;
  transition: background-color 0.3s ease, cursor 0.3s ease;
}

#saveQuoteBtn.enabled {
  background-color: #5e2a2a; /* maroon */
  cursor: pointer;

}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 20px;
  font-family: 'playfair display';
  font-weight: 900;
  font-size: 24px;
  color: #5e2a2a;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  position: relative;
}
.modal-content h3 {
  transform: scaleY(3.0); /* makes letters taller */
  transform: scaleX(0.7); /* makes letters taller */
  transform-origin: left center; /* optional: keeps it aligned nicely */
}
.modal_2
{
  font-family: "Tangerine";
  font-size: 16px;
  font-weight: 500
  color: #111111;
  font-size: 24px;
}

.close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-weight: bold;
  font-family: 'league spartan';
  cursor: pointer;
  font-size: 24px;
  color: #333;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1920px) {
  body {
    font-size: 80%; /* 20% smaller text */
  }
  .footer-button {
    padding: 12px 20px; /* smaller buttons */
    font-size: 14px; 
  }
  .title {
    font-size: 2.8rem; /* reduce heading sizes */
    }
  .contact-box {
    top: 20px;
    right: 180px;
    padding: 20px;
    border-radius: 20px;
    font-weight: 500;
  }
  .beige-box {
    background-color: #f0efeb;
    border-radius: 30px;
    width: 800px;
    }

  .questionnaire {
    font-size: 15px;

  }
  .question-block p {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #5e2a2a;
    letter-spacing: 1px;
  }
  .answer-description {
    font-size: 0.85em;
  }

}



@media (max-width: 1024px) {
body {
  padding-top: 80px;
  padding-bottom: 120px; /* 👈 This creates space under the footer */
}

.header-bar {
  height: 80px;
  padding: 0 10px;
}
.sub-header-bar {
  top: 80px; /* was 120px — this pulls it closer to the fixed main header */
}
.header-center {
  flex-direction: column;
  gap: 5px;
}

.title {
  font-size: 1.8rem;
}

.call-to-action {
  font-size: 12px;
  padding: 5px 10px;
}

.logo-img {
  max-height: 50px;
  width: auto;
}
  .contact-box {
    position: fixed;
    left: 10px;
    right: 10px;
    top: auto; 
    bottom: 10px; /* move it above the estimate (estimate ~65px + 10px gap) */
    height: 50px;
    padding: 10px;
    border-radius: 20px;
    justify-content: center;
  }

.beige-box {
  width: 95vw;
  max-width: none;
  padding: 20px 15px;
}

#estimate {
  position: fixed;
  left: 10px;
  right: 10px;
   bottom: calc(75px + env(safe-area-inset-bottom, 0));
  width: auto;
  font-size: 16px;
  border-radius: 15px;
  justify-content: center;
}


@media (max-width: 768px) {
  body {
    padding-top: 80px;
    padding-bottom: 120px; /* 👈 This creates space under the footer */
  }

  .header-bar {
    height: 80px;
    padding: 0 10px;
  }
  .sub-header-bar {
    top: 80px; /* was 120px — this pulls it closer to the fixed main header */
  }
  .header-center {
    flex-direction: column;
    gap: 5px;
  }

  .title {
    font-size: 1.8rem;
  }

  .call-to-action {
    font-size: 12px;
    padding: 5px 10px;
  }

  .logo-img {
    max-height: 50px;
    width: auto;
  }
  .contact-box {
    /* same as tablet; mobile gap handled by JS */
  }

  .beige-box {
    width: 95vw;
    max-width: none;
    padding: 20px 15px;
  }

  #estimate {
    position: fixed;
    left: 10px;
    right: 10px;
     bottom: calc(65px + env(safe-area-inset-bottom, 0));
    width: auto;
    font-size: 16px;
    border-radius: 15px;
    justify-content: center;
  }

  @media (max-width: 768px) {
    input[name="wedding_date"] {
      font-family: 'Crimson Text', serif;
      font-size: 20px;
      font-weight: normal;       
      padding: 12px 10px;
      width: 100%;
      box-sizing: border-box;
      border: 1px solid #ccc;
      border-radius: 6px;
      color: #000;                /* black text */
      -webkit-text-fill-color: #000; /* iOS text color fix */
      text-align: left;           /* left-align text */
      background-color: #fff;     /* white background */
      appearance: none;           /* remove native styling on some browsers */
      -webkit-appearance: none;
      -moz-appearance: textfield; /* Firefox fallback */
    }

    input[name="wedding_date"]::placeholder {
      color: #999;
      opacity: 1;
      font-size: 18px;
      text-align: left;
    }
  }

@media (max-width: 480px) {
  .title {
    font-size: 1.4rem;
  }
  .contact-box {
    bottom: 10px; /* small adjustment for tiny screens */
  }

  .call-to-action {
    font-size: 10px;
    padding: 5px 8px;
  }

  .decor-text {
    font-size: 48px !important;
  }

  .flower-icon {
    width: 100px;
    padding-left: 5px;
  }

  .main-content h2 {
    font-size: 16px;
  }
}