/* ============================================
   SelfEvents V1 — Pages Styles
   Shared across static pages: accordion, forms,
   values grid, timeline, page heroes
   ============================================ */

/* --- Page Hero --- */
.page-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2D2926 0%, #2D2926cc 40%, #BA225755 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

/* --- Accordion --- */
.accordion-item {
  border-bottom: 1px solid #E8DED4;
  transition: background-color 0.2s ease;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  gap: 1rem;
}

.accordion-trigger:hover {
  color: #BA2257;
}

.accordion-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.open .accordion-content {
  max-height: 500px;
}

/* --- Contact Form --- */
.contact-form .form-group {
  position: relative;
}

.contact-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #2D2926;
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #E8DED4;
  border-radius: 0.75rem;
  background: #FFFAF5;
  color: #2D2926;
  font-size: 0.875rem;
  font-family: 'Inter', system-ui, sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #BA2257;
  box-shadow: 0 0 0 3px rgba(186, 34, 87, 0.08);
}

.contact-form input.error,
.contact-form select.error,
.contact-form textarea.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.contact-form .error-message {
  display: none;
  font-size: 0.75rem;
  color: #dc2626;
  margin-top: 0.375rem;
}

.contact-form .form-group.has-error .error-message {
  display: block;
}

/* --- Values Grid --- */
.value-card {
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(45, 41, 38, 0.06);
}

.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

/* --- Timeline / Steps --- */
.step-feature {
  position: relative;
}

.step-feature .step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-connector-vertical {
  position: absolute;
  left: 40px;
  top: 80px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #E8DED4, transparent);
}

/* --- Delivery Timeline --- */
.delivery-step {
  position: relative;
  padding-left: 3rem;
}

.delivery-step::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 28px;
  bottom: -28px;
  width: 2px;
  background: #E8DED4;
}

.delivery-step:last-child::before {
  display: none;
}

.delivery-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #C9A87C;
  background: #FFFAF5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delivery-dot.active {
  background: #C9A87C;
}

/* --- Info Card --- */
.info-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #E8DED4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  border-color: #C9A87C;
  box-shadow: 0 4px 20px rgba(45, 41, 38, 0.04);
}

/* --- FAQ Search --- */
.faq-search {
  position: relative;
}

.faq-search input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  border: 1px solid #E8DED4;
  border-radius: 9999px;
  background: white;
  font-size: 0.9375rem;
  font-family: 'Inter', system-ui, sans-serif;
  color: #2D2926;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-search input:focus {
  outline: none;
  border-color: #BA2257;
  box-shadow: 0 0 0 3px rgba(186, 34, 87, 0.08);
}

.faq-search .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #7A6F68;
  pointer-events: none;
}

/* --- FAQ Category Tabs --- */
.faq-tab {
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid #E8DED4;
  background: transparent;
  color: #7A6F68;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.faq-tab:hover {
  border-color: #BA2257;
  color: #BA2257;
}

.faq-tab.active {
  background: #BA2257;
  border-color: #BA2257;
  color: white;
}

/* --- Free Shipping Progress --- */
.shipping-progress-bar {
  height: 6px;
  border-radius: 3px;
  background: #E8DED4;
  overflow: hidden;
}

.shipping-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #C9A87C, #BA2257);
  transition: width 0.6s ease;
}

/* --- Alternating Feature Blocks --- */
@media (min-width: 1024px) {
  .feature-block:nth-child(even) {
    flex-direction: row-reverse;
  }
}

/* --- Counter animation helper --- */
.counter-animated {
  display: inline-block;
}

/* --- Map placeholder --- */
.map-placeholder {
  background: linear-gradient(135deg, #F5EDE4 0%, #E8DED4 100%);
  border-radius: 1rem;
  overflow: hidden;
}

/* --- CMS Content (prose-like styling for DB content) --- */
.cms-content h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #2D2926;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.cms-content h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #2D2926;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.cms-content h4 {
  font-weight: 600;
  color: #2D2926;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.cms-content p {
  margin-bottom: 1rem;
}

.cms-content ul,
.cms-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.cms-content ul {
  list-style: disc;
}

.cms-content ol {
  list-style: decimal;
}

.cms-content li {
  margin-bottom: 0.375rem;
}

.cms-content a {
  color: #BA2257;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.cms-content a:hover {
  color: #8F1842;
}

.cms-content strong {
  color: #2D2926;
  font-weight: 600;
}

.cms-content blockquote {
  border-left: 3px solid #C9A87C;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #7A6F68;
}

.cms-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.cms-content th,
.cms-content td {
  border: 1px solid #E8DED4;
  padding: 0.75rem 1rem;
  text-align: left;
}

.cms-content th {
  background: #F5EDE4;
  color: #2D2926;
  font-weight: 600;
}

.cms-content img {
  border-radius: 0.75rem;
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
}
