@charset "UTF-8";
/***************************************************************************************************
********************************* STAGE STYLES ****************************************************
***************************************************************************************************/
:root {
  --primary: #0d6efd;
  --secondary: #161925;
  --accent: #ff6600;
  --text: #161925;
  --lightgrey: #8EA8C3;
  --mediumgrey: #406E8E;
  --darkgrey: #23395B;
  --teal: #449F93;
  --darkteal: #006153;
  --cream: #EEE8A9;
  --dark-bg: #161925;
  --yellow: #e2b12e;
  --error: #b92924;
  --rust: #C15450;
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
  border-color: #dc3545;
}

.was-validated .form-control:valid,
.was-validated .form-select:valid {
  border-color: #28a745;
}

.invalid-feedback {
  display: none;
  font-size: 0.875rem;
  color: #dc3545;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback,
.was-validated .form-check-input:invalid ~ .invalid-feedback {
  display: block;
}

.stage-land {
  background-color: green;
  color: var(--text-light);
}

.stage-construction {
  background-color: yellow;
  color: var(--text-dark);
}

.stage-management {
  background-color: lightblue;
  color: var(--text-dark);
}

.stage-renovation {
  background-color: orange;
  color: var(--text-light);
}

.btn-primary {
  color: #fff;
  background-color: #09083a;
  border-color: #09083a;
}

.btn-primary:hover {
  color: #fff;
  background-color: #12114e;
  border-color: #12114e;
}

.btn-primary:focus,
.btn-primary:active {
  color: #fff;
  background-color: #06052a;
  border-color: #06052a;
  box-shadow: 0 0 0 0.25rem rgba(9, 8, 58, 0.4);
}

.btn-primary:disabled {
  background-color: #09083a;
  border-color: #09083a;
  opacity: 0.65;
}

.navbar {
  background: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
}
.navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.3rem;
  color: #111;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}
.navbar .navbar-brand:hover {
  color: #007bff;
}
.navbar .navbar-nav > .nav-item > .nav-link {
  font-weight: 500;
  margin: 0 0.75rem;
  position: relative;
  transition: color 0.2s ease;
}
.navbar .navbar-nav > .nav-item > .nav-link:hover {
  color: #007bff;
}
.navbar .navbar-nav > .nav-item > .nav-link.active {
  color: #007bff;
}
.navbar .navbar-nav > .nav-item > .nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  width: calc(100% - 1.5rem);
  bottom: 0.35rem;
  height: 2px;
  background: #007bff;
  display: block;
  border: 0;
  margin-left: 0;
  vertical-align: initial;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.navbar .navbar-nav > .nav-item > .nav-link:hover::after, .navbar .navbar-nav > .nav-item > .nav-link.active::after, .navbar .navbar-nav > .nav-item > .nav-link.show::after {
  transform: scaleX(1);
}
.navbar .navbar-nav > .nav-item > .nav-link.dropdown-toggle::after {
  transform-origin: center;
}
.navbar .dropdown-menu .dropdown-item {
  margin: 0;
  position: relative;
}
.navbar .dropdown-menu .dropdown-item::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  width: calc(100% - 1.5rem);
  bottom: 0.35rem;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.navbar .dropdown-menu .dropdown-item:hover::after, .navbar .dropdown-menu .dropdown-item.active::after {
  width: calc(100% - 1.5rem);
  transform: scaleX(1);
}
.navbar .dropdown-menu .dropdown-item.active, .navbar .dropdown-menu .dropdown-item:active {
  color: #fff;
}
.navbar .btn-signin {
  margin-left: 1rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 25px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}
.navbar .btn-signin:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

/* Custom button based on Bootstrap btn-warning */
.btn-enter {
  --bs-btn-color: #fff; /* text color */
  --bs-btn-bg: #09083a; /* base background */
  --bs-btn-border-color: #09083a; /* border same as bg */
  --bs-btn-hover-bg: #12114e; /* slightly lighter/different on hover */
  --bs-btn-hover-border-color: #12114e;
  --bs-btn-focus-shadow-rgb: 9,8,58; /* focus ring uses brand color */
  --bs-btn-active-bg: #06052a; /* darker for active click */
  --bs-btn-active-border-color: #06052a;
  --bs-btn-disabled-bg: #09083a;
  --bs-btn-disabled-border-color: #09083a;
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  border: 1px solid var(--bs-btn-border-color);
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.375rem; /* same as default Bootstrap rounded corners */
  color: var(--bs-btn-color);
  background-color: var(--bs-btn-bg);
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-enter:hover {
  color: #fff;
  background-color: var(--bs-btn-hover-bg);
  border-color: var(--bs-btn-hover-border-color);
}

.btn-enter:focus {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), 0.5);
}

.btn-enter:active {
  background-color: var(--bs-btn-active-bg);
  border-color: var(--bs-btn-active-border-color);
}

.btn-enter:disabled,
.btn-enter.disabled {
  opacity: 0.65;
  pointer-events: none;
  background-color: var(--bs-btn-disabled-bg);
  border-color: var(--bs-btn-disabled-border-color);
}

* {
  font-family: acumin-variable, sans-serif;
}

b {
  font-weight: 900;
}

.program-card {
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}
.program-card:hover {
  transform: scale(1.02);
}
.program-card .card-header {
  background-size: cover;
  background-position: center;
  height: 100px;
  background-image: url("/public/img/land.jpg");
}
.program-card .card-header .program-stage {
  font-size: 0.8rem;
}
.program-card .card-header .program-location {
  background: linear-gradient(to left, rgba(0, 0, 0, 0.8), transparent);
  width: 30%;
}
.program-card .card-body {
  padding: 1.5rem 1rem;
}
.program-card .card-body .program-title {
  color: #4ed2f7;
}
.program-card .card-body .program-address {
  font-size: 0.7rem;
}
.program-card .card-body .program-stats {
  row-gap: 0.5rem;
}
.program-card .card-body .program-stats .stat {
  line-height: 1;
}
.program-card .card-body .program-stats .value {
  font-size: 1.25rem;
}
.program-card .card-body .program-stats .small {
  font-size: 0.75rem;
  color: #6c757d;
}
.program-card .card-footer {
  border-top: 1px solid #e9ecef;
  background-color: #fff;
}
.program-card .card-footer .action-btn {
  text-align: center;
  background-color: white;
  border: none;
}
.program-card .card-footer .action-btn:hover {
  color: #007bff;
}

tbody, td, tfoot, th, thead, tr {
  border-style: unset;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
  text-align: left;
}
.table th, .table td {
  padding: 10px;
}
.table th {
  background-color: #666666;
  color: white;
  font-weight: 400;
}
.table .btn-link {
  color: #007bff;
  text-decoration: none;
}
.table .btn-link:hover {
  text-decoration: underline;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-color-type: var(--bs-table-striped-color);
  --bs-table-bg-type: #eef8f8;
}

td:has(.module--edit-button) {
  text-align: right;
}

.module--edit-button {
  text-align: right;
}

.module--delete-button {
  text-align: right;
}

.module--add-button {
  background-color: #23395B;
  color: white;
  border-radius: 20px;
}

.fg-logo {
  width: 150px;
  margin-left: 2rem;
}

.modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 2rem;
}
.modal-header .modal-header-content {
  text-align: center;
}
.modal-header .modal-title {
  margin: 0;
  font-size: 2rem;
  font-weight: bold;
}
.modal-header .modal-subtitle {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #6c757d;
}
.modal-header .btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.modal-body .form-label {
  margin-bottom: 0.5rem;
}
.modal-body .form-select {
  font-size: 1rem;
  padding: 0.5rem;
}

.stage-select {
  min-width: 300px;
  padding: 0.25rem;
  border-radius: 5px;
}

/* Align label and input fields on the same line */
.form-page .mb-3 {
  display: flex;
  align-items: flex-start;
}
.form-page .form-label {
  margin-right: 4rem;
  text-align: left;
}
.form-page .form-control {
  flex-grow: 1;
}

.card .row .group-title {
  background-color: #666666;
  color: #FFF;
}

.table-schema-added {
  color: var(--success) !important;
}

.table-schema-removed {
  color: var(--danger) !important;
}

.calc-direction-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  margin-bottom: 1rem;
}

.calc-direction-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--bs-secondary);
  cursor: pointer;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 0.3rem 0.6rem;
  background-color: #f8f9fa;
  transition: background-color 0.2s ease;
}
.calc-direction-toggle:hover {
  background-color: #e9ecef;
}
.calc-direction-toggle:hover i {
  opacity: 1;
  font-size: 1.15rem;
}
.calc-direction-toggle i {
  font-size: 1.1rem;
  color: var(--bs-secondary);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.bi-arrow-right-circle-fill {
  font-size: 1.15rem;
}

.bi-arrow-left-circle-fill {
  font-size: 1.15rem;
}

.pdf-export-header {
  text-align: right;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-text {
  font-size: 10rem;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.2);
  transform: rotate(352deg);
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  pointer-events: none;
}

.row.card-section-container {
  position: relative;
}

button:disabled {
  background-color: #e0e0e0;
  color: #a0a0a0;
  border: 1px solid #d0d0d0;
  cursor: not-allowed;
  opacity: 0.7;
}

button:disabled:hover {
  background-color: #e0e0e0;
  color: #a0a0a0;
}

.quick-links .filter-button:disabled {
  background-color: #e0e0e0;
  color: #a0a0a0;
  border: 1px solid #d0d0d0;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Fade-in and fade-out animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
}
#equationModal .drag-placeholder {
  background-color: rgba(0, 123, 255, 0.2); /* Light blue transparent */
  border: 2px dashed #007bff; /* Dashed border */
  height: 30px;
  width: 100px;
  margin: 5px;
  display: inline-block;
}
#equationModal .eq-title {
  color: #204F88;
}
#equationModal .operator-container {
  background-color: #EFEFEF;
  border-top: 1px solid #EFF1F3;
  border-bottom: 1px solid #EFF1F3;
}
#equationModal .operator-container .operator-btn-container {
  padding: 5px;
}
#equationModal .operator-container .operator-btn-container .operator-btn {
  background-color: #E9F6FB !important;
  border: 1px solid #97D8ED;
  font-size: 5rem;
  font-weight: 900;
  color: black;
}
#equationModal .cell-container {
  background-color: #F9F9F9;
  border-top: 1px solid #EFF1F3;
  border-bottom: 1px solid #EFF1F3;
}
#equationModal .drag-pill {
  background-color: #FDF3C9;
  border: 1px solid black;
}
#equationModal .drag-pill .pill-delete-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: white;
  color: #600000;
  width: 20px;
  height: 20px;
  border: 1px solid #600000;
  border-radius: 50%;
  padding: 0;
  padding-bottom: 2px;
  font-size: 1rem;
}
#equationModal .calculation-container {
  border-bottom: 1px solid #EFF1F3;
}
#equationModal .calculation-container .operator-btn {
  background-color: #E9F6FB !important;
  border: 1px solid #97D8ED;
  font-size: 5rem;
  font-weight: 900;
  color: black;
}
#equationModal .search-group {
  position: relative;
  width: 250px;
}
#equationModal .search-group input {
  width: 100%;
  border: 1px solid black;
  padding: 0.5rem 1rem;
}
#equationModal .search-group i {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.active-sort {
  background-color: #0d6efd;
  color: white;
  border-color: #0d6efd;
}

.fave-toggle.active {
  background-color: #dc3545;
  color: #fff;
  border-color: #dc3545;
}

#favourite-filter.active {
  background-color: #dc3545;
  color: white;
  border-color: #dc3545;
}

#favourite-filter.active i {
  color: white;
}

.thankyou-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #f9f9f9 60%, #eaf8f2 100%);
}

.thankyou-box {
  max-width: 500px;
  background: #fff;
  border-radius: 1rem;
}

.thankyou-icon i {
  font-size: 3rem;
  color: #28a745;
}

.thankyou-box h2 {
  font-size: 2rem;
  color: #333;
}

.thankyou-box p {
  font-size: 1.1rem;
}

/* ===== Fullscreen overlay remains ===== */
#toastOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1054;
}

.terms-list {
  counter-reset: term-counter;
  list-style: none;
}
.terms-list > .terms-section {
  counter-increment: term-counter;
  position: relative;
  padding-left: 2.5rem;
}
.terms-list > .terms-section::before {
  content: counter(term-counter) ".";
  position: absolute;
  left: 0;
  top: 0.2rem;
  font-weight: 700;
  font-size: 1.25rem;
}

/* ===============================
   Contest Slider – Full CSS
   =============================== */
#contestHeroSection {
  min-height: 300px;
}

.contest-slider-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  padding: 2rem 0;
}
.contest-slider-wrapper h2 {
  text-align: center;
  font-weight: 700;
  margin-bottom: 2rem;
}
.contest-slider-wrapper .contest-slider-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: transform 0.5s ease;
  justify-content: center;
}
.contest-slider-wrapper .contest-card {
  flex: 0 0 280px;
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
  opacity: 0.7;
  transform: scale(0.9);
}
.contest-slider-wrapper .contest-card img {
  width: 100%;
  height: 180px;
  -o-object-fit: cover;
     object-fit: cover;
}
.contest-slider-wrapper .contest-card .card-body {
  padding: 1rem;
}
.contest-slider-wrapper .contest-card .card-body h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.contest-slider-wrapper .contest-card .card-body p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.contest-slider-wrapper .contest-card .card-body .btn-primary {
  background-color: #09083a;
  border-color: #09083a;
  color: #fff;
  width: 100%;
}
.contest-slider-wrapper .contest-card .card-body .btn-primary:hover {
  background-color: #0d0c55;
  border-color: #0d0c55;
}
.contest-slider-wrapper .contest-card.active {
  transform: scale(1.15);
  opacity: 1;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.contest-slider-wrapper .slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(9, 8, 58, 0.85);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}
.contest-slider-wrapper .slider-btn:hover {
  background-color: rgb(9, 8, 58);
}
.contest-slider-wrapper .slider-btn.slider-btn-prev {
  left: 0.5rem;
}
.contest-slider-wrapper .slider-btn.slider-btn-next {
  right: 0.5rem;
}
@media (max-width: 992px) {
  .contest-slider-wrapper .contest-card {
    flex: 0 0 240px;
  }
  .contest-slider-wrapper .contest-card.active {
    transform: scale(1.1);
  }
}
@media (max-width: 768px) {
  .contest-slider-wrapper .contest-card {
    flex: 0 0 200px;
  }
  .contest-slider-wrapper .contest-card.active {
    transform: scale(1.05);
  }
}

/* Contest Hero container text centering */
.contest-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}
.contest-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
}
.contest-hero h1 {
  margin-top: 0;
}

.site-footer {
  position: relative;
  background: #111827;
  color: #f3f4f6;
  font-family: "Inter", sans-serif;
  padding-top: 2rem;
  /* === Yellow Triangle Decoration === */
}
.site-footer .footer-container {
  position: relative; /* keep content above triangle */
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem;
}
@media (max-width: 768px) {
  .site-footer .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
.site-footer .footer-brand .footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}
.site-footer .footer-brand .footer-tagline {
  font-size: 0.9rem;
  color: #9ca3af;
}
.site-footer .footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer .footer-links ul:not(.dropdown-menu) {
  display: grid;
}
.site-footer .footer-links ul {
  grid-auto-flow: column;
  grid-auto-rows: auto;
  grid-template-rows: repeat(4, auto);
  -moz-column-gap: 1.25rem;
       column-gap: 1.25rem;
}
@media (max-width: 992px) {
  .site-footer .footer-links ul {
    -moz-column-gap: 1rem;
         column-gap: 1rem;
  }
}
@media (max-width: 600px) {
  .site-footer .footer-links ul {
    grid-auto-flow: row;
    grid-template-rows: none;
    row-gap: 0.5rem;
  }
}
.site-footer .footer-links li {
  margin-bottom: 0.35rem;
  width: auto;
}
.site-footer .footer-links a {
  display: inline-block;
  width: auto;
  font-size: 0.95rem;
  color: #f3f4f6;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}
.site-footer .footer-links a:hover {
  color: #80f9c0;
}
.site-footer .footer-contact h4 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #ffffff;
}
.site-footer .footer-contact p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #d1d5db;
}
.site-footer .footer-contact .footer-social {
  margin-top: 0.5rem;
}
.site-footer .footer-contact .footer-social a {
  font-size: 1.25rem;
  color: #f3f4f6;
  margin-right: 0.75rem;
  transition: color 0.2s ease-in-out;
}
.site-footer .footer-contact .footer-social a:hover {
  color: #80f9c0;
}
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
}

.fullwidth-banner {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}
.fullwidth-banner img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.fullwidth-banner .banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fullwidth-banner .banner-text {
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  padding: 0 1rem;
}

.learning-section {
  justify-content: space-evenly;
  padding: 4rem 2rem;
  min-height: 300px;
  position: relative;
}
.learning-section .learning-card {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  font-family: Arial, sans-serif;
  margin-bottom: 16px;
  padding: 0 !important;
}
.learning-section .learning-card .card-left {
  flex: 0 0 40%;
}
.learning-section .learning-card .card-left img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.learning-section .learning-card .card-middle {
  flex: 1;
  padding: 14px 12px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
.learning-section .learning-card .card-middle .card-label {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.25rem;
}
.learning-section .learning-card .card-middle .card-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #ff6600;
  margin-bottom: 6px;
}
.learning-section .learning-card .card-middle .card-description,
.learning-section .learning-card .card-middle .card-attempts {
  font-size: 14px;
  color: #555;
  margin: 2px 0;
}
.learning-section .learning-card .card-middle .card-requirement {
  font-size: 12px;
  font-style: italic;
  color: #888;
  margin-bottom: 8px;
}
.learning-section .learning-card .card-middle .card-score {
  font-size: 1rem;
  color: #333;
  font-weight: 600;
}
.learning-section .learning-card .card-middle .start-button {
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  width: 100%;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s;
}
.learning-section .learning-card .card-middle .start-button.green {
  background-color: #a5e214;
  color: #000;
}
.learning-section .learning-card .card-middle .start-button.green:hover {
  background-color: #92c511;
}
.learning-section .learning-card .card-middle .start-button.orange {
  background-color: #ff9900;
  color: white;
}
.learning-section .learning-card .card-middle .start-button.orange:hover {
  background-color: #e48000;
}
.learning-section .learning-card .card-middle .start-button.resume {
  background-color: #f4c542;
  color: #333;
}
.learning-section .learning-card .card-middle .start-button.resume:hover {
  background-color: #e0b636;
}
.learning-section .learning-card .card-middle .btn.download-cert {
  display: inline-block;
  background: #eefae4;
  color: #2c7b00;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none;
  margin-top: auto;
  border: 1px solid #a5e214;
}
.learning-section .learning-card .card-right {
  flex: 0 0 30px;
  background: #e5e5e5;
  border-left: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12px;
  font-weight: bold;
  color: #333;
  letter-spacing: 0.6px;
  padding: 8px 4px;
}
.learning-section .learning-card .card-right.complete {
  background-color: #80c342 !important;
  color: white;
}
.learning-section .learning-card .card-right.incomplete {
  background-color: #e5e5e5;
  color: #333;
}

@media (max-width: 1024px) {
  .learning-section {
    padding: 2rem;
  }
  .learning-section .learning-card {
    flex-direction: column;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
  }
  .learning-section .learning-card .card-left {
    width: 100%;
    height: auto;
  }
  .learning-section .learning-card .card-left img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    -o-object-fit: cover;
       object-fit: cover;
  }
  .learning-section .learning-card .card-middle {
    padding: 1.25rem;
    padding-top: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: white;
  }
  .learning-section .learning-card .card-middle .card-title {
    font-size: 1.3rem;
    color: #ff6600;
    margin-bottom: 0.5rem;
  }
  .learning-section .learning-card .card-middle .card-description,
  .learning-section .learning-card .card-middle .card-attempts {
    font-size: 0.95rem;
    margin: 0.2rem 0;
  }
  .learning-section .learning-card .card-middle .card-requirement {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: #777;
  }
  .learning-section .learning-card .card-middle .start-button {
    font-size: 1rem;
    padding: 10px 16px;
    border-radius: 25px;
  }
  .learning-section .learning-card .card-right {
    writing-mode: horizontal-tb;
    border-left: none;
    border-top: 1px solid #ccc;
    font-size: 0.85rem;
    padding: 0.75rem 1.25rem;
    justify-content: center;
    background: #f0f0f0;
  }
}
.learning-card.border-success {
  border: 2px solid #80c342;
}

/* ============ Each Question as a Card ============ */
.sortable-block {
  background: #f9fafc;
  border: 1px solid #e1e5ea;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  transition: box-shadow 0.2s ease;
}
.sortable-block:hover {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}
.sortable-block {
  /* Question text (the label) */
}
.sortable-block > .d-flex > label {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0rem;
}
.sortable-block {
  /* Answers list */
}
.sortable-block .form-check {
  margin-bottom: 0.5rem;
}
.sortable-block .form-check .form-check-input {
  margin-right: 0.5rem;
}

/* Submit / pagination buttons */
.form-button--next,
.form-button--prev {
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  border-radius: 4px;
}

.form-button--next.btn-primary {
  background-color: #308478;
  border: none;
}
.form-button--next.btn-primary:hover {
  background-color: #246c61;
}

/* legacy incomplete modal styles intentionally retired in favor of #submitProgressModal */
/* =========================
   Media Library Page
   ========================= */
/* =========================
   Media Library Page
   ========================= */
.media-library {
  padding: 2rem;
  position: relative;
  padding-top: 3rem;
  min-height: 300px;
}
.media-library .library-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #333;
}
.media-library .media-grid {
  display: grid;
  position: relative;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  min-height: 300px;
}
.media-library .media-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease-in-out;
}
.media-library .media-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.media-library .media-card .media-thumb {
  position: relative;
}
.media-library .media-card .media-thumb .media-image {
  width: 100%;
  height: 200px;
  -o-object-fit: cover;
     object-fit: cover;
  background: #f7f7f7;
  display: block;
}
.media-library .media-card .media-thumb .video-icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  padding: 0.5rem;
}
.media-library .media-card .media-content {
  flex: 1;
  padding: 1rem;
}
.media-library .media-card .media-content .media-type {
  font-size: 0.8rem;
  font-weight: 600;
  color: #777;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}
.media-library .media-card .media-content .media-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.5rem;
}
.media-library .media-card .media-content .media-description {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.75rem;
}
.media-library .media-card .media-content .media-meta {
  font-size: 0.8rem;
  color: #888;
}
.media-library .media-card .media-content .media-meta .media-date {
  font-style: italic;
}
.media-library .media-card .media-actions {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #fafafa;
  border-top: 1px solid #eee;
}
.media-library .media-card .media-actions a,
.media-library .media-card .media-actions button {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.media-library .media-card .media-actions .btn-download {
  background: #374955;
  color: #fff;
}
.media-library .media-card .media-actions .btn-download:hover {
  background: rgb(44.9821428571, 59.7035714286, 69.5178571429);
}
.media-library .media-card .media-actions .btn-edit {
  background: #308478;
  color: #fff;
}
.media-library .media-card .media-actions .btn-edit:hover {
  background: rgb(41.2, 113.3, 103);
}
.media-library .media-card .media-actions .btn-delete {
  background: #ff7e80;
  color: #fff;
}
.media-library .media-card .media-actions .btn-delete:hover {
  background: rgb(255, 100.5, 102.8953488372);
}

.media-grid:not(:has(.media-card:not(.template))) {
  display: none;
}

.contest-slider-wrapper:not(:has(.contest-card:not(.template))) {
  display: none;
}

.contest-widget {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  overflow: hidden;
}
.contest-widget .contest-widget-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.contest-widget .contest-widget-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.contest-widget .contest-widget-info .contest-widget-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #374955;
  margin-bottom: 0.25rem;
}
.contest-widget .contest-widget-info .contest-widget-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.5rem;
}
.contest-widget .contest-widget-info .btn {
  align-self: flex-start;
  background-color: #ff7e80;
  border: none;
  font-weight: 600;
}
.contest-widget .contest-widget-info .btn:hover {
  background-color: rgb(255, 95.4, 97.8744186047);
}
.contest-widget .contest-widget-cards {
  gap: 1.25rem;
  justify-content: flex-end;
}
.contest-widget .contest-widget-cards .contest-card {
  background: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 1 calc(50% - 0.75rem);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contest-widget .contest-widget-cards .contest-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.contest-widget .contest-widget-cards .contest-card .contest-card-image {
  background-size: cover;
  background-position: center;
  aspect-ratio: 16/9;
}
.contest-widget .contest-widget-cards .contest-card .contest-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contest-widget .contest-widget-cards .contest-card .contest-card-body .contest-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374955;
  margin-bottom: 0.25rem;
}
.contest-widget .contest-widget-cards .contest-card .contest-card-body .contest-card-date {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.contest-widget .contest-widget-cards .contest-card .contest-card-body .btn-outline-primary {
  color: #308478;
  border-color: #308478;
  font-weight: 600;
}
.contest-widget .contest-widget-cards .contest-card .contest-card-body .btn-outline-primary:hover {
  background-color: #308478;
  color: #fff;
}
@media (max-width: 992px) {
  .contest-widget .contest-widget-cards {
    justify-content: center;
  }
  .contest-widget .contest-widget-cards .contest-card {
    flex: 0 1 100%;
  }
}

.rebates-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.rebates-section .rebate-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  width: 40%;
  position: relative;
}
.rebates-section .rebate-card .rebate-hero-card {
  position: relative;
  display: flex;
  width: 100%;
  height: 260px;
  overflow: hidden;
}
.rebates-section .rebate-card .rebate-hero-card .hero-img-group {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
}
.rebates-section .rebate-card .rebate-hero-card .hero-img-thumb {
  width: 90px;
  height: 90px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}
.rebates-section .rebate-card .rebate-hero-card .rebate-overlay-pill {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff7e80;
  color: #fff;
  padding: 6px 20px;
  border-radius: 50px;
  font-weight: 700;
  z-index: 5;
  font-size: 0.95rem;
}
.rebates-section .rebate-card .rebate-content {
  padding: 1.5rem;
}
.rebates-section .rebate-card .rebate-content .rebate-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.rebates-section .rebate-card .rebate-content .rebate-summary {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1rem;
}
.rebates-section .rebate-card .rebate-content .rebate-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rebates-section .rebate-card .rebate-content .rebate-meta .rebate-dates {
  font-size: 0.9rem;
}
.rebates-section .rebate-card .rebate-content .rebate-meta .rebate-dates .label {
  font-weight: 600;
  margin-right: 0.25rem;
}
.rebates-section .rebate-card .rebate-content .rebate-meta .rebate-cta {
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  background: #ff7e80;
  border: none;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease-in-out;
}
.rebates-section .rebate-card .rebate-content .rebate-meta .rebate-cta:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .rebate-card {
    width: 100%;
  }
  .rebate-card .rebate-hero {
    flex-direction: column;
    height: auto;
  }
  .rebate-card .rebate-hero .hero-img-group {
    width: 100%;
  }
  .rebate-card .rebate-hero .hero-img-thumb {
    width: 75px;
    height: 75px;
  }
}
.rebate-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}
.rebate-hero .rebate-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}
.rebate-hero .rebate-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  color: #fff;
  gap: 30px;
}
.rebate-hero .rebate-hero-inner .rebate-header-top {
  text-align: left;
  width: 100%;
}
.rebate-hero .rebate-hero-inner .rebate-header-top .rebate-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.rebate-hero .rebate-hero-inner .rebate-header-top .rebate-dates {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 30px;
}
.rebate-hero .rebate-hero-inner .rebate-columns {
  display: flex;
  width: 100%;
  gap: 40px;
}
@media (max-width: 992px) {
  .rebate-hero .rebate-hero-inner .rebate-columns {
    flex-direction: column;
    gap: 30px;
  }
}
.rebate-hero .rebate-hero-inner .rebate-columns .rebate-left {
  width: 30%;
  justify-items: left;
}
.rebate-hero .rebate-hero-inner .rebate-columns .rebate-left .rebate-offer-visual {
  display: flex;
  flex-direction: column;
}
@media (max-width: 768px) {
  .rebate-hero .rebate-hero-inner .rebate-columns .rebate-left .rebate-offer-visual {
    flex-direction: column;
    gap: 30px;
  }
}
.rebate-hero .rebate-hero-inner .rebate-columns .rebate-left .rebate-offer-visual .rebate-group {
  flex: 1;
  text-align: center;
}
.rebate-hero .rebate-hero-inner .rebate-columns .rebate-left .rebate-offer-visual .rebate-group .label {
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  font-size: 1.5rem;
}
.rebate-hero .rebate-hero-inner .rebate-columns .rebate-left .rebate-offer-visual .rebate-group .rebate-product-details {
  text-align: left;
}
.rebate-hero .rebate-hero-inner .rebate-columns .rebate-left .rebate-offer-visual .rebate-group .thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.rebate-hero .rebate-hero-inner .rebate-columns .rebate-left .rebate-offer-visual .rebate-group .rebate-thumb {
  width: 250px;
  height: 250px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.062745098);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.rebate-hero .rebate-hero-inner .rebate-columns .rebate-left .rebate-offer-visual .rebate-divider {
  font-size: 1.25rem;
  font-weight: 700;
}
.rebate-hero .rebate-hero-inner .rebate-columns .rebate-right {
  flex: 1;
  background: #ffffff;
  color: #000;
  border-radius: 12px;
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: auto;
  align-self: flex-start;
}

#rebateFormContainer {
  display: none;
}

.rebate-summary-line {
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.rebate-columns {
  display: flex;
  gap: 40px;
  width: 100%;
  margin-top: 35px;
}

.rebate-distributor-top {
  width: 100%;
  margin-top: 20px;
}

/* HORIZONTAL CARD STACK - MEDIUM OVERLAP + HOVER SLIDE */
.horizontal-stack {
  position: relative;
  height: 220px;
  width: auto;
  margin-top: 20px;
}
.horizontal-stack .thumb-wrapper {
  position: absolute;
  top: 0;
  transition: transform 0.35s ease, z-index 0.35s ease;
  cursor: pointer;
}
.horizontal-stack .rebate-thumb {
  width: 200px !important;
  height: 200px !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #111 !important;
  border: none !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease;
}
.horizontal-stack {
  /* Positioning based on index */
}
.horizontal-stack .thumb-wrapper[data-i="0"] {
  left: 0px;
  z-index: 4;
}
.horizontal-stack .thumb-wrapper[data-i="1"] {
  left: 50px;
  z-index: 3;
}
.horizontal-stack .thumb-wrapper[data-i="2"] {
  left: 100px;
  z-index: 2;
}
.horizontal-stack .thumb-wrapper[data-i="3"] {
  left: 150px;
  z-index: 1;
}
.horizontal-stack .thumb-wrapper[data-i="4"] {
  left: 200px;
  z-index: 0;
}
.horizontal-stack .thumb-wrapper:hover {
  transform: translate(-25px, -10px) scale(1.05);
  z-index: 99;
}

.rebate-divider {
  position: relative;
  z-index: 0;
  margin: 30px 0;
}

@media (max-width: 768px) {
  .horizontal-stack {
    height: auto;
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .horizontal-stack .thumb-wrapper {
    position: relative !important;
    left: 0 !important;
    transform: none !important;
    z-index: auto !important;
  }
  .horizontal-stack .rebate-thumb {
    width: 150px;
    height: 150px;
  }
}
.rebate-inline-and {
  text-align: left;
  font-weight: 700;
  margin: 4px 0 8px 0;
  color: #fff;
  opacity: 0.85;
}

.login-box::-moz-placeholder {
  color: #fff !important;
  opacity: 1;
}

.login-box::placeholder {
  color: #fff !important;
  opacity: 1;
}

.navbar-brand img {
  width: 100px;
}

/* ========================================
   ADMIN NAVBAR 
======================================== */
.admin-navbar {
  height: 64px;
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}
.admin-navbar .container-fluid {
  height: 100%;
  display: flex;
  align-items: center;
}

/* -------------------------------
   Logo Scaling
-------------------------------- */
.admin-navbar-logo-img {
  height: 48px;
  width: auto;
}

/* -------------------------------
   Right-side controls
-------------------------------- */
.admin-navbar-controls {
  display: flex;
  align-items: center;
}
.admin-navbar-controls > * {
  margin-left: 0.75rem;
}
.admin-navbar-controls .btn {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

/* -------------------------------
   Notification Bell + Dropdown
-------------------------------- */
.admin-navbar .notification-bell {
  top: 4.5rem !important;
}

/* -------------------------------
   Profile Icon
-------------------------------- */
#profileDropdown i {
  font-size: 24px;
}

.coming-soon-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(3px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}
.coming-soon-overlay span {
  font-size: 2rem;
  font-weight: 600;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.tab-pane {
  position: relative; /* ensures overlay is contained */
}

.coming-soon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(3px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  pointer-events: all; /* overlay catches interaction */
}
.coming-soon-overlay span {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
}

/* ==========================================================
   THEME VARIABLES (LIGHT + DARK MODE)
   ========================================================== */
:root {
  --bg: #f5f7fa;
  --card-bg: #ffffff;
  --card-border: #dce3ea;
  --text: #374955;
  --text-soft: #7a8790;
  --shadow: 0 8px 18px rgba(0,0,0,0.06);
  --accent-pink: #ff7e80;
  --accent-teal: #308478;
  --hero-bg-1: #ffffff;
  --hero-bg-2: #edf1f7;
}

/* LIGHT MODE */
body.theme-light {
  --bg: #f5f7fa;
  --card-bg: #ffffff;
  --card-border: #dce3ea;
  --text: #374955;
  --text-soft: #7a8790;
  --shadow: 0 8px 18px rgba(0,0,0,0.06);
  --accent-pink: #ff7e80;
  --accent-teal: #308478;
  --hero-bg-1: #ffffff;
  --hero-bg-2: #edf1f7;
}

/* DARK MODE */
body.theme-dark {
  --bg: #1e2429;
  --card-bg: rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.10);
  --text: #e5e9ee;
  --text-soft: #a3b0bb;
  --shadow: 0 10px 30px rgba(0,0,0,0.45);
  --accent-pink: #ff7e80;
  --accent-teal: #80f9c0;
  --hero-bg-1: #181c20;
  --hero-bg-2: #111416;
}

/* Smooth theme switching */
body {
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
  font-family: system-ui, sans-serif;
}

:root {
  --rebate-primary: #2f855a;
}

.rebate-upload-shell {
  margin-top: 2rem;
}

.rebate-step-heading {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Main white card */
.rebate-upload-card-simple {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.rebate-upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 1.75rem;
}
@media (max-width: 768px) {
  .rebate-upload-layout {
    grid-template-columns: 1fr;
  }
}

.rebate-upload-input {
  display: none;
}

/* Dashed box */
.rebate-dropzone-wrapper {
  width: 100%;
}

.rebate-dropzone-simple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-radius: 16px;
  border: 2px dashed #9ca3af;
  background: #f9fafb;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  height: -webkit-fill-available;
  transition: all 0.16s ease-out;
}
.rebate-dropzone-simple:hover, .rebate-dropzone-simple:focus-within {
  border-color: var(--rebate-primary);
  background: #effdf6;
  box-shadow: 0 6px 16px rgba(47, 133, 90, 0.2);
}

.rebate-dropzone-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(47, 133, 90, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rebate-dropzone-icon i {
  font-size: 1.4rem;
  color: var(--rebate-primary);
}

.rebate-dropzone-text {
  display: flex;
  flex-direction: column;
}

.rebate-dropzone-main {
  font-size: 0.98rem;
  font-weight: 600;
  color: #111827;
}

.rebate-dropzone-meta {
  font-size: 0.8rem;
  color: #6b7280;
}

.rebate-upload-aside {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.rebate-receipt-thumb {
  align-self: start;
}

.rebate-receipt-thumb-inner {
  width: 110px;
  height: 150px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 10px 8px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.rebate-receipt-line {
  height: 6px;
  border-radius: 4px;
  background: #d1d5db;
  margin-bottom: 5px;
}
.rebate-receipt-line.short {
  width: 70%;
}

.rebate-upload-tips {
  font-size: 0.84rem;
  color: #4b5563;
}
.rebate-upload-tips .rebate-upload-tip-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.rebate-upload-tips ul {
  padding-left: 1.1rem;
  margin: 0;
}
.rebate-upload-tips li + li {
  margin-top: 0.12rem;
}

.rebate-upload-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.rebate-primary-btn {
  border: none;
  background: var(--rebate-primary);
  color: #ffffff;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.8rem;
  font-size: 0.95rem;
  min-width: 190px;
  transition: background 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.05s ease-out;
}
.rebate-primary-btn:hover {
  background: #276749;
  box-shadow: 0 8px 18px rgba(39, 103, 73, 0.35);
  transform: translateY(-1px);
}
.rebate-primary-btn:active {
  background: #22543d;
  box-shadow: none;
  transform: translateY(0);
}

.rebate-upload-status {
  font-size: 0.83rem;
  min-height: 1.1em;
}
.rebate-eligible-preview {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem 1.1rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}
.rebate-eligible-preview .rebate-eligible-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.rebate-eligible-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.rebate-eligible-section-title {
  font-weight: 700;
  margin: 0 0 10px 0;
}

#rebateUploadCard .rebate-upload-status#rebateUploadStatus {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  line-height: 1.35;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #f7f9fc;
  color: #223;
}
#rebateUploadCard .rebate-upload-status#rebateUploadStatus.is-info {
  background: #eef6ff;
  border-color: rgba(20, 90, 160, 0.25);
  color: #0b2b4a;
}
#rebateUploadCard .rebate-upload-status#rebateUploadStatus.is-success {
  background: #eefaf3;
  border-color: rgba(35, 140, 90, 0.25);
  color: #0f3b27;
}
#rebateUploadCard .rebate-upload-status#rebateUploadStatus.is-error {
  background: #fff0f1;
  border-color: rgba(190, 30, 45, 0.25);
  color: #5b1217;
}

.rebate-eligible-card {
  flex: 1 1 100%;
  border-radius: 14px;
  width: 95%;
  padding: 0.75rem 0.85rem;
  background: #f9fafb;
  border: 1px solid rgba(148, 163, 184, 0.8);
  cursor: pointer;
  transition: all 0.16s ease-out;
}
.rebate-eligible-card:hover {
  border-color: var(--rebate-primary);
  background: #effdf6;
  box-shadow: 0 4px 10px rgba(47, 133, 90, 0.18);
}
.rebate-eligible-card.selected {
  border-color: var(--rebate-primary);
  background: #e6fbf1;
  box-shadow: 0 0 0 1px rgba(47, 133, 90, 0.6), 0 6px 14px rgba(47, 133, 90, 0.25);
}
.rebate-eligible-card.rebate-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.rebate-eligible-card.rebate-disabled:hover {
  transform: none;
  box-shadow: none;
}

.rebate-eligible-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.rebate-eligible-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #374151;
  background: #dcfce7;
}

.rebate-card-selected-tag {
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
  color: rgb(22, 101, 52);
  font-weight: 700;
  font-size: 0.85rem;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  pointer-events: none;
}

.rebate-eligible-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
}

.rebate-eligible-summary {
  font-size: 0.8rem;
  color: #6b7280;
}

.rebate-step-actions .btn {
  min-width: 130px;
}

.rebate-purchases-shell {
  max-width: 1000px;
  margin: 0 auto;
}

.rebate-step-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 1.25rem;
}

.rebate-summary-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 35, 52, 0.08);
  margin-bottom: 1.5rem;
}

.rebate-summary-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 900px) {
  .rebate-summary-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rebate-summary-item {
  min-width: 0;
}

.summary-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.summary-input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0.55rem 0.9rem;
  font-size: 0.875rem;
  line-height: 1.2;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.summary-input:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.16);
}

.rebate-items-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

.rebate-items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}
.rebate-items-header .items-header-title {
  font-size: 1rem;
  font-weight: 600;
}

.rebate-add-item-btn {
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: #e0f2fe;
  color: #1d4ed8;
  cursor: pointer;
  transition: background 0.15s ease-out, transform 0.05s ease-out;
}
.rebate-add-item-btn:hover {
  background: #bfdbfe;
  transform: translateY(-1px);
}

.rebate-items-table {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.rebate-items-table-head,
.rebate-items-row {
  display: grid;
  grid-template-columns: 3.5fr 0.9fr 1.3fr 1.3fr 40px;
  -moz-column-gap: 0.5rem;
       column-gap: 0.5rem;
  align-items: center;
}

.rebate-items-table-head {
  background: #f9fafb;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.rebate-items-table-body {
  max-height: 320px;
  overflow-y: auto;
}

.rebate-items-row {
  padding: 0.4rem 0.75rem;
  border-top: 1px solid #e5e7eb;
}
.rebate-items-row:nth-child(odd) {
  background: #ffffff;
}
.rebate-items-row:nth-child(even) {
  background: #f9fafb;
}

/* Inputs */
.rebate-item-input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 0.3rem 0.5rem;
  font-size: 0.88rem;
}
.rebate-item-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.rebate-item-remove {
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
}
.rebate-item-remove:hover {
  color: #ef4444;
}

.rebate-items-empty {
  padding: 0.7rem 0.9rem 0.8rem;
  font-size: 0.85rem;
  color: #6b7280;
  display: none;
}

.rebate-items-note {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: #6b7280;
}

.rebate-wizard .rebate-steps-bar {
  display: flex;
  align-items: stretch;
  background: #0b3a2f;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  overflow: hidden;
}
.rebate-wizard .rebate-step-tab {
  position: relative;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.rebate-wizard .rebate-step-tab:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}
.rebate-wizard .rebate-step-tab.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.rebate-wizard .rebate-step-tab.is-complete {
  color: #ffffff;
}
.rebate-wizard .rebate-step-tab:disabled {
  opacity: 0.4;
  cursor: default;
}
.rebate-wizard .rebate-step-tab .step-status {
  display: flex;
  align-items: center;
}
.rebate-wizard .rebate-step-tab .step-circle {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.25rem;
}
.rebate-wizard .rebate-step-tab.is-active .step-circle, .rebate-wizard .rebate-step-tab.is-complete .step-circle {
  border-color: #7fd9a3;
  background: #7fd9a3;
}
.rebate-wizard .rebate-step-tab .step-index,
.rebate-wizard .rebate-step-tab .step-check {
  font-size: 0.75rem;
  line-height: 1;
  color: #ffffff;
}
.rebate-wizard .rebate-step-tab .step-check {
  display: none;
}
.rebate-wizard .rebate-step-tab.is-complete .step-check {
  display: inline;
}
.rebate-wizard .rebate-step-tab.is-complete .step-index {
  display: none;
}
.rebate-wizard .rebate-step-tab .step-label {
  white-space: nowrap;
}

.rebate-step1-nudge {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(25, 135, 84, 0.25);
  background: rgba(25, 135, 84, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}
.rebate-step1-nudge__icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(25, 135, 84, 0.14);
  flex: 0 0 auto;
}
.rebate-step1-nudge__icon i {
  font-size: 18px;
}
.rebate-step1-nudge__content {
  flex: 1 1 auto;
  min-width: 0;
}
.rebate-step1-nudge__title {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
}
.rebate-step1-nudge__text {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.25;
}
.rebate-step1-nudge__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  opacity: 0.9;
  flex: 0 0 auto;
  display: none;
}

#rebateStep1NextBtn.is-attention {
  position: relative;
  animation: rebatePulse 1.4s ease-in-out infinite;
}
#rebateStep1NextBtn.is-attention:focus, #rebateStep1NextBtn.is-attention:hover {
  animation: none;
}

@keyframes rebatePulse {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
  100% {
    transform: translateY(0);
  }
}
.rebate-receipts-list-wrap {
  margin-top: 14px;
  padding-top: 8px;
}

.rebate-receipts-list-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.rebate-receipts-list-title {
  font-weight: 700;
}

.rebate-receipts-list-subtitle {
  font-size: 0.92rem;
  opacity: 0.8;
}

.rebate-receipts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rebate-receipt-row {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.rebate-receipt-row:hover {
  border-color: rgba(0, 0, 0, 0.22);
}
.rebate-receipt-row.is-active {
  border-color: rgba(13, 110, 253, 0.45);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}
.rebate-receipt-row__left {
  flex: 1 1 auto;
  min-width: 0;
}
.rebate-receipt-row__title {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rebate-receipt-row__meta {
  font-size: 0.92rem;
  opacity: 0.8;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.rebate-receipt-row__right {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.rebate-receipt-row__btn {
  border: none;
  background: transparent;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 8px;
}
.rebate-receipt-row__btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.rebate-pill {
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.04);
}
.rebate-pill.is-success {
  border-color: rgba(25, 135, 84, 0.25);
  background: rgba(25, 135, 84, 0.1);
}
.rebate-pill.is-error {
  border-color: rgba(220, 53, 69, 0.25);
  background: rgba(220, 53, 69, 0.1);
}
.rebate-pill.is-info {
  border-color: rgba(13, 202, 240, 0.25);
  background: rgba(13, 202, 240, 0.12);
}

.rb-why-eligible {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.rb-why-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
}

.rb-why-items {
  margin: 0;
  padding-left: 18px;
}

.rb-why-items li {
  margin: 4px 0;
  font-size: 13px;
}

.rb-meta {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  color: #64748b;
}

/* ============================= */
/* Rebate Card Layout            */
/* ============================= */
.rebate-card-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.rebate-card-image {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #f4f6f8;
}
.rebate-card-image .rebate-image {
  max-width: 300px;
}

.rebate-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
}

/* ============================= */
/* Right-side content            */
/* ============================= */
.rebate-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rebate-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rebate-card-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.rebate-card-summary {
  font-size: 0.9rem;
  color: #5f6b7a;
}

.rebate-card-reward {
  font-weight: 600;
}

/* ============================= */
/* Qualifying items              */
/* ============================= */
.rebate-card-qualifies {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.rebate-card-qualifies-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.rebate-card-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rebate-card-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.rebate-card-item-icon {
  font-size: 1rem;
  line-height: 1.2;
}

.rebate-card-item-name {
  font-size: 0.9rem;
}

.rebate-card-item-code {
  font-size: 0.8rem;
  color: #6b7280;
}

.rb-rebate-card .rebate-card-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rb-rebate-card .rebate-card-top .rb-rebate-card-select {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.rb-rebate-card .rebate-card-top .rb-rebate-card-select {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  border-bottom: 2px dashed green;
  padding-bottom: 1rem;
}

.rb-rebate-card-select {
  position: relative;
}

.rebate-eligible-card.selected .rb-rebate-card-select::after {
  content: "✓\aRebate selected";
  white-space: pre;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.95);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.45);
  pointer-events: none;
  z-index: 5;
}

.rb-rebate-card .rebate-card-bottom {
  width: 100%;
}

@media (max-width: 768px) {
  .rb-rebate-card .rebate-card-top .rb-rebate-card-select {
    grid-template-columns: 1fr;
  }
}
.rb-receipt-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: #fff;
  margin: 10px 0 8px;
}

.rb-receipt-summary-file {
  font-weight: 700;
}

.rb-receipt-summary-meta {
  display: flex;
  gap: 10px;
  color: #64748b;
  font-size: 12px;
  margin-top: 2px;
}

.rb-receipt-summary-total {
  font-weight: 700;
}

.rb-promo-receipt-group {
  padding-bottom: 10px;
}

.rb-receipt-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  margin: 12px 0 6px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-left: 4px solid #22c55e;
  border-radius: 8px;
}

.rb-receipt-summary-file {
  font-weight: 700;
  font-size: 14px;
}

.rb-receipt-summary-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #64748b;
}

.rb-receipt-summary-total {
  font-weight: 700;
  font-size: 14px;
}

.rb-promo-receipt-group .rebate-items-row {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 2px dashed rgba(15, 23, 42, 0.08);
}

.rb-promo-context-label {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
}

.rb-promo-receipts-summary {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.rb-promo-receipts-summary__title {
  font-weight: 600;
  font-size: 13px;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.rb-promo-receipts-summary__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rb-promo-receipt-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-left: 4px solid rgba(34, 197, 94, 0.9);
  border-radius: 10px;
}

.rb-promo-receipt-chip__label {
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
  line-height: 1.1;
}

.rb-promo-receipt-chip__meta {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.rb-dot {
  opacity: 0.65;
}

.rb-promo-receipt-chip__total {
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
  white-space: nowrap;
}

.rb-typeahead-menu {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  max-height: 240px;
  overflow: auto;
  padding: 6px;
}

.rb-typeahead-item {
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.rb-typeahead-item:hover {
  background: rgba(15, 23, 42, 0.06);
}

.rb-typeahead-name {
  font-weight: 700;
}

.rb-typeahead-meta {
  font-size: 12px;
  opacity: 0.75;
  margin-top: 2px;
}

.rb-typeahead-empty {
  padding: 10px;
  opacity: 0.7;
}

.rb-typeahead-menu {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  max-height: 280px;
  overflow: auto;
  padding: 6px;
}

.rb-typeahead-item {
  padding: 10px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.rb-typeahead-item:hover {
  background: rgba(0, 0, 0, 0.06);
}

.rb-typeahead-name {
  font-weight: 600;
  line-height: 1.2;
}

.rb-typeahead-meta {
  font-size: 12px;
  opacity: 0.75;
  margin-top: 2px;
}

.rb-typeahead-empty {
  padding: 10px;
  font-size: 13px;
  opacity: 0.7;
}

#rbStep2TotalsSummary {
  display: none;
}

#rbStep2ReceiptsHome {
  display: none;
}

.navbar-receipt {
  height: 54px;
  width: 100%;
  background: linear-gradient(180deg, #0f5e5f 0%, #0b4f50 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.navbar-receipt__inner {
  height: 100%;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-receipt__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.navbar-receipt__logo {
  height: 28px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.25));
}
.navbar-receipt__nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.navbar-receipt__link {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 8px 6px;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}
.navbar-receipt__link:hover, .navbar-receipt__link:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}
@media (max-width: 520px) {
  .navbar-receipt__inner {
    padding: 0 12px;
  }
  .navbar-receipt__nav {
    gap: 14px;
  }
  .navbar-receipt__link {
    font-size: 13px;
  }
}

.hero-receipt {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-receipt__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.38) 70%), url(/bank/content/images/Blog-image-Multi-Level-Garden-Design.jpg);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero-receipt__content {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 80px 20px 40px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-receipt__title {
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  font-size: clamp(36px, 4.5vw, 58px);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hero-receipt__subtitle {
  max-width: 640px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 28px;
  font-size: clamp(16px, 1.6vw, 20px);
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.hero-receipt__actions {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-receipt__cta {
  width: 100%;
  max-width: 320px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #57b861;
  color: #ffffff;
  padding: 18px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  transition: background 0.15s ease, transform 0.08s ease;
}
.hero-receipt__cta:hover, .hero-receipt__cta:focus-visible {
  background: #4aa954;
  outline: none;
}
.hero-receipt__cta:active {
  transform: translateY(1px);
}
.hero-receipt__cta-icon {
  margin-left: 10px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 6px;
}
.hero-receipt__cta-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}
.hero-receipt__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.78);
  color: rgba(0, 0, 0, 0.75);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  max-width: 260px;
  transition: background 0.15s ease;
}
.hero-receipt__secondary:hover, .hero-receipt__secondary:focus-visible {
  background: rgba(255, 255, 255, 0.88);
  outline: none;
}
.hero-receipt .hero-receipt__partners {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.hero-receipt .hero-receipt__partners-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-receipt .hero-receipt__partners-inner img {
  height: 75px;
  max-height: 75px;
  width: auto;
  display: block;
  opacity: 1;
  filter: none;
}
.hero-receipt .hero-receipt__terms {
  margin-left: 16px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.65);
}
.hero-receipt .hero-receipt__terms:hover {
  text-decoration: underline;
}
@media (max-width: 900px) {
  .hero-receipt .hero-receipt__partners-inner {
    gap: 28px;
  }
  .hero-receipt .hero-receipt__partners-inner img {
    height: 36px;
    max-height: 36px;
  }
}
@media (max-width: 560px) {
  .hero-receipt .hero-receipt__partners-inner {
    padding: 16px 16px;
    gap: 20px;
  }
  .hero-receipt .hero-receipt__partners-inner img {
    height: 26px;
    max-height: 26px;
  }
}

.rb-view-hidden {
  display: none !important;
}

@media (max-width: 680px) {
  .rebate-wizard .rebate-steps-bar {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 999px;
    padding: 0.4rem 0.6rem;
    scrollbar-width: none;
  }
  .rebate-wizard .rebate-steps-bar::-webkit-scrollbar {
    display: none;
  }
  .rebate-wizard .rebate-step-tab {
    flex: 0 0 auto;
    padding: 0.45rem 0.6rem;
    font-size: 0.85rem;
  }
  .rebate-wizard .rebate-step-tab .step-label {
    white-space: nowrap;
    font-size: 0.82rem;
  }
  .rebate-wizard .rebate-step-tab .step-circle {
    width: 22px;
    height: 22px;
    margin-right: 0.2rem;
  }
  .rebate-wizard .rebate-step-tab:not(:last-child)::after {
    top: 30%;
    bottom: 30%;
  }
}

.rebate-thank-you {
  background: #f6fafc;
}
.rebate-thank-you-card {
  max-width: 720px;
  background: #ffffff;
  border-radius: 16px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}
.rebate-thank-you-icon {
  font-size: 3rem;
  color: #2f8f6b;
  margin-bottom: 1rem;
}
.rebate-thank-you-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.rebate-thank-you-lead {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 2rem;
}
.rebate-thank-you-processing-note {
  color: #666;
  margin-bottom: 2.5rem;
}
.rebate-thank-you-actions .btn {
  min-width: 180px;
}
.rebate-thank-you .rebate-confirmation-box {
  border: 1px dashed #cfe6dd;
  background: #f2fbf7;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.rebate-thank-you .rebate-confirmation-box .confirmation-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4b7f6c;
  margin-bottom: 0.5rem;
}
.rebate-thank-you .rebate-confirmation-box .confirmation-code {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1f5f4a;
}
.rebate-thank-you .rebate-confirmation-box .confirmation-note {
  font-size: 0.85rem;
  color: #6b8f82;
  margin-top: 0.25rem;
}

/* =====================================================
   REBATE UPLOAD ENHANCEMENTS - FIXED
   Bold spinner overlay + improved status messages
   ===================================================== */
/* -----------------------------------------------------
   1. FULL-CARD LOADING OVERLAY
   ----------------------------------------------------- */
.rebate-upload-card-simple {
  position: relative;
}

.rebate-upload-overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border-radius: inherit;
  padding: 40px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.rebate-overlay-spinner {
  width: 80px;
  height: 80px;
  border: 6px solid #e9ecef;
  border-top-color: #0d6efd;
  border-radius: 50%;
  animation: rebate-spin 0.9s linear infinite;
}

@keyframes rebate-spin {
  to {
    transform: rotate(360deg);
  }
}
.rebate-overlay-title {
  font-size: 24px;
  font-weight: 700;
  color: #212529;
  margin: 0;
  line-height: 1.3;
}

.rebate-overlay-subtitle {
  font-size: 16px;
  font-weight: 500;
  color: #6c757d;
  margin: 0;
  max-width: 360px;
}

.rebate-overlay-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #f8f9fa;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #495057;
}

.rebate-overlay-progress-dot {
  width: 10px;
  height: 10px;
  background: #0d6efd;
  border-radius: 50%;
  animation: rebate-pulse 1.2s ease-in-out infinite;
}

@keyframes rebate-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}
/* -----------------------------------------------------
   2. ENHANCED STATUS MESSAGES
   ----------------------------------------------------- */
.rebate-upload-status {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  transition: all 0.25s ease;
}
.rebate-upload-status:empty, .rebate-upload-status[hidden] {
  display: none !important;
}
.rebate-upload-status:not(:empty) {
  display: block;
}
.rebate-upload-status.is-info {
  background: linear-gradient(135deg, #e7f1ff 0%, #d0e3ff 100%);
  border: 2px solid #0d6efd;
  color: #084298;
}
.rebate-upload-status.is-info::before {
  content: "ℹ️ ";
}
.rebate-upload-status.is-info.is-processing {
  animation: rebate-status-pulse 2s ease-in-out infinite;
}
.rebate-upload-status.is-success {
  background: linear-gradient(135deg, #d1e7dd 0%, #badbcc 100%);
  border: 2px solid #198754;
  color: #0f5132;
}
.rebate-upload-status.is-success::before {
  content: "✅ ";
}
.rebate-upload-status.is-error {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c2c7 100%);
  border: 2px solid #dc3545;
  color: #842029;
}
.rebate-upload-status.is-error::before {
  content: "⚠️ ";
}

@keyframes rebate-status-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(13, 110, 253, 0);
  }
}
/* -----------------------------------------------------
   3. STEP 1 NUDGE ENHANCEMENTS
   ----------------------------------------------------- */
#rebateStep1Nudge {
  padding: 20px 24px;
  border-radius: 14px;
  margin-top: 20px;
  border-width: 2px;
  border-style: solid;
}

#rebateStep1Nudge.is-info {
  background: linear-gradient(135deg, #e7f1ff 0%, #cfe2ff 100%);
  border-color: #0d6efd;
}

#rebateStep1Nudge.is-success {
  background: linear-gradient(135deg, #d1e7dd 0%, #a3cfbb 100%);
  border-color: #198754;
}

#rebateStep1Nudge.is-error {
  background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
  border-color: #dc3545;
}

#rebateStep1NudgeTitle {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

#rebateStep1NudgeText {
  font-size: 15px;
  font-weight: 500;
  opacity: 0.9;
}

/* -----------------------------------------------------
   4. RECEIPT ROW STATUS PILLS (enhanced)
   ----------------------------------------------------- */
.rebate-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rebate-pill.is-info {
  background: #0d6efd;
  color: #fff;
  animation: rebate-pill-pulse 1.5s ease-in-out infinite;
}
.rebate-pill.is-success {
  background: #198754;
  color: #fff;
}
.rebate-pill.is-error {
  background: #dc3545;
  color: #fff;
}

@keyframes rebate-pill-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
.rebate-upload-card-simple.is-uploading .rebate-upload-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.rebate-upload-card-simple {
  /* -----------------------------------------------------
     5. DISABLED CARD STATE (email gate)
     ----------------------------------------------------- */
}
.rebate-upload-card-simple[aria-disabled=true] .rebate-dropzone-simple {
  pointer-events: none;
  cursor: not-allowed;
}
.rebate-upload-card-simple[aria-disabled=true] #rebateGateView {
  pointer-events: auto;
  opacity: 1;
}
.rebate-upload-card-simple[aria-disabled=true] #rebateGateView input,
.rebate-upload-card-simple[aria-disabled=true] #rebateGateView button {
  pointer-events: auto;
}

/* =====================================================
   STEP 1 VALIDATION STYLES
   Add these to your existing CSS
   ===================================================== */
/* -----------------------------------------------------
   Missing field indicators
   ----------------------------------------------------- */
/* Field wrapper when missing */
.rb-meta-field.is-missing input {
  border-color: #dc3545 !important;
  background-color: #fff8f8;
}

.rb-meta-field.is-missing input:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
  background-color: #fff;
}

/* "Required" badge next to input */
.rb-field-required {
  display: inline-block;
  color: #dc3545;
  font-size: 10px;
  font-weight: 700;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  background: rgba(220, 53, 69, 0.1);
  border-radius: 4px;
  vertical-align: middle;
}

/* Warning indicator on row title */
.rb-row-warning {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #dc3545;
  margin-left: 8px;
  padding: 2px 8px;
  background: rgba(220, 53, 69, 0.1);
  border-radius: 6px;
}

/* Receipt row with missing fields */
.rebate-receipt-row.has-missing-fields {
  border-color: rgba(220, 53, 69, 0.3);
  background: linear-gradient(135deg, #fff 0%, #fff8f8 100%);
}

.rebate-receipt-row.has-missing-fields:hover {
  border-color: rgba(220, 53, 69, 0.5);
}

/* -----------------------------------------------------
   Better meta field layout
   ----------------------------------------------------- */
.rb-meta-field {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.rb-meta-field strong {
  white-space: nowrap;
}

/* -----------------------------------------------------
   Pulse animation on Continue button when ready
   ----------------------------------------------------- */
#rebateStep1NextBtn:not(:disabled) {
  animation: step1-ready-pulse 2s ease-in-out infinite;
}

#rebateStep1NextBtn:not(:disabled):hover {
  animation: none;
}

@keyframes step1-ready-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(13, 110, 253, 0);
  }
}
/* -----------------------------------------------------
   Enhanced disabled button state
   ----------------------------------------------------- */
#rebateStep1NextBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #6c757d;
  border-color: #6c757d;
}

/* -----------------------------------------------------
   Error nudge enhancement
   ----------------------------------------------------- */
#rebateStep1Nudge.is-error {
  animation: nudge-shake 0.5s ease-in-out;
}

@keyframes nudge-shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-4px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(4px);
  }
}/*# sourceMappingURL=style.css.map */