/* =========================
   Components: Buttons
   ========================= */

.btn {
  background-color: var(--sage);
  color: #fff;
  border: 1px solid transparent;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(143, 174, 155, 0.25);
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background-color: var(--sage-dark);
  box-shadow: 0 10px 22px rgba(111, 143, 124, 0.3);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--mauve);
  outline-offset: 2px;
}

.btn-outline {
  background: transparent;
  color: var(--mauve-dark);
  border: 1px solid var(--mauve);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--mauve);
  color: #fff;
}

/* =========================
   Components: Cards
   ========================= */

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.card > *:first-child {
  margin-top: 0;
}

.card > *:last-child {
  margin-bottom: 0;
}

.card h2,
.card h3 {
  margin: 0 0 10px;
}

.card h3 {
  font-size: 1.05rem;
}

.card-strong {
  font-weight: 700;
  margin: 0 0 6px;
}

.card p {
  margin: 0 0 8px;
  color: #3a3a3a;
  line-height: 1.45;
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul,
.card ol {
  margin: 0 0 8px;
  padding-left: 20px;
  line-height: 1.6;
}

.card ul:last-child,
.card ol:last-child {
  margin-bottom: 0;
}

.card-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-top: 6px;
}

/* =========================
   Components: RSVP Block
   ========================= */

.rsvp-info {
  margin-top: 48px;
  padding: 22px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rsvp-info:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.rsvp-info h2 {
  margin-top: 0;
}

.rsvp-steps {
  margin: 14px 0 0;
  padding-left: 20px;
  line-height: 1.65;
}

.rsvp-note {
  margin-top: 14px;
  color: #555;
}

.rsvp-actions {
  margin-top: 16px;
}

.status {
  margin-top: 12px;
  line-height: 1.6;
}

.substatus {
  margin-top: 8px;
  opacity: 0.9;
}

.rsvp-summary {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed rgba(111, 143, 124, 0.35);
  border-radius: 12px;
  background-color: rgba(143, 174, 155, 0.08);
}

.rsvp-summary p {
  margin: 0 0 6px;
  font-weight: 600;
}

.rsvp-summary ul {
  margin: 0;
  padding-left: 18px;
}

.status.error {
  color: var(--mauve-dark);
}

.deadline {
  margin-top: 10px;
  font-weight: 700;
}

/* =========================
   Components: Forms
   ========================= */

form label {
  display: block;
  margin-bottom: 14px;
  font-weight: 600;
}

form input,
form select,
form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  font: inherit;
  background: var(--bg-card);
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: var(--sage-dark);
  box-shadow: 0 0 0 3px rgba(143, 174, 155, 0.25);
  outline: none;
}

form textarea {
  resize: vertical;
}

.soft-note {
  margin-top: 10px;
  color: #444;
  line-height: 1.6;
}

/* =========================
   Components: FAQ Accordion
   ========================= */

.faq-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 4px 0;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.faq-item:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.faq-item[open] {
  border-color: var(--mauve);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(120deg, rgba(176, 122, 141, 0.08), rgba(143, 174, 155, 0.08));
  transition: background-color 0.3s ease, color 0.35s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: ">";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--sage-dark);
  border-radius: 50%;
  border: 1px solid rgba(176, 122, 141, 0.4);
  background-color: rgba(255, 255, 255, 0.9);
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.35s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--border-soft);
  background-color: rgba(176, 122, 141, 0.12);
  color: var(--sage-dark);
}

.faq-item[open] summary::after {
  border-color: rgba(143, 174, 155, 0.6);
  background-color: #fff;
  transform: rotate(90deg) scale(1.05);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--mauve);
  outline-offset: 2px;
}

.faq-content {
  max-height: 0;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(-10px);
  overflow: hidden;
  color: #3a3a3a;
  line-height: 1.6;
  transition: max-height 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s ease, transform 0.45s ease, padding 0.45s ease;
}

.faq-item[open] .faq-content {
  max-height: 420px;
  padding: 16px 20px 20px;
  opacity: 1;
  transform: translateY(0);
  background: linear-gradient(180deg, rgba(176, 122, 141, 0.05), rgba(143, 174, 155, 0.05));
}

@media (prefers-reduced-motion: reduce) {
  .faq-content {
    transition: none;
  }

  .faq-item,
  .faq-item summary::after {
    transition: none;
  }
}
