/* style/promotions-daily-rebate.css */

/* --- Custom Colors --- */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* --- General Styles --- */
.page-promotions-daily-rebate {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* #F2FFF6 */
  background-color: var(--background); /* #08160F */
}

.page-promotions-daily-rebate__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-promotions-daily-rebate__section-title {
  font-size: 2.5em;
  color: var(--text-main); /* #F2FFF6 */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.3); /* Glow */
}

.page-promotions-daily-rebate__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-secondary); /* #A7D9B8 */
}

/* --- Buttons --- */
.page-promotions-daily-rebate__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-promotions-daily-rebate__btn-primary,
.page-promotions-daily-rebate__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions-daily-rebate__btn-primary {
  background: var(--button-gradient); /* linear-gradient(180deg, #2AD16F 0%, #13994A 100%) */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions-daily-rebate__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-promotions-daily-rebate__btn-secondary {
  background: transparent;
  color: var(--text-main); /* #F2FFF6 */
  border: 2px solid var(--border-color); /* #2E7A4E */
}

.page-promotions-daily-rebate__btn-secondary:hover {
  background: rgba(46, 122, 78, 0.2); /* Slightly lighter border color with transparency */
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- Hero Section --- */
.page-promotions-daily-rebate__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--background); /* #08160F */
}

.page-promotions-daily-rebate__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions-daily-rebate__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly with image for visual appeal */
  background-color: var(--card-bg); /* #11271B */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1;
  position: relative;
}

.page-promotions-daily-rebate__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
  color: var(--gold); /* #F2C14E */
  margin-bottom: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-promotions-daily-rebate__subtitle {
  font-size: clamp(1em, 2vw, 1.3em);
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Introduction Section --- */
.page-promotions-daily-rebate__introduction-section {
  padding: 80px 0;
  background-color: var(--background); /* #08160F */
}

.page-promotions-daily-rebate__dark-section {
  background-color: var(--deep-green); /* #0A4B2C */
  padding: 60px 0;
}

/* --- How It Works Section --- */
.page-promotions-daily-rebate__how-it-works-section {
  padding: 80px 0;
  background-color: var(--card-bg); /* #11271B */
}

.page-promotions-daily-rebate__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-promotions-daily-rebate__step-card {
  background-color: var(--card-bg); /* #11271B */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color); /* #2E7A4E */
  transition: transform 0.3s ease;
  color: var(--text-secondary); /* #A7D9B8 */
}

.page-promotions-daily-rebate__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-promotions-daily-rebate__step-icon {
  width: 100%; /* Ensure full width within card */
  height: auto;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block; /* Ensure it behaves as a block element */
}

.page-promotions-daily-rebate__step-title {
  font-size: 1.5em;
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions-daily-rebate__step-description a {
  color: var(--gold); /* Highlight links */
  text-decoration: none;
}

.page-promotions-daily-rebate__step-description a:hover {
  text-decoration: underline;
}

/* --- Eligibility Section --- */
.page-promotions-daily-rebate__eligibility-section {
  padding: 80px 0;
}

.page-promotions-daily-rebate__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-promotions-daily-rebate__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: var(--text-secondary); /* #A7D9B8 */
}

.page-promotions-daily-rebate__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--glow); /* #57E38D */
  font-weight: bold;
}

/* --- Terms Section --- */
.page-promotions-daily-rebate__terms-section {
  padding: 80px 0;
  background-color: var(--background); /* #08160F */
}

.page-promotions-daily-rebate__terms-content {
  margin-top: 30px;
  border: 1px solid var(--divider); /* #1E3A2A */
  border-radius: 10px;
  padding: 30px;
  background-color: var(--card-bg); /* #11271B */
}

.page-promotions-daily-rebate__ordered-list {
  list-style: decimal;
  padding-left: 25px;
  margin-top: 20px;
  color: var(--text-secondary); /* #A7D9B8 */
}

.page-promotions-daily-rebate__ordered-list .page-promotions-daily-rebate__list-item {
  padding-left: 0;
  margin-bottom: 10px;
}

.page-promotions-daily-rebate__ordered-list .page-promotions-daily-rebate__list-item::before {
  content: none; /* Remove custom checkmark */
}

.page-promotions-daily-rebate__cta-bottom {
  text-align: center;
  margin-top: 40px;
}

/* --- FAQ Section --- */
.page-promotions-daily-rebate__faq-section {
  padding: 80px 0;
}

.page-promotions-daily-rebate__faq-list {
  margin-top: 40px;
}

.page-promotions-daily-rebate__faq-item {
  background-color: var(--card-bg); /* #11271B */
  border: 1px solid var(--divider); /* #1E3A2A */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions-daily-rebate__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main); /* #F2FFF6 */
  background-color: var(--deep-green); /* #0A4B2C */
  border-bottom: 1px solid var(--divider);
  transition: background-color 0.3s ease;
}

.page-promotions-daily-rebate__faq-question:hover {
  background-color: var(--primary-color); /* #11A84E */
}

.page-promotions-daily-rebate__faq-qtext {
  flex-grow: 1;
}

.page-promotions-daily-rebate__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--glow); /* #57E38D */
}

.page-promotions-daily-rebate__faq-answer {
  padding: 20px;
  font-size: 1.05em;
  color: var(--text-secondary); /* #A7D9B8 */
  background-color: var(--card-bg); /* #11271B */
}

.page-promotions-daily-rebate__faq-answer p {
  margin-bottom: 10px;
}

/* Remove default details marker */
.page-promotions-daily-rebate__faq-item summary {
  list-style: none;
}
.page-promotions-daily-rebate__faq-item summary::-webkit-details-marker {
  display: none;
}

/* --- Join Now Section --- */
.page-promotions-daily-rebate__join-now-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--deep-green); /* #0A4B2C */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-promotions-daily-rebate__main-title {
    font-size: 2.8em;
  }
  .page-promotions-daily-rebate__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-promotions-daily-rebate {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promotions-daily-rebate__container {
    padding: 0 15px;
  }

  .page-promotions-daily-rebate__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }

  .page-promotions-daily-rebate__main-title {
    font-size: 2em;
  }

  .page-promotions-daily-rebate__subtitle {
    font-size: 1em;
  }

  .page-promotions-daily-rebate__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-promotions-daily-rebate__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions-daily-rebate__btn-primary,
  .page-promotions-daily-rebate__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Image responsiveness */
  .page-promotions-daily-rebate img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Container responsiveness for images/content */
  .page-promotions-daily-rebate__hero-section,
  .page-promotions-daily-rebate__introduction-section,
  .page-promotions-daily-rebate__how-it-works-section,
  .page-promotions-daily-rebate__eligibility-section,
  .page-promotions-daily-rebate__terms-section,
  .page-promotions-daily-rebate__faq-section,
  .page-promotions-daily-rebate__join-now-section,
  .page-promotions-daily-rebate__container,
  .page-promotions-daily-rebate__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }

  .page-promotions-daily-rebate__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
  }
}

@media (max-width: 480px) {
  .page-promotions-daily-rebate__hero-content {
    margin-top: -40px;
    padding: 20px 10px;
  }

  .page-promotions-daily-rebate__main-title {
    font-size: 1.8em;
  }

  .page-promotions-daily-rebate__section-title {
    font-size: 1.5em;
  }

  .page-promotions-daily-rebate__btn-primary,
  .page-promotions-daily-rebate__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
}

/* Ensure contrast for text on specific backgrounds */
.page-promotions-daily-rebate__dark-bg {
  color: var(--text-main); /* #F2FFF6 */
  background: var(--deep-green); /* #0A4B2C */
}

.page-promotions-daily-rebate__light-bg {
  color: #333333; /* Fallback for light bg, though not used much here */
  background: #ffffff;
}

.page-promotions-daily-rebate__medium-bg {
  color: #000000; /* Fallback for medium bg */
  background: var(--secondary-color); /* #22C768 */
}

/* Specific text elements for contrast */
.page-promotions-daily-rebate p,
.page-promotions-daily-rebate li {
  color: var(--text-secondary); /* #A7D9B8 */
}

.page-promotions-daily-rebate__card {
  background: var(--card-bg); /* #11271B */
  color: var(--text-secondary); /* #A7D9B8 */
  border: 1px solid var(--border-color); /* #2E7A4E */
}

.page-promotions-daily-rebate__section-title,
.page-promotions-daily-rebate__step-title {
  color: var(--text-main); /* #F2FFF6 */
}
.page-promotions-daily-rebate__main-title {
    color: var(--gold); /* Specific gold for H1 */
}

/* Links within content */
.page-promotions-daily-rebate a {
  color: var(--gold); /* #F2C14E */
  text-decoration: none;
}
.page-promotions-daily-rebate a:hover {
  text-decoration: underline;
}

/* FAQ question background, ensuring contrast */
.page-promotions-daily-rebate__faq-question {
  background-color: var(--deep-green); /* #0A4B2C */
  color: var(--text-main); /* #F2FFF6 */
}
.page-promotions-daily-rebate__faq-question:hover {
  background-color: var(--primary-color); /* #11A84E */
}