* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  font-family: "Noto Serif Armenian", serif;
}

@font-face {
  font-family: ArmAllegroU;
  src: url("../fonts/ArmAllegroU.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html,
body {
  width: 100%;
  min-height: 100%;
  text-align: center;
  overflow-x: hidden;
  background: rgb(120, 124, 89);
  color: rgb(17, 17, 17);
}

.main-content {
  position: relative;
  background: url("../images/background.webp") center center / cover no-repeat;
  padding: 40px 15px;
}

.content {
  max-width: 820px;
  margin: auto;
}

section {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 28px;
  padding: 40px 25px;
  margin-bottom: 28px;
  box-shadow: rgba(0, 0, 0, 0.08) 0px 10px 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

h2 {
  font-family: ArmAllegroU, serif;
  color: rgb(120, 124, 89);
  text-align: center;
  letter-spacing: 2px;
  font-size: 35px !important;
}

h3 {
  font-size: 20px;
  color: rgb(120, 124, 89);
  text-align: center;
  margin: 12px 0px;
}

.title {
  font-family: ArmAllegroU, serif;
  font-size: 32px;
  letter-spacing: 2px;
  color: rgb(120, 124, 89);
  text-align: center;
  margin: 20px 0px;
}

.friends {
  font-size: 36px;
  color: rgb(120, 124, 89);
  font-weight: 600;
  text-align: center;
  margin: 0px;
}

.text {
  max-width: 450px;
  font-size: 17px;
  line-height: 1.7;
  color: rgb(34, 34, 34);
  padding: 20px 0px;
}

.hero-card {
  position: relative;
  border-radius: 40px;
  padding: 40px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-height: 500px;
  overflow: hidden;
}

.hero-top-image img {
  width: 250px;
  border-radius: 20px;
  object-fit: cover;
}

.hero-date-vertical {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 70px;
  line-height: 0.9;
  color: rgb(75, 95, 55);
  font-weight: 500;
}

.hero-save-vertical {
  position: absolute;
  right: 120px;
  top: 50%;
  transform: translateY(-50%) rotate(360deg);
  writing-mode: vertical-rl;
  letter-spacing: 6px;
  font-size: 18px;
  color: rgb(75, 95, 55);
}

.hero-save {
  font-size: 18px;
  letter-spacing: 6px;
  color: rgb(75, 95, 55);
}

.hero-names {
  font-size: 52px;
  font-family: ArmAllegroU, serif;
  color: rgb(109, 125, 97);
  font-weight: 300;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-names span {
  font-size: 50px;
  margin-bottom: 20px;
  color: rgb(207, 213, 200);
}

.hero-peony {
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 350px;
  pointer-events: none;
}

.calendar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  width: 100%;
}

.month-name {
  text-align: center;
  font-weight: 600;
  font-size: 20px;
  color: rgb(143, 164, 125);
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  color: rgb(75, 95, 55);
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  gap: 5px;
}

.days div {
  padding: 10px;
  border-radius: 8px;
}

.days .special-day {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  width: 100%;
  height: 40px;
  font-weight: 700;
  color: rgb(75, 95, 55);
  background: url("../images/peon-icon.png") center center / contain no-repeat;
}

.button,
button {
  margin-top: 20px;
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  background: rgb(120, 124, 89);
  color: white;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s;
}

.button:hover,
button:hover {
  background: rgb(94, 98, 68);
}

form {
  width: 100%;
  margin-top: 15px;
  display: flex;
  flex-direction: column;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgb(221, 221, 221);
  font-size: 14px;
  outline: none;
  background: white;
  color: rgb(34, 34, 34);
}

input:focus,
textarea:focus {
  border-color: rgb(120, 124, 89);
}

.radioGroup label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
  color: rgb(51, 51, 51);
}

.radioGroup input[type="radio"] {
  accent-color: rgb(120, 124, 89);
}

.color-palitra {
  display: flex;
  gap: 5px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 15px 0px;
}

.color-dot {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 8px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  padding: 8px 12px;
  border-radius: 12px;
  transition: background 0.2s;
}

.radio:hover {
  background: rgba(255, 255, 255, 0.1);
}

.radio input {
  display: none;
}

.radio span {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.radio input:checked + span::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: white;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.rsvp-section {
  border-radius: 40px;
  opacity: 0.9;
  background-color: rgb(143, 164, 125);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
}

.rsvp-card {
  width: 100%;
  max-width: 560px;
  background: rgba(140, 165, 120, 0.75);
  backdrop-filter: blur(3px);
  border-radius: 40px;
  color: white;
  text-align: left;
}

.rsvp-title {
  font-size: 40px;
  text-align: center;
  color: white;
  margin-bottom: 35px;
}

.rsvp-subtitle {
  font-size: 16px;
  text-align: center;
  margin-bottom: 25px;
}

#wedding-form input[type="text"] {
  width: 100%;
  border-top: none;
  border-right: none;
  border-left: none;
  border-image: initial;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  padding: 6px 0px;
  color: white;
  font-size: 15px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio input {
  display: none;
}

.radio span {
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-radius: 50%;
  position: relative;
}

.radio input:checked + span::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: white;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.rsvp-btn {
  margin-top: 25px;
  width: 100%;
  padding: 12px;
  border: 1px solid white;
  background: transparent;
  border-radius: 30px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.rsvp-btn:hover {
  background: white;
  color: rgb(111, 143, 106);
}

.countdown {
  display: flex;
  justify-content: center;
  margin: 20px 0px;
}

.countdown-item {
  border-radius: 16px;
  min-width: 70px;
  text-align: center;
}

.countdown-item span {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: rgb(120, 124, 89);
}

.countdown-item p {
  margin: 0px;
  font-size: 14px;
  color: rgb(120, 124, 89);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .hero-top-image {
    display: none;
  }

  .main-content {
    padding: 20px 10px;
  }

  .content {
    max-width: 100%;
    padding: 0px 10px;
  }

  section {
    padding: 25px;
    border-radius: 20px;
    gap: 12px;
  }

  h2 {
    font-size: 30px !important;
    letter-spacing: 1.5px;
    margin: 15px 0px;
  }

  .title {
    font-size: 28px;
    letter-spacing: 1.5px;
    margin: 15px 0px;
  }

  .counter {
    font-size: 30px;
  }

  h3 {
    font-size: 18px;
    margin: 10px 0px;
  }

  .text {
    font-size: 16px;
    line-height: 1.6;
    padding: 15px 0px;
  }

  .friends {
    font-size: 30px;
  }

  .hero-card {
    padding: 30px 15px;
    min-height: 400px;
    gap: 15px;
  }

  .hero-top-image img {
    width: 180px;
    position: relative;
    z-index: 10;
  }

  .hero-names {
    font-size: 28px;
    gap: 8px;
    font-weight: 600;
    position: relative;
    z-index: 10;
  }

  .hero-names span {
    font-size: 42px;
    margin-bottom: 15px;
  }

  .hero-date {
    font-size: 32px;
    gap: 12px;
  }

  .hero-save {
    font-size: 16px;
    letter-spacing: 4px;
  }

  .hero-peony {
    width: 270px;
  }

  .calendar {
    max-width: 100%;
    gap: 8px;
  }

  .month-name {
    font-size: 18px;
  }

  .weekdays {
    font-size: 14px;
  }

  .days div {
    padding: 8px;
  }

  .days .special-day {
    height: 35px;
    background-size: contain;
  }

  .button,
  button,
  .rsvp-btn {
    font-size: 14px;
    padding: 10px 20px;
  }

  .rsvp-title {
    margin-top: 0px;
  }

  .rsvp-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  #wedding-form label {
    font-size: 14px;
    margin-top: 12px;
    margin-bottom: 5px;
  }

  #wedding-form input[type="text"] {
    font-size: 14px;
    padding: 5px 0px;
  }

  .radio-group {
    gap: 6px;
  }

  .radio {
    font-size: 14px;
  }

  .countdown-item span {
    font-size: 26px;
  }

  .countdown-item p {
    font-size: 12px;
  }
}
