/* ============================================
   FOOTER.CSS — Footer + Newsletter form
   Sửa: cấu trúc cột, accordion mobile
   ============================================ */

/* ==== Newsletter form input UPDATE ==== */
.newsletter-popup {
  position: fixed;
  left: 50%;
  top: 48px;
  transform: translateX(-50%) scale(1);
  z-index: 1000;
  min-width: 310px;
  max-width: 94vw;
  background: var(--cream, #F9F9F9);
  color: var(--ink, #241b15);
  border-radius: 16px;
  box-shadow: 0 6px 32px 0 rgba(36, 27, 21, 0.13),
              0 1.5px 8px 0 rgba(36,27,21,0.08);
  padding: 24px 32px 22px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(.4,0,.2,1), transform 0.35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Định dạng form bên trong popup newsletter cho input rộng rãi */
.newsletter-popup form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: center;
}

.newsletter-popup input[type="text"],
.newsletter-popup input[type="tel"],
.newsletter-popup input[type="name"] {
  width: 100%;
  max-width: 360px;
  min-width: 0;
  padding: 15px 16px;
  border-radius: 7px;
  border: 1.2px solid #DDD3C2;
  background: #fff;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink, #241b15);
  margin: 0 auto;
  box-sizing: border-box;
  transition: border-color .18s;
  outline: none;
  font-family: inherit;
}

.newsletter-popup input[type="text"]:focus,
.newsletter-popup input[type="tel"]:focus,
.newsletter-popup input[type="name"]:focus {
  border-color: var(--rose, #999999);
  background: #F7F4ED;
}

.newsletter-popup button[type="submit"] {
  display: block;
  margin: 7px auto 0 auto;
  width: 100%;
  max-width: 360px;
  min-width: 0;
  padding: 15px 0 15px 0;
  background: var(--rose, #999999);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 1.07rem;
  font-family: inherit;
  letter-spacing: 0.02em;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, box-shadow .16s;
  box-shadow: 0 1.5px 2.5px 0 rgba(36,27,21,0.08);
}
.newsletter-popup button[type="submit"]:hover,
.newsletter-popup button[type="submit"]:focus {
  background: #d9a185;
}

.newsletter-popup[aria-live="polite"] {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) scale(1);
}
.newsletter-popup .popup-close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--ink, #241b15);
  font-size: 22px;
  opacity: 0.56;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 7px;
  transition: background 0.14s;
}
.newsletter-popup .popup-close-btn:focus,
.newsletter-popup .popup-close-btn:hover {
  background: rgba(36, 27, 21, 0.12);
  opacity: 0.84;
}
.newsletter-popup .popup-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px auto;
  color: var(--brand, #A5F3FC);
  font-size: 38px;
  /* use emoji or icon SVG in html */
}
@media (max-width: 420px) {
  .newsletter-popup {
    padding: 15px 8vw 13px 8vw;
    font-size: 0.97rem;
  }
  .newsletter-popup .popup-close-btn {
    top: 7px;
    right: 6px;
    font-size: 20px;
  }
  .newsletter-popup form {
    gap: 10px;
  }
  .newsletter-popup input[type="text"],
  .newsletter-popup input[type="tel"],
  .newsletter-popup input[type="name"],
  .newsletter-popup button[type="submit"] {
    max-width: 98vw;
    font-size: 0.96rem;
    padding: 13px 7vw;
  }
}

/* Animation xuất hiện mượt mà */
.newsletter-popup[aria-live="polite"] {
  animation: newsletter-popup-in 0.4s cubic-bezier(.47,1.64,.41,.8) both;
}
@keyframes newsletter-popup-in {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}
/* Mobile: 1 cột; Desktop: 3 cột */
.footer-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .footer-row {
    grid-template-columns: 3fr 2.7fr 2.7fr;
    gap: 48px;
  }
  .footer-content {
    display: grid;
  }
}

/* === Social Icons Footer === */
.footer-social-icons {
  display: flex;
  gap: 22px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 18px;
  margin-bottom: 3px;
}
.footer-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink, #241b15);
  font-size: 20px;
  box-shadow: 0 1.5px 4px 0 rgba(36,27,21,0.06);
  transition: background 0.19s, color 0.17s, box-shadow 0.18s;
  text-decoration: none;
  border: 1px solid #ecd3b3;
}
.footer-social-icons a:hover,
.footer-social-icons a:focus {
  background: var(--rose, #999999);
  color: #fff;
  box-shadow: 0 2.5px 8px 0 rgba(233,160,132,0.18);
}
.footer-social-icons .icon {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
  pointer-events: none;
  font-size: 22px;
}
/*
HTML SUGGESTION for Footer Social (place inside footer in HTML):

<div class="footer-social-icons">
  <a href="https://www.facebook.com/moawmoaws.official?locale=vi_VN" target="_blank" rel="noopener noreferrer" aria-label="Facebook">
    <!-- Facebook SVG icon -->
    <svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M22.676 0H1.325C.593 0 0 .593 0 1.326V22.67c0 .73.593 1.324 1.325 1.324H12.82v-9.845H9.692v-3.837h3.128V8.412c0-3.1 1.893-4.788 4.659-4.788 1.325 0 2.463.098 2.797.142v3.24h-1.92c-1.504 0-1.796.715-1.796 1.763v2.312h3.587l-.467 3.837h-3.12V24h6.116c.73 0 1.324-.594 1.324-1.326V1.326C24 .593 23.406 0 22.676 0"></path></svg>
  </a>
  <a href="https://www.tiktok.com/@moawmoaws.vietnam" target="_blank" rel="noopener noreferrer" aria-label="Tiktok">
    <!-- Tiktok SVG icon -->
    <svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M21.4 8.6a5.67 5.67 0 0 1-3.24-1.01v5.78a7.09 7.09 0 1 1-7.14-7.07c.21 0 .42.01.63.03v3.22a3.84 3.84 0 1 0 2.48 3.61V2h3.06c.13.94.56 1.81 1.2 2.47a4.71 4.71 0 0 0 3.01 1.11v3.02z"/></svg>
  </a>
  <a href="https://www.instagram.com/moawmoaws.official/" target="_blank" rel="noopener noreferrer" aria-label="Instagram">
    <!-- Instagram SVG icon -->
    <svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.2c3.16 0 3.532.012 4.776.07 1.17.057 1.96.24 2.414.404.548.2.94.44 1.353.853.412.413.652.805.852 1.353.164.455.347 1.245.404 2.414.058 1.244.07 1.615.07 4.776s-.012 3.532-.07 4.776c-.057 1.17-.24 1.96-.404 2.414a3.068 3.068 0 0 1-.853 1.353 3.068 3.068 0 0 1-1.353.853c-.455.164-1.245.347-2.414.404-1.244.058-1.615.07-4.776.07s-3.532-.012-4.776-.07c-1.17-.057-1.96-.24-2.414-.404A3.068 3.068 0 0 1 2.2 18.101a3.068 3.068 0 0 1-.853-1.353c-.164-.455-.347-1.245-.404-2.414C.885 13.09.873 12.72.873 9.56s.012-3.532.07-4.776c.057-1.17.24-1.96.404-2.414A3.068 3.068 0 0 1 2.2 2.2a3.068 3.068 0 0 1 1.353-.853c.455-.164 1.245-.347 2.414-.404C8.47 2.212 8.84 2.2 12 2.2m0-2.2C8.736 0 8.332.014 7.052.072 5.775.13 4.907.328 4.14.58a5.22 5.22 0 0 0-1.94 1.16A5.22 5.22 0 0 0 .58 4.14C.328 4.907.13 5.775.072 7.052.014 8.332 0 8.736 0 12c0 3.264.014 3.668.072 4.948.058 1.277.256 2.145.508 2.912a5.22 5.22 0 0 0 1.16 1.94 5.22 5.22 0 0 0 1.94 1.16c.767.252 1.635.45 2.912.508 1.28.058 1.684.072 4.948.072s3.668-.014 4.948-.072c1.277-.058 2.145-.256 2.912-.508a5.22 5.22 0 0 0 1.94-1.16 5.22 5.22 0 0 0 1.16-1.94c.252-.767.45-1.635.508-2.912.058-1.28.072-1.684.072-4.948s-.014-3.668-.072-4.948c-.058-1.277-.256-2.145-.508-2.912A5.22 5.22 0 0 0 19.86.58a5.22 5.22 0 0 0-1.94-1.16c-.767-.252-1.635-.45-2.912-.508C15.268.014 14.864 0 12 0z"/><circle cx="12" cy="12" r="3.3"/><circle cx="18.406" cy="5.595" r="1.08"/></svg>
  </a>
</div>
*/

/* === Accordion mobile cho 2 cột links === */
.footer-accordion details > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 0;
  border-bottom: 1px solid rgba(249, 249, 249, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-accordion details > summary::-webkit-details-marker {
  display: none;
}
.footer-accordion details > summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.2s ease;
}
.footer-accordion details[open] > summary::after {
  content: "−";
}
.footer-accordion details[open] > summary {
  border-bottom: none;
}
.footer-accordion ul {
  padding: 8px 0 16px 0;
  border-bottom: 1px solid rgba(249, 249, 249, 0.2);
}

@media (min-width: 768px) {
  .footer-accordion details {
    /* Trên desktop: bỏ accordion, hiển thị tất cả */
  }
  .footer-accordion details > summary {
    pointer-events: none;
    border-bottom: none;
    padding: 0 0 12px 0;
  }
  .footer-accordion details > summary::after {
    display: none;
  }
  .footer-accordion details[open] ul,
  .footer-accordion details ul {
    display: block;
    border-bottom: none;
  }
  .footer-accordion details:not([open]) ul {
    display: block;
  }
}
