@font-face {
  font-family: "VASEK";
  src: url("../fonts/VASEK.ttf");
  font-style: normal;
  font-weight: normal;
}
@font-face {
  font-family: "ARNO";
  src: url("../fonts/ARNO.ttf");
  font-style: normal;
  font-weight: normal;
}
body {
  --background-color: #d9d9d9;
  --header-color: #303030;
  --text-color: #303030;
  --background-color2: #dcbfbb;
  --main-font: "ARNO", sans-serif;
  --beauty-font: "VASEK", sans-serif;
  --secondary-font: "Hagin", sans-serif;
  margin: 0;
}

body {
  font-family: var(--main-font);
  font-size: 24px;
  line-height: 120%;
  color: var(--text-color);
  text-align: center;
}
p {
  margin: 0;
}
.title_text {
  font-family: var(--beauty-font);
  font-size: 84px;
  line-height: 120%;
  color: var(--header-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 500;
}
.descr_text {
  font-family: var(--main-font);
  font-size: 24px;
  line-height: 120%;
  color: var(--text-color);
  text-align: center;
}
.menu__button {
  display: none;
}

.header-blocks {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: cacl(100vh - 30px);
  gap: 3vh;
}
#dresscode {
  max-width: 600px;
  margin: auto;
  width: 90%;
}
.header-text-beaty {
  font-family: var(--beauty-font);
  font-size: 60px;
  line-height: 100%;
}

.header-block-bg-main img {
  width: 80%;
  margin: auto;
  max-width: 400px;
  padding: 20px 0 20px;
}
.header-text-simple {
  line-height: 70%;
  font-family: var(--beauty-font);
  font-size: 54px;
  width: 90%;
  max-width: 600px;
  margin: 24px auto;
}
.header-name {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.header-name img {
  width: 15%;
  max-width: 70px;
  padding: 0;
  margin: 0;
  height: auto;
}
#music-block {
  padding: 20px 0 40px;
}
#playButton {
  cursor: pointer;
  width: 15%;
  max-width: 100px;
  margin: auto;
}
#music-text {
  padding-top: 20px;
  text-transform: uppercase;
}
.block-img-frame {
  position: relative;
}
.block-img-sketch-frame {
  position: absolute;
  width: 20px;
  height: 100%;
  top: 0;
  bottom: 0;
}
.block-img-sketch-frame-right {
  right: calc(5% - 10px);
}
.block-img-sketch-frame-left {
  left: calc(5% - 10px);
}
.block-img-sketch-frame img {
  height: 100%;
  margin: auto;
}
.info-invitation {
  position: relative;
  padding: 50px 5% 20px;
}
.info-date__invitation {
  display: flex;
  gap: 15px;
  flex-direction: column;
}
.welcome_title_text {
  font-size: 48px;
  font-family: var(--beauty-font);
  color: var(--header-color);
  font-weight: 500;
  margin: 0;
}
#welcome-text {
  width: 90%;
  margin: auto;
}
.info-date__place {
  position: relative;
  padding: 50px 0px 0 0px;
  width: 90%;
  margin: auto;
}
.place-right {
  padding-bottom: 30px;
}
#registration-title,
#banquet-title {
  text-align: center;
  font-family: var(--beauty-font);
  font-size: 54px;
  line-height: 60%;
  padding-bottom: 20px;
  color: var(--header-color);
}
.registration_descr_text,
.banquet_descr_text {
  text-align: center;
  width: auto;
}
.wedding-day {
  background: var(--background-color2);
  border-radius: 1000px;
}
h3 {
  font-size: 38px;
  font-family: var(--beauty-font);
  padding: 8px 0px;
  color: var(--header-color);
  margin: 10px 0;
}
#groom-bride {
  padding-top: 20px;
}
.date-calendar {
  margin: auto;
  padding-bottom: 50px;
  width: 80%;
}
table {
  margin: auto;
  font-style: italic;
  font-family: var(--beauty-font);
  font-size: 20px;
}
tbody,
td,
tfoot,
th,
thead,
tr {
  border-color: inherit;
  border-style: solid;
  border-width: 0;
  padding: 10px 8px;
}
th {
  text-transform: uppercase;
  font-weight: 800;
  border-bottom: 1px solid var(--text-color);
}
#plan {
  padding: 50px 0;
  max-width: 500px;
  margin: auto;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
.plan__place {
  width: 70%;
  margin: auto;
  padding: 20px 0;
}
.block-img-place {
  width: 60%;
  margin: auto;
  max-width: 400px;
  padding-bottom: 50px;
}
.block-img-place img {
  display: block;
  max-width: 100%;
  height: auto;
}
.timetable__block-stroke {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: auto;
  align-items: center;
  gap: 20px;
}
.timetable__block-img {
  width: 30%;
  max-width: 100px;
}
.timetable__block-lines {
  width: 16px;
  position: relative;
  height: 100%;
}
.timetable__line {
  border-left: 1px solid var(--header-color);
  margin-left: 8px;
  position: relative;
  min-height: 150px;
}
.timetable__circle {
  text-align: center;
  width: 16px;
  height: 16px;
  background: var(--header-color);
  border-radius: 50%;
  position: absolute;
  top: calc(50% - 8px);
}
.timetable__text {
  text-align: left;
  width: calc(70% - 56px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timetable__block-time {
  font-size: 24px;
  font-weight: bold;
}
.timetable__block-line {
  width: 25px;
}
.timetable__block-texts {
  text-align: left;
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.timetable__block-name {
  font-size: 20px;
  text-transform: uppercase;
}
.dresscode__color {
  max-width: 50px;
}
.dresscode__colors,
.dresscode__colors-men {
  display: flex;
  gap: 10px;
  flex-direction: row;
  justify-content: center;
  padding: 20px 0;
}
#details {
  margin: auto;
  max-width: 600px;
}
.separator-image {
  width: 20%;
  margin: auto;
  max-width: 150px;
  padding: 30px 0;
}
.block-img-separate-detail {
  width: 40%;
  margin: auto;
  padding-top: 40px;
}
#details,
#dresscode {
  padding: 30px 0;
}

.map-container {
  width: 100%;
  height: 210px;
  border-radius: 16px; /* yoki istalgan radius, masalan 12px */
  overflow: hidden;
  cursor: pointer;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none; /* agar faqat konteynerga bosish kerak bo'lsa */
}

.info-place {
  font-size: 24px;
  font-weight: bold;
}

.info-place__text {
  margin: 8px 0;
}

.place-right .rsvp__button {
  letter-spacing: 1px;
}

.rsvp__buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding-top: 15px;
}
.rsvp__button {
  position: relative;
  background: none;
  text-decoration: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  color: black;
  width: 200px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  padding-top: 15px;
  margin: 0 auto;
}
.rsvp__button-yes::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../../assets/images/forever/button-01.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  z-index: 1;
}
.info-date {
  max-width: 600px;
  margin: auto;
}
.block-img-separate-timetable {
  max-width: 600px;
  margin: auto;
}
.rsvp__button span {
  position: relative;
  z-index: 2;
}
.rsvp__button-no::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../../assets/images/forever/button-01.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  z-index: 1;
}
input[type="text"],
input[type="number"] {
  border: none;
  border-bottom: 1px solid black;
  border-radius: 0;
  width: 100%;
  margin: 10px 0;
  padding: 0 0 8px !important;
  line-height: 100%;
}

input[type="text"] {
  padding: 8px !important;
}
#rsvp {
  width: 80%;
  max-width: 600px;
  margin: auto;
}

.timer-title {
  font-size: 50px;
}
#clockdiv {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 25px 0;
}
.timer__block-inside {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timer__number {
  z-index: 2;
}
.timer__block {
  position: relative;
  width: 65px;
  height: 65px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}
fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
.timer__circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../../assets/images/forever/timer-circle-01.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  z-index: 1;
}
.counter,
.rsvp {
  padding: 30px 0;
}
.question__string {
  padding: 5px 0;
  font-size: 18px;
}
.question__label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.question__unvisible {
  display: none;
}
.question__visible-radio {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  box-sizing: border-box;
  border: 1px solid var(--header-color);
  border-radius: 50%;
}

.question__unvisible:checked + .question__visible-radio::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background-color: var(--header-color);
  border-radius: 50%;
}
.question__visible-checkbox {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  box-sizing: border-box;
  border: 1px solid var(--header-color);
}

.question__unvisible:checked + .question__visible-checkbox::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: rgb(0, 0, 0);
}
#questions {
  margin: auto;
  max-width: 600px;
  text-align: left;
  padding: 30px 0;
}
.question__container {
  width: 70%;
  margin: auto;
  padding: 10px 0;
}
.rsvp__button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../../assets/images/forever/button-01.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  z-index: 1;
  top: 4px;
}

.button-container {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rsvp__text {
  padding-bottom: 15px;
}
.block-img-separate-footer {
  width: 50%;
  margin: auto;
  padding: 20px 0 40px;
  max-width: 300px;
}
.footer {
  padding: 30px 0;
}
.footer__text {
  font-size: 24px;
  padding-bottom: 20px;
}
.names-footer {
  font-family: var(--beauty-font);
  font-size: 54px;
  line-height: 120%;
  padding-top: 20px;
}
.block-img-separate-timetable {
  padding-top: 30px;
}
.link-block {
  width: 90%;
  margin: auto;
}
.link-block h2 {
  line-height: 60%;
  font-size: 54px;
  padding: 0 10px;
}
.counter {
  width: 90%;
  margin: auto;
}
.question__text-mini {
  font-size: 14px;
  padding-top: 10px;
}
.block-img-sketch-frame-top {
  width: 90%;
  margin: auto;
}
.details-block {
  width: 70%;
  margin: auto;
  padding: 50px 0;
}
#dresscode_woman .dresscode_title_text,
#dresscode_man .dresscode_title_text {
  margin-bottom: 0px;
  padding-top: 30px;
  font-size: 48px;
}
.dressscode-img {
  max-width: 300px;
  margin: auto;
  padding: 10px 0;
}
.dresscode__row {
  display: flex;
  gap: 5px;
}
@media screen and (max-width: 800px) {
  .title_text {
    font-family: var(--beauty-font);
    font-size: 72px;
    line-height: 120%;
    color: var(--header-color);
    margin: 24px 0;
    font-weight: 500;
  }
  .descr_text {
    font-family: var(--main-font);
    font-size: 20px;
    line-height: 120%;
    color: var(--text-color);
  }
  .timer-title {
    font-size: 50px;
    margin-bottom: 0;
  }
  .header-blocks {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3vh;
  }
  #dresscode_woman .dresscode_title_text,
  #dresscode_man .dresscode_title_text {
    margin-bottom: 0px;
    padding-top: 30px;
    font-size: 48px;
  }
}
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 1s ease-out;
}

#splash-screen.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 3s ease-out,
    visibility 3s ease-out;
}

#splash-screen p {
  font-size: 24px;
  font-family: "CYGRE-THIN", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  margin: 0;
}
#splash-screen .splash-screen-img img {
  width: 50%;
  margin: auto;
  padding-bottom: 50px;
  max-width: 300px;
}
#splash-screen .splash-screen-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#splash-screen .pulse {
  animation: pulse-load 5s linear infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes erasing {
  from {
    width: 100%;
  }
  to {
    width: 0;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: black;
  }
}

@keyframes pulse-load {
  0% {
    transform: scale(0.85);
  }
  50% {
    transform: scale(1.25);
  }
  100% {
    transform: scale(0.85);
  }
}

.gallery-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-track {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
  width: 90%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 auto;
  height: 400px;
  width: auto;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-btn {
  background: transparent;
  border: none;
  color: var(--header-color);
  font-size: 40px;
  cursor: pointer;
  padding: 0 10px;
  z-index: 10;
  transition:
    opacity 0.3s,
    transform 0.2s;
  font-family: var(--main-font);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.gallery-btn:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

.gallery-btn:active {
  transform: scale(0.9);
}

@media screen and (max-width: 800px) {
  .gallery-item {
    height: 300px;
  }
  .gallery-btn {
    font-size: 30px;
    padding: 0 5px;
  }
}

@media screen and (max-width: 500px) {
  .gallery-container {
    width: 100%;
  }
  .gallery-track {
    width: 100%;
    padding: 0 15px;
  }
  .gallery-item {
    height: 250px;
  }
  .gallery-btn {
    display: none;
  }
}

#rsvp {
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-3) 100%);
}
.rsvp-wrap {
  max-width: 500px;
  margin: 44px auto 0;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s,
    transform 0.8s;
}
.rsvp-wrap.vis {
  opacity: 1;
  transform: translateY(0);
}
.field {
  margin-bottom: 8px;
  text-align: left;
}
.field input[type="text"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  color: var(--cream);
  font-family: "Lora", serif;
  font-size: 15px;
  padding: 12px 0;
  outline: none;
  transition: border-color 0.3s;
}
.field input[type="text"]:focus {
  border-color: var(--gold);
}
.field input[type="text"]::placeholder {
  color: var(--text-muted);
  font-style: italic;
}
.field-lbl {
  font-family: "Cinzel", serif;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.radio-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.rl {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-muted);
  transition: color 0.3s;
}
.rl:hover {
  color: var(--gold-light);
}
.rl input {
  display: none;
}
.rc {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.3s;
}
.rl input:checked ~ .rc {
  border-color: #000;
}
.rl input:checked ~ .rc::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: #000;
  border-radius: 50%;
}

.submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.loading-text {
  text-align: center;
  font-family: "Cinzel", serif;
  font-size: 16px;
  letter-spacing: 3px;
  color: #000;
  margin-top: 10px;
  display: none;
}
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 9999;
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}
.popup-overlay.active {
  display: flex;
}
.popup-box {
  background: var(--dark-3);
  border: 1px solid rgba(201, 168, 76, 0.4);
  padding: 32px 24px;
  max-width: 360px;
  width: 70%;
  text-align: center;
  animation: popIn 0.4s ease;
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.popup-icon {
  font-size: 44px;
  margin-bottom: 14px;
}
.popup-title {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-style: italic;
  color: #fff;
  margin-bottom: 10px;
}
.popup-text {
  color: #fff;
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 26px;
}
.popup-close {
  background: none;
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: #fff;
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 3px;
  padding: 12px 32px;
  cursor: pointer;
  transition: all 0.3s;
}
.popup-close:hover {
  background: #303030;
  border-color: #303030;
  color: #fff;
}
