/* =============================================
   LOWES SURVEY SITE — SHARED STYLES
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #003594;
  --primary-dark: #002874;
  --secondary:    #1B3A6B;
  --light-bg:     #F5F6F8;
  --border:       #E0E0E0;
  --text:         #333;
  --text-muted:   #555;
  --white:        #FFF;
  --shadow:       0 2px 8px rgba(0,0,0,0.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  font-size: 15px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
p { margin-bottom: 12px; }
p:last-child { margin-bottom: 0; }

/* =============================================
   TOP NAVIGATION
   ============================================= */
.topnav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.topnav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.topnav-links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 24px;
}
.topnav-links a {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
}
.topnav-links a:hover { color: var(--primary); }

/* =============================================
   HERO SLIDER
   ============================================= */
.hero {
  position: relative;
  min-height: 420px;
  background: url('../images/lowes-hero.jpg')
              center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.hero-slide {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 28px;
  background: rgba(0, 0, 0, 0.30);
  border-radius: 3px;
  max-width: 500px;
  width: 90%;
}
.hero-slide h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 22px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.btn-cta {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 12px 36px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: background 0.2s;
}
.btn-cta:hover { background: var(--primary-dark); }

/* =============================================
   ARTICLE WRAPPER
   ============================================= */
.article-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.section-title {
  background: var(--secondary);
  color: var(--white);
  padding: 13px 20px;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 40px -20px 22px;
}

.article-intro { margin-bottom: 8px; }

/* =============================================
   TWO-COLUMN
   ============================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 8px;
}
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

/* =============================================
   FEATURE CARDS
   ============================================= */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 8px;
}
@media (max-width: 620px) { .cards-grid { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.card:hover { box-shadow: var(--shadow); }

.card-icon {
  width: 46px;
  height: 46px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.card-body h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 5px;
}
.card-body p { font-size: 0.83rem; color: var(--text-muted); margin: 0 0 8px; }
.card-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  background: #EEF2FF;
  padding: 2px 10px;
  border-radius: 20px;
  display: inline-block;
}

/* =============================================
   TIPS SECTION
   ============================================= */
.tips-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 8px;
}
@media (max-width: 720px) { .tips-section { grid-template-columns: 1fr; } }

.tips-section p { margin-bottom: 12px; }
.tips-section ul { list-style: none; padding: 0; }
.tips-section ul li {
  padding: 8px 0 8px 24px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.tips-section ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.tips-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 6px;
}

/* =============================================
   BENEFITS SECTION
   ============================================= */
.benefits-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 8px;
}
@media (max-width: 720px) { .benefits-section { grid-template-columns: 1fr; } }

.benefits-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 6px;
}
.benefits-list { list-style: none; padding: 0; margin-top: 6px; }
.benefits-list li {
  padding: 8px 0 8px 24px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.benefits-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* =============================================
   FAQ ACCORDION
   ============================================= */
.faq-list {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }

.faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 18px;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: 12px;
  transition: background 0.15s;
}
.faq-btn:hover { background: var(--light-bg); }

.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s, background 0.15s;
  line-height: 1;
}
.faq-btn.open .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--light-bg);
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0 18px;
}
.faq-answer.open {
  max-height: 200px;
  padding: 12px 18px 16px;
}

/* =============================================
   PLAIN LIST / CONTENT
   ============================================= */
.content-section { margin-bottom: 8px; }
.plain-list { list-style: none; padding: 0; margin: 10px 0 14px; }
.plain-list li {
  padding: 7px 0 7px 20px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.plain-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

/* =============================================
   STEPS LIST
   ============================================= */
.steps-list {
  list-style: none;
  padding: 0;
  counter-reset: steps;
  margin: 12px 0 14px;
}
.steps-list li {
  counter-increment: steps;
  padding: 10px 0 10px 48px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.steps-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 8px;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
}

/* =============================================
   PRODUCTS
   ============================================= */
.product-item {
  padding: 11px 14px;
  background: var(--light-bg);
  border-left: 4px solid var(--primary);
  border-radius: 0 4px 4px 0;
  margin-bottom: 10px;
  font-size: 0.88rem;
}
.product-item strong { color: var(--secondary); }

.conclusion { font-size: 0.93rem; line-height: 1.75; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: #0D1F40;
  color: #aaa;
  padding: 48px 20px 20px;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.6fr;
  gap: 32px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 { color: var(--white); font-size: 0.92rem; margin-bottom: 12px; font-weight: 700; }
.footer-col p  { font-size: 0.8rem; color: #999; line-height: 1.75; margin-bottom: 4px; }
.footer-col a  { color: #bbb; font-size: 0.83rem; display: block; line-height: 2; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid #1E3560;
  text-align: center;
  font-size: 0.76rem;
  color: #666;
}

/* =============================================
   HOME PAGE — BLOG LISTING
   ============================================= */
.posts-wrap {
  max-width: 1100px;
  margin: 24px auto 8px;
  padding: 0 20px;
}
.posts-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.post-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  width: 260px;
  transition: box-shadow 0.2s;
}
.post-card:hover { box-shadow: var(--shadow); }
.post-card-img { display: block; }
.post-card-img img { width: 100%; height: 170px; object-fit: cover; display: block; }
.post-card-body { padding: 14px; }
.post-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.35;
  margin-bottom: 5px;
}
.post-card-title a { color: var(--secondary); }
.post-card-title a:hover { color: var(--primary); }
.post-card-meta { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 8px; }
.post-card-excerpt { font-size: 0.8rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 10px; }
.read-more { font-size: 0.8rem; color: var(--primary); font-weight: 600; }
.read-more:hover { text-decoration: underline; }

/* HOME PAGE — ABOUT US SECTION */
.about-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
}
.about-title {
  background: var(--secondary);
  color: var(--white);
  padding: 13px 20px;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 36px -20px 22px;
  text-align: center;
}
.about-wrap h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 22px 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
}
.about-wrap p  { font-size: 0.9rem; margin-bottom: 10px; }
.about-wrap ul { margin: 8px 0 12px; padding-left: 22px; }
.about-wrap ul li { font-size: 0.88rem; margin-bottom: 4px; }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-hero {
  background: var(--secondary);
  color: var(--white);
  padding: 14px 24px;
  font-size: 1.5rem;
  font-weight: 700;
}
.contact-wrap {
  max-width: 1100px;
  margin: 30px auto 60px;
  padding: 0 20px;
}
.contact-field { margin-bottom: 20px; }
.contact-field label {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s;
}
.contact-field input:focus,
.contact-field textarea:focus { outline: none; border-color: var(--primary); }
.contact-field textarea { min-height: 140px; resize: vertical; }
.btn-send {
  width: 100%;
  background: var(--secondary);
  color: var(--white);
  border: none;
  padding: 13px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 3px;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.btn-send:hover { background: var(--primary); }

/* =============================================
   PRIVACY POLICY / TERMS PAGES
   ============================================= */
.legal-wrap {
  max-width: 1100px;
  margin: 30px auto 60px;
  padding: 0 20px;
}
.legal-intro {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-style: italic;
}
.legal-wrap h1 { font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.legal-wrap h2 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 24px 0 8px; }
.legal-wrap p  { font-size: 0.88rem; line-height: 1.7; margin-bottom: 10px; color: var(--text-muted); }
.legal-wrap ul { padding-left: 22px; margin: 8px 0 12px; }
.legal-wrap ul li { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 4px; }
.legal-wrap a  { color: var(--primary); }

/* =============================================
   ——  SURVEY PAGES  ——
   ============================================= */
.survey-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #F0F2F5;
}

/* Survey Header */
.survey-header {
  background: var(--white);
  border-bottom: 2px solid #ddd;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lowes-logo-img {
  height: 60px;
  width: auto;
  display: block;
}

.lang-select {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
  background: var(--white);
}

/* Survey Main */
.survey-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 20px;
}
.survey-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 36px;
  width: 100%;
  max-width: 680px;
  box-shadow: var(--shadow);
}
@media (max-width: 560px) { .survey-card { padding: 22px 18px; } }

/* Progress */
.progress-wrap { margin-bottom: 26px; }
.progress-label { font-size: 0.76rem; color: var(--text-muted); margin-bottom: 5px; font-weight: 600; letter-spacing: 0.3px; }
.progress-bar { background: #DDE2EA; height: 5px; border-radius: 3px; overflow: hidden; }
.progress-fill {
  background: var(--primary);
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* Intro */
.survey-intro p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 10px; }
.survey-intro a { color: var(--primary); text-decoration: underline; font-size: 0.875rem; }
.survey-links { margin: 16px 0 24px; display: flex; flex-direction: column; gap: 4px; }

/* Receipt */
.receipt-wrap { text-align: center; margin: 0 0 22px; }
.receipt-hint { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 12px; }
.receipt-mock {
  display: inline-block;
  background: var(--white);
  border: 1px solid #ccc;
  padding: 16px 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.67rem;
  line-height: 1.6;
  text-align: left;
  max-width: 290px;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.10);
}
.receipt-mock .r-title  { text-align: center; font-weight: 700; font-size: 0.85rem; margin-bottom: 2px; }
.receipt-mock .r-addr   { text-align: center; color: #555; margin-bottom: 6px; }
.receipt-mock .r-divider{ border: none; border-top: 1px dashed #aaa; margin: 5px 0; }
.receipt-mock .r-item   { display: flex; justify-content: space-between; gap: 10px; }
.receipt-mock .r-highlight {
  background: #FFF9C4;
  border: 1px solid #F9A825;
  color: #C62828;
  font-weight: 700;
  padding: 0 4px;
}
.receipt-mock .r-center { text-align: center; }

/* Form */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; font-size: 0.84rem; color: var(--secondary); margin-bottom: 5px; }
.form-hint  { font-size: 0.76rem; color: var(--text-muted); margin-bottom: 7px; }
.form-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.875rem;
  color: var(--text);
  transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(0,53,148,0.12); }
.form-input.error { border-color: #C0392B; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.form-error { font-size: 0.76rem; color: #C0392B; margin-top: 3px; display: none; }
.form-error.show { display: block; }

/* Buttons */
.btn-next {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px 44px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.2s;
  margin-top: 6px;
}
.btn-next:hover { background: var(--primary-dark); }

/* =============================================
   SURVEY QUESTIONS
   ============================================= */
.question-block {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.question-block:last-of-type { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

.question-title {
  font-weight: 700;
  color: var(--secondary);
  font-size: 0.92rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.checkbox-group { display: flex; flex-direction: column; gap: 6px; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  padding: 8px 12px;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: background 0.12s;
}
.checkbox-label:hover { background: var(--light-bg); border-color: var(--border); }
.checkbox-label input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }

.textarea-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.875rem;
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
  color: var(--text);
}
.textarea-input:focus { outline: none; border-color: var(--primary); }

/* =============================================
   CONGRATULATIONS PAGE
   ============================================= */
.congrats-wrap { text-align: center; padding: 8px 0 20px; }
.congrats-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 18px;
  line-height: 1.3;
}
.congrats-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 460px;
  margin: 0 auto 22px;
}
.congrats-body strong { color: var(--text); }

.btn-support {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.92rem;
  margin: 6px;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-support.dark { background: var(--secondary); color: var(--white); }
.btn-support.dark:hover { background: var(--primary-dark); }
.btn-support.blue { background: var(--primary); color: var(--white); }
.btn-support.blue:hover { background: var(--primary-dark); }

/* =============================================
   CONFETTI
   ============================================= */
#confetti-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* =============================================
   SURVEY FOOTER
   ============================================= */
.survey-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-muted);
}
.survey-footer a { color: var(--primary); margin: 0 10px; }
.survey-footer a:hover { text-decoration: underline; }
