/* ============================================
   HnK Party — Overlays: FAQ, Contact, Cart Drawer, WhatsApp FAB
   ============================================ */

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: #fff; border-radius: var(--radius-md); margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%; padding: 18px 22px; text-align: left;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 16px; color: var(--charcoal);
}
.faq-question::after { content: '+'; font-size: 24px; color: var(--terracotta); transition: transform 0.3s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
  padding: 0 22px;
  color: var(--charcoal-soft); font-size: 15px;
}
.faq-item.open .faq-answer { max-height: 400px; padding: 0 22px 20px; }


/* ===== Contact ===== */
.contact-section { background: linear-gradient(135deg, var(--blush) 0%, var(--blush-deep) 100%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h2 { font-size: 36px; margin-bottom: 16px; }
.contact-info > p { color: var(--charcoal-soft); margin-bottom: 24px; }
.contact-detail { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.contact-icon { font-size: 22px; }
.contact-detail strong { display: block; font-size: 14px; }
.contact-detail span { font-size: 14px; color: var(--muted); }

.form-card {
  background: #fff; padding: 32px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
/* Style text/email/url/etc inputs — but NOT radios or checkboxes (which break
   if forced to width:100% + 14px padding) */
.form-group input:not([type="radio"]):not([type="checkbox"]),
.form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--soft-grey); border-radius: var(--radius-sm);
  font-size: 14px; background: var(--cream);
  transition: border-color 0.2s;
}
.form-group input:not([type="radio"]):not([type="checkbox"]):focus,
.form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--terracotta);
}
/* Radio + checkbox keep their native size and sit inline with their label */
.form-group input[type="radio"],
.form-group input[type="checkbox"] {
  width: auto; padding: 0; margin: 0;
  flex-shrink: 0;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* Mobile — collapse 2-col rows so labels don't wrap and fields don't squash */
@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
.form-submit { width: 100%; padding: 14px; }
.form-error { color: var(--terracotta-dark); font-size: 12px; margin-top: 6px; }


/* ===== Cart drawer ===== */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(43,37,32,0.5);
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 100%;
  background: var(--cream); z-index: 201;
  transform: translateX(100%); transition: transform 0.3s ease;
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  padding: 24px; border-bottom: 1px solid var(--soft-grey);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-header h2 { font-size: 24px; }
.cart-close { font-size: 28px; color: var(--muted); padding: 4px 8px; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item {
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--soft-grey);
  align-items: center;
}
.cart-item-img {
  width: 60px; height: 60px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.cart-item-info h4 { font-family: var(--sans); font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item-info .price { font-size: 14px; }
.qty-controls { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-btn {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--soft-grey); color: var(--charcoal); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; vertical-align: middle;
  border: 0; cursor: pointer;
}
.qty-btn:hover { background: var(--terracotta); color: var(--cream); }
.qty-num { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.remove-btn { font-size: 12px; color: var(--terracotta); text-decoration: underline; background: none; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-empty-icon { font-size: 56px; margin-bottom: 12px; }
.cart-footer {
  padding: 24px; border-top: 1px solid var(--soft-grey);
  background: #fff;
}
.cart-subtotal {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; font-size: 16px;
}
.cart-subtotal strong { font-size: 22px; color: var(--terracotta); font-family: var(--serif); }
.cart-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }


/* ===== WhatsApp floating button ===== */
.whatsapp-fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 150;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}
.whatsapp-fab::after {
  content: 'Chat on WhatsApp';
  position: absolute; right: 68px; top: 50%;
  transform: translateY(-50%);
  background: var(--charcoal); color: var(--cream);
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.whatsapp-fab:hover::after { opacity: 1; }
@media (max-width: 500px) {
  .whatsapp-fab { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  .whatsapp-fab::after { display: none; }
}


/* ===== Generic modal (used by openModal/closeModal in main.js) ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(43,37,32,0.6);
  z-index: 300;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  padding: 36px 32px;
}
.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--muted);
  padding: 4px 10px; border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.modal-close:hover { color: var(--terracotta); background: rgba(0,0,0,0.04); }

