/* =========================================================
   Aquabottle Việt Nam – Warranty & Return Policy Page Styles
   ========================================================= */

.warranty-page {
  background-color: #f5f0e6;
  min-height: 100vh;
}

/* Warranty Hero */
.warranty-hero {
  background:
    linear-gradient(
      135deg,
      rgba(9, 26, 20, 0.95) 0%,
      rgba(14, 41, 32, 0.88) 100%
    ),
    url("images/hero-banner.jpg") center/cover no-repeat;
  color: var(--white);
  padding: 64px 0 54px;
  text-align: center;
  position: relative;
}
.warranty-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(242, 107, 58, 0.2);
  border: 1px solid rgba(242, 107, 58, 0.5);
  color: #ff9d76;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.warranty-hero h1 {
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.warranty-hero h1 span {
  color: var(--cta);
}
.warranty-hero p {
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

/* Quick Stats Bar in Hero */
.warranty-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}
.warranty-stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.25s ease;
}
.warranty-stat-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
  border-color: rgba(242, 107, 58, 0.4);
}
.warranty-stat-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}
.warranty-stat-desc {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

/* Section Common */
.warranty-section {
  padding: 56px 0;
}
.warranty-section--tint {
  background-color: #ffffff;
}

.warranty-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}
.warranty-header .section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: #0f766e;
  background: #e6f5ef;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.warranty-header h2 {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.warranty-header p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* 4 Commitments Grid */
.commit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.commit-card {
  background: var(--white);
  border: 1px solid #e2ede7;
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(14, 41, 32, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.commit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--cta);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.commit-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 30px rgba(14, 41, 32, 0.08);
}
.commit-card:hover::before {
  opacity: 1;
}
.commit-info h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.3;
}
.commit-info p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
}
.commit-badge {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #0f766e;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

/* 3-Step Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.process-step {
  background: var(--white);
  border: 1.5px dashed #cbd5e1;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: all 0.25s ease;
}
.process-step:hover {
  border-color: var(--cta);
  border-style: solid;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(242, 107, 58, 0.08);
}
.process-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 12px rgba(14, 41, 32, 0.2);
}
.process-step h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.process-step p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* Lookup / Registration Form Box */
.lookup-box {
  background: var(--white);
  border: 1px solid #dce8e2;
  border-radius: 24px;
  padding: 36px 32px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 16px 40px rgba(14, 41, 32, 0.06);
}
.lookup-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: flex-end;
}
.lookup-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.lookup-input-group input,
.lookup-input-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.lookup-input-group input:focus,
.lookup-input-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 41, 32, 0.08);
}
.lookup-submit-btn {
  padding: 12px 24px;
  height: 46px;
}

/* Lookup Result Box */
.lookup-result {
  margin-top: 24px;
  padding: 20px;
  border-radius: 16px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  display: none;
  animation: fadeIn 0.3s ease;
}
.lookup-result.is-active {
  display: block;
}
.lookup-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.lookup-result-title {
  font-size: 15px;
  font-weight: 800;
  color: #166534;
}
.lookup-result-badge {
  background: #22c55e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}
.lookup-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  font-size: 13px;
  color: #1e293b;
}
.lookup-result-grid strong {
  display: block;
  font-size: 13.5px;
  color: var(--primary);
}

/* Comparative Rules Table */
.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.rules-card {
  border-radius: 20px;
  padding: 28px 24px;
  border: 1.5px solid;
}
.rules-card--covered {
  background: #f8faf9;
  border-color: #a7f3d0;
}
.rules-card--not-covered {
  background: #fffbfa;
  border-color: #fecdd3;
}
.rules-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}
.rules-card--covered .rules-card-title {
  color: #065f46;
}
.rules-card--not-covered .rules-card-title {
  color: #9f1239;
}
.rules-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rules-list li {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
}

/* FAQ Accordion */
.faq-box {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1px solid #e2ede7;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.faq-item:hover {
  border-color: #cbd5e1;
}
.faq-btn {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  font-family: inherit;
}
.faq-btn::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--cta);
  transition: transform 0.2s;
}
.faq-item.is-open .faq-btn::after {
  content: "−";
}
.faq-ans {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  padding: 0 20px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.faq-item.is-open .faq-ans {
  max-height: 200px;
  padding: 0 20px 18px;
}

/* Bottom CTA Banner */
.warranty-cta-box {
  background: linear-gradient(135deg, #172b25 0%, #0e2920 100%);
  border-radius: 24px;
  padding: 44px 32px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(14, 41, 32, 0.15);
}
.warranty-cta-box h2 {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}
.warranty-cta-box p {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.warranty-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.warranty-hotline-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.warranty-hotline-pill:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 900px) {
  .warranty-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .commit-grid {
    grid-template-columns: 1fr;
  }
  .process-steps {
    grid-template-columns: 1fr;
  }
  .rules-grid {
    grid-template-columns: 1fr;
  }
  .lookup-form {
    grid-template-columns: 1fr;
  }
  .lookup-result-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .warranty-hero {
    padding: 48px 0 36px;
  }
  .warranty-stats {
    grid-template-columns: 1fr;
  }
  .lookup-box {
    padding: 24px 18px;
  }
  .warranty-cta-box {
    padding: 32px 20px;
  }
}
