/* ============================================================
   RICHARD & ALEKSANDRA — custom styles on top of Tailwind CDN
   ============================================================ */

/* ---------- Farsi mode: RTL text + Vazirmatn font on translated nodes ---------- */
html[lang="fa"] .lang-fa {
  direction: rtl;
  font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}

/* ---------- Placeholder image boxes (swap for real <img> later) ---------- */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(126, 95, 166, 0.35);
  border-radius: 1rem;
  overflow: hidden;
}

.ph-label {
  position: relative;
  z-index: 1;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  background: rgba(251, 247, 239, 0.85);
  border: 1px solid rgba(126, 95, 166, 0.25);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7E5FA6;
}

/* ---------- Cards ---------- */
.card {
  background: #FFFDF8;
  border: 1px solid rgba(230, 218, 242, 0.6);
  border-radius: 1.25rem;
  box-shadow: 0 2px 14px rgba(75, 68, 83, 0.06);
  padding: 1.75rem;
}

.card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #4B4453;
}

.card-sub {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: #8A8292;
  line-height: 1.6;
}

/* ---------- Choices (radio pills) ---------- */
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 9999px;
  border: 1px solid rgba(201, 181, 226, 0.6);
  background: #FBF7EF;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.choice:hover {
  border-color: #C46A8E;
}

.choice:has(input:checked) {
  border-color: #C46A8E;
  background: #FBEAF0;
  color: #A35272;
  font-weight: 500;
}

.choice input {
  accent-color: #C46A8E;
}

/* ---------- Checkboxes ---------- */
.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(201, 181, 226, 0.5);
  background: #FBF7EF;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.check:hover {
  border-color: #C46A8E;
}

.check:has(input:checked) {
  border-color: #C46A8E;
  background: #FBEAF0;
}

.check input {
  accent-color: #7E5FA6;
}

/* ---------- Text inputs ---------- */
.input {
  display: block;
  width: 100%;
  border: 1px solid rgba(201, 181, 226, 0.6);
  border-radius: 0.8rem;
  background: #FFFDF8;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  color: #4B4453;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus {
  outline: none;
  border-color: #C46A8E;
  box-shadow: 0 0 0 3px rgba(196, 106, 142, 0.15);
}

.input::placeholder {
  color: #B9B2C0;
}

/* ---------- RSVP steps ---------- */
.step {
  display: none;
}

.step.active {
  display: block;
  animation: stepIn 0.2s ease both;
}

@keyframes stepIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- Undecided note ---------- */
.undecided-note {
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 0.8rem;
  background: #F2ECFA;
  border: 1px solid rgba(201, 181, 226, 0.5);
  font-size: 0.85rem;
  color: #7E5FA6;
  line-height: 1.5;
}

/* ---------- Field errors ---------- */
.field-error {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: #C46A8E;
  font-weight: 500;
}

/* ---------- Timeline (timings) ---------- */
.timeline {
  border-left: 2px solid rgba(196, 106, 142, 0.35);
  margin-left: 0.65rem;
  padding-left: 0;
}

.timeline-item {
  position: relative;
  padding: 0 0 1.75rem 1.75rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -0.47rem;
  top: 0.2rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 9999px;
  background: #FFFDF8;
  border: 2.5px solid #C46A8E;
}

.timeline-time {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7E5FA6;
  background: #F2ECFA;
  border-radius: 9999px;
  padding: 0.2rem 0.8rem;
  margin-bottom: 0.45rem;
}

.timeline-item p {
  font-size: 0.88rem;
}

/* ---------- Menu / hotel cards ---------- */
.menu-card {
  background: #FFFDF8;
  border: 1px solid rgba(230, 218, 242, 0.7);
  border-radius: 1.1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 14px rgba(75, 68, 83, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(75, 68, 83, 0.1);
}

.menu-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C46A8E;
  margin-bottom: 0.5rem;
}

/* ---------- Guest cards in attendance step ---------- */
.guest-card {
  border: 1px solid rgba(230, 218, 242, 0.7);
  border-radius: 1rem;
  background: #FFFDF8;
  padding: 1.1rem 1.25rem;
}

.guest-card .guest-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
}

/* ---------- Review summary ---------- */
.review-group {
  border: 1px solid rgba(230, 218, 242, 0.7);
  border-radius: 1rem;
  background: #FFFDF8;
  padding: 1.1rem 1.25rem;
}

.review-group h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #7E5FA6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-group .review-edit {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #C46A8E;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.review-group .review-edit:hover {
  text-decoration: underline;
}

.review-lines {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #4B4453;
  line-height: 1.7;
}

.review-lines .muted {
  color: #8A8292;
  font-style: italic;
}

/* ---------- Language toggle ---------- */
.lang-btn[aria-pressed="true"] {
  background: #FFFDF8;
  color: #7E5FA6;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(75, 68, 83, 0.15);
}

/* ---------- Focus visibility (accessibility) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #7E5FA6;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* ---------- Hero carousel ---------- */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

/* Soft ivory fade at the bottom so the overlapping hero text stays readable */
#hero-carousel::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(251, 247, 239, 0.95), rgba(251, 247, 239, 0));
  pointer-events: none;
  z-index: 2;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(251, 247, 239, 0.8);
  border: 1px solid rgba(126, 95, 166, 0.25);
  color: #7E5FA6;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.carousel-arrow.left { left: 1rem; }
.carousel-arrow.right { right: 1rem; }

.carousel-arrow:hover {
  background: #FFFDF8;
  color: #C46A8E;
}

.carousel-dots {
  position: absolute;
  bottom: 36%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  z-index: 10;
}

.carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(75, 68, 83, 0.25);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.carousel-dot.active {
  background: #7E5FA6;
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .card { padding: 1.25rem; }
  .choice-row { gap: 0.45rem; }
  .choice { padding: 0.5rem 0.85rem; font-size: 0.85rem; }
}
