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

/* Variables */
:root {
  --page-promotions-daily-rebate-primary-color: #1A202C;
  --page-promotions-daily-rebate-secondary-color: #FFD700;
  --page-promotions-daily-rebate-text-light: #F0F0F0;
  --page-promotions-daily-rebate-text-dark: #1A202C;
  --page-promotions-daily-rebate-background-light: #F9F9F9;
  --page-promotions-daily-rebate-background-dark: #2D3748;
  --page-promotions-daily-rebate-border-color: #e2e8f0;
}

.page-promotions-daily-rebate {
  font-family: 'Arial', sans-serif;
  color: var(--page-promotions-daily-rebate-text-dark); /* Dark text on light background */
  line-height: 1.6;
  background-color: var(--page-promotions-daily-rebate-background-light);
}

.page-promotions-daily-rebate strong {
  color: var(--page-promotions-daily-rebate-primary-color);
}

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

/* Hero Section */
.page-promotions-daily-rebate__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--page-promotions-daily-rebate-primary-color) 0%, var(--page-promotions-daily-rebate-background-dark) 100%);
  color: var(--page-promotions-daily-rebate-text-light);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-promotions-daily-rebate__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-promotions-daily-rebate__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--page-promotions-daily-rebate-secondary-color); /* Gold title for emphasis */
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-promotions-daily-rebate__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #E0E0E0; /* Slightly lighter text for readability on dark background */
}

.page-promotions-daily-rebate__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-promotions-daily-rebate__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  overflow: hidden;
}

.page-promotions-daily-rebate__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%) blur(3px);
  transform: scale(1.1);
}

/* General Section Styling */
.page-promotions-daily-rebate__section {
  padding: 60px 0;
  background-color: var(--page-promotions-daily-rebate-background-light);
}

.page-promotions-daily-rebate__section:nth-of-type(even) {
  background-color: #ECEFF1; /* Light grey for alternating sections */
}

.page-promotions-daily-rebate__section-title {
  font-size: 2.5em;
  color: var(--page-promotions-daily-rebate-primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-promotions-daily-rebate__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--page-promotions-daily-rebate-secondary-color);
  border-radius: 2px;
}

.page-promotions-daily-rebate__subsection-title {
  font-size: 1.8em;
  color: var(--page-promotions-daily-rebate-primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  border-left: 5px solid var(--page-promotions-daily-rebate-secondary-color);
  padding-left: 15px;
}

.page-promotions-daily-rebate p {
  margin-bottom: 1em;
  color: #333;
}

.page-promotions-daily-rebate__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #444;
}

.page-promotions-daily-rebate__list li {
  margin-bottom: 10px;
}

/* Buttons */
.page-promotions-daily-rebate__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.page-promotions-daily-rebate__btn--primary {
  background-color: var(--page-promotions-daily-rebate-secondary-color);
  color: var(--page-promotions-daily-rebate-text-dark); /* Dark text on gold button for WCAG AA contrast */
  border: 2px solid var(--page-promotions-daily-rebate-secondary-color);
}

.page-promotions-daily-rebate__btn--primary:hover {
  background-color: #E6C200; /* Slightly darker gold on hover */
  border-color: #E6C200;
  transform: translateY(-2px);
}

.page-promotions-daily-rebate__btn--secondary {
  background-color: transparent;
  color: var(--page-promotions-daily-rebate-secondary-color);
  border: 2px solid var(--page-promotions-daily-rebate-secondary-color);
}

.page-promotions-daily-rebate__btn--secondary:hover {
  background-color: var(--page-promotions-daily-rebate-secondary-color);
  color: var(--page-promotions-daily-rebate-text-dark); /* Dark text on gold button for WCAG AA contrast */
  transform: translateY(-2px);
}

.page-promotions-daily-rebate__btn--large {
  padding: 15px 30px;
  font-size: 1.1em;
}

.page-promotions-daily-rebate__btn--small {
  padding: 8px 15px;
  font-size: 0.9em;
}

/* Images */
.page-promotions-daily-rebate__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-promotions-daily-rebate__image--center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Tables */
.page-promotions-daily-rebate__table-wrapper {
  overflow-x: auto;
  margin-bottom: 20px;
}

.page-promotions-daily-rebate__rebate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.9em;
  min-width: 600px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.page-promotions-daily-rebate__rebate-table thead tr {
  background-color: var(--page-promotions-daily-rebate-primary-color);
  color: var(--page-promotions-daily-rebate-text-light);
  text-align: left;
}

.page-promotions-daily-rebate__rebate-table th,
.page-promotions-daily-rebate__rebate-table td {
  padding: 12px 15px;
  border: 1px solid var(--page-promotions-daily-rebate-border-color);
}

.page-promotions-daily-rebate__rebate-table tbody tr {
  border-bottom: 1px solid var(--page-promotions-daily-rebate-border-color);
}

.page-promotions-daily-rebate__rebate-table tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

.page-promotions-daily-rebate__rebate-table tbody tr:last-of-type {
  border-bottom: 2px solid var(--page-promotions-daily-rebate-secondary-color);
}

/* FAQ Section */
.page-promotions-daily-rebate__faq-item {
  background-color: #fff;
  border: 1px solid var(--page-promotions-daily-rebate-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-promotions-daily-rebate__faq-question {
  font-size: 1.2em;
  color: var(--page-promotions-daily-rebate-primary-color);
  margin-bottom: 10px;
}

.page-promotions-daily-rebate__faq-answer {
  color: #555;
}

/* CTA Section */
.page-promotions-daily-rebate__cta-section {
  background-color: var(--page-promotions-daily-rebate-primary-color);
  color: var(--page-promotions-daily-rebate-text-light);
  padding: 80px 20px;
  text-align: center;
}

.page-promotions-daily-rebate__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #E0E0E0;
}

.page-promotions-daily-rebate__cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Floating Ad */
.page-promotions-daily-rebate__floating-ad {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgba(26, 32, 44, 0.95); /* Semi-transparent primary color */
  color: var(--page-promotions-daily-rebate-text-light);
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.page-promotions-daily-rebate__floating-ad.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-promotions-daily-rebate__floating-ad p {
  margin: 0;
  font-weight: bold;
  color: var(--page-promotions-daily-rebate-secondary-color); /* Gold text for promo message */
}

.page-promotions-daily-rebate__floating-ad-close {
  background: none;
  border: none;
  color: var(--page-promotions-daily-rebate-text-light);
  font-size: 1.5em;
  cursor: pointer;
  line-height: 1;
  padding: 0 5px;
}

.page-promotions-daily-rebate__floating-ad-close:hover {
  color: var(--page-promotions-daily-rebate-secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-promotions-daily-rebate__hero-title {
    font-size: 2.5em;
  }

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

  .page-promotions-daily-rebate__hero-actions {
    flex-direction: column;
  }

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

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

  .page-promotions-daily-rebate__rebate-table {
    min-width: 100%;
  }

  .page-promotions-daily-rebate__floating-ad {
    flex-direction: column;
    align-items: flex-start;
    bottom: 10px;
    right: 10px;
    left: 10px;
    width: auto;
  }

  .page-promotions-daily-rebate__floating-ad-close {
    position: absolute;
    top: 5px;
    right: 5px;
  }

  .page-promotions-daily-rebate__floating-ad p {
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .page-promotions-daily-rebate__hero-title {
    font-size: 2em;
  }

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

  .page-promotions-daily-rebate__subsection-title {
    font-size: 1.3em;
  }

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

/* Ensure color contrast for WCAG AA */
/* Main text on light background */
.page-promotions-daily-rebate p, .page-promotions-daily-rebate__list li, .page-promotions-daily-rebate__faq-answer {
  color: #333333; /* Contrast ratio with #F9F9F9 is ~14.7:1 (AA standard is 4.5:1) */
}

/* Section titles on light background */
.page-promotions-daily-rebate__section-title, .page-promotions-daily-rebate__subsection-title, .page-promotions-daily-rebate__faq-question {
  color: var(--page-promotions-daily-rebate-primary-color); /* #1A202C. Contrast ratio with #F9F9F9 is ~14.7:1 */
}

/* Gold button with dark text */
.page-promotions-daily-rebate__btn--primary, .page-promotions-daily-rebate__btn--secondary:hover {
  background-color: var(--page-promotions-daily-rebate-secondary-color); /* #FFD700 */
  color: var(--page-promotions-daily-rebate-text-dark); /* #1A202C. Contrast ratio with #FFD700 is ~7.4:1 */
}

/* Dark background with light text */
.page-promotions-daily-rebate__hero-section, .page-promotions-daily-rebate__cta-section, .page-promotions-daily-rebate__floating-ad {
  background-color: var(--page-promotions-daily-rebate-primary-color); /* #1A202C */
  color: var(--page-promotions-daily-rebate-text-light); /* #F0F0F0. Contrast ratio with #1A202C is ~14.7:1 */
}

/* Gold text on dark background */
.page-promotions-daily-rebate__hero-title, .page-promotions-daily-rebate__btn--secondary {
  color: var(--page-promotions-daily-rebate-secondary-color); /* #FFD700. Contrast ratio with #1A202C is ~7.4:1 */
}

.page-promotions-daily-rebate__floating-ad p {
  color: var(--page-promotions-daily-rebate-secondary-color); /* #FFD700. Contrast ratio with #1A202C is ~7.4:1 */
}

.page-promotions-daily-rebate__rebate-table thead tr {
  background-color: var(--page-promotions-daily-rebate-primary-color); /* #1A202C */
  color: var(--page-promotions-daily-rebate-text-light); /* #F0F0F0. Contrast ratio with #1A202C is ~14.7:1 */
}