
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body,#root { height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: #050506;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
    justify-content: center;
    align-items: center;
}

.page {
    /* min-height: 100vh; */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hero {
  height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  /* background: #000; */
}
.win-text {
    display: flex;
    flex-direction: column;
    text-align: center;
    text-transform: uppercase;
}
.win-an {
  padding-top: 10px;
  font-size: 1.3rem;
  font-weight: 700;
}
.win-yellow {
  font-size: 1.3rem;
  font-weight: 700;
  color: #D9CE60;
}
.hero-img {
  height: 80%;
  width: auto;
  object-fit: cover;
  display: block;
}

.lower-section {
  height: 50%;
}
.form-area {
  height: 80%;
  display: flex;
  justify-content: center;
  /* padding: 24px; */
}

/* Card */
.card {
  width: 90%;
  background: rgba(34,34,34,0.95);
  border-radius: 12px;
  box-sizing: border-box;
  /* padding: 28px; */
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  color: #e6e6e6;
  display: flex;
  justify-content: center;
  align-items: center;
}

.success-form {
  min-width: 100%;
  
}

.success-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: white;
  color: black;
  padding: 15px 25px;
  border-radius: 12px;
  text-align: center;
}

#successTitle {
  padding: 8px 0;
  font-weight: 500;
}
#successText {
  padding-bottom: 5px;
}

.success-entries {
  margin-bottom: 5px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
}
.success-entries strong {
  padding-right: 30px;
  font-weight: 400;
}
.success-details p span {
  padding-bottom: 0px;
}
.success-div {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-bottom: 10px;
  font-weight: 100;
}
.success-price {
  font-weight: 500;
  /* margin-left: 10px; */
}

#playAgain {
  background-color: #F85601;
}


#entryForm {
  width: 100%;
  padding: 15px 25px;
}

.card-title {
  text-align: center;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

#entryForm {
}

/* Form fields */
.field {
    display: block;
    /* margin-bottom: 10px; */
}
/* phone input row: fixed +234 prefix, flexible input, example hint */
.phone-row {
  display: flex;
  align-items: center;
}

/* fixed prefix */
.prefix {
  flex: 0 0 56px;           /* fixed width for +234 */
  /* height: 40px; */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #444;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  font-size: 0.75rem;
  padding: 8px 0;
  /* background: rgba(255,255,255,0.02); */
  color: #fff;
  /* font-weight: 700; */
}

/* the user's input (local 10 digits) */
.phone-row input[type="tel"] {
  flex: 1 1 auto;
  /* height: 40px; */
  padding: 8px 10px 8px 0;
  border-radius: 0 4px 4px 0;
  background: transparent;
  border: 1px solid #444;
  border-left: 0;
  color: #fff;
  font-size: 0.75rem;
  outline: none;
}

.label-text {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #cfcfcf;
}
input[type="tel"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid #444;
  color: #fff;
  outline: none;
  font-size: 14px;
}
input[type="tel"]::placeholder {
    color: #8d8d8d;
    font-size: 0.65rem;
}

/* Entries row */
.entries-row {
  display: flex;
  flex-direction: column;
}

.entries-controls {
  display: flex;
  justify-content: space-between; /* ctr left, price right */
  align-items: center;
}


.entries-control { display:flex; flex-direction:column; }
.ctr { display:flex; align-items:center; }
.ctr button {
  width: 30px;
  height: 30px;
  /* border-radius: 4px; */
  border:1px solid #555;
  background: transparent;
  color:#fff;
  font-size: 16px;
  cursor:pointer;
}
.ctr button:active { transform: translateY(1px); }
.count {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
  background: rgba(255,255,255,0.02);
  border: 1px solid #555;
  height: 30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* Price */
.price {
  font-size:22px;
  font-weight:700;
  color:#fff;
  height: 100%;
  /* background-color: pink; */
}

/* Terms */
.terms {
  display:flex;
  align-items:flex-start;
  gap:12px;
  font-size:10px;
  color:#cfcfcf;
  margin: 8px 0 5px;
}
.terms input[type="checkbox"] { width:16px; height:16px; accent-color: #BF1923; }
.terms a { color:#fff; text-decoration: underline; }

/* Errors */
.error {
    color: #ffb3b3;
    font-size: 10px;
    height: 10px;
    display: block;
    margin-top: 3px;
    margin-bottom: 8px;
}

/* Primary button */
.primary {
  width:100%;
  padding:10px 18px;
  background:#BF1923;
  border:none;
  color:#fff;
  font-weight:700;
  letter-spacing:1px;
  border-radius:10px;
  cursor:pointer;
  font-size: 16px;
}
.primary:hover {
  color: white;
  background-color: #f85701a2;
  font-size: 14px;
  letter-spacing: 2px;
}
.primary:active { transform:translateY(3px); }

.logos {
  height: 20%;
  display: flex;
  justify-content: center;   /* center horizontally */
  align-items: center;       /* align vertically */
  gap: 20px;                /* spacing between logos */
  padding: 10px 0;          /* space above logos */
}

.logos img {
  max-width: 100px;   /* adjust this to control size */
  height: auto;       /* keeps aspect ratio */
}

/* Modal background */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

/* Modal content */
.modal-content {
  background: #222;
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 500px;
  text-align: left;
  position: relative;
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

/* modal overlay (centered) */
.modal {
  display: none;               /* shown via JS (style.display='flex' or add .open) */
  position: fixed;
  inset: 0;                    /* top:0; right:0; bottom:0; left:0; */
  z-index: 1000;
  background: rgba(0,0,0,0.65);
  align-items: center;
  justify-content: center;
  padding: 24px;               /* keeps modal content off the viewport edges */
}

/* modal inner box: fixed area with scrollable content */
.modal-content {
  width: 100%;
  max-width: 760px;                         /* control overall width */
  max-height: calc(100vh - 120px);          /* fixed area: viewport minus margins */
  background: #161616;
  color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
  overflow: hidden;                         /* prevent outer scroll — inner element scrolls */
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* the scrolling region inside the modal */
.terms-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 6px;              /* avoids text colliding with scrollbar visually */
  line-height: 1.5;
  font-size: 14px;
}

/* visually constrain headings so title stays visible */
.modal-content h2 {
  margin: 0 0 6px 0;
  font-size: 18px;
}

/* Close button at top-right inside modal */
.modal-content .close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* show a thin custom scrollbar on WebKit (optional) */
.terms-body::-webkit-scrollbar { width: 8px; }
.terms-body::-webkit-scrollbar-track { background: transparent; }
.terms-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 6px; }

/* When modal open, prevent document body from scrolling — .no-scroll toggled via JS */
body.no-scroll {
  overflow: hidden;
}

#playAgain {
  width: 80%;
}
.playAgain:hover {
  color: white;
  background-color: #bf1924cb;
}

/* Toast (error) */
.toast-container {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 28px;
  z-index: 2000;
  min-width: 280px;
  max-width: 90%;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  border-radius: 10px;
  overflow: hidden;
  font-size: 14px;
  color: #fff;
  animation: toast-enter .18s ease-out;
}

.toast {
  background: linear-gradient(180deg, rgba(191,25,35,0.96), rgba(153,18,27,0.96));
  padding: 14px 16px;
}

.toast h4 {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.toast ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.35;
}

.toast ul li { margin-bottom: 6px; }

.toast .close-toast {
  position: absolute;
  right: 10px;
  top: 8px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  cursor: pointer;
}

/* subtle enter animation */
@keyframes toast-enter {
  from { transform: translate(-50%, 16px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* Toast container (fixed at top-right) */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Toast box */
.toast {
  background: #f44336; /* red for error */
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  animation: slideIn 0.3s ease, fadeOut 0.5s ease 4.5s forwards;
  max-width: 300px;
  word-wrap: break-word;
}

/* Bullet list inside toast */
.toast ul {
  margin: 0;
  padding-left: 20px;
}

/* Animation */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}



@media (min-width: 800px) and (max-width: 1024px) {
  .card {
    width: 60%;
  }
}
@media (max-width: 799px) {
  .card {
    width: 75%;
  }
  /* #entryForm {
    padding: 5px 10px;
  } */
}
@media (max-width: 599px) {
  .card {
    width: 90%;
  }
  .logos img {
    max-width: 60px;   /* adjust this to control size */
    height: auto;       /* keeps aspect ratio */
  }
  .form-area {
    height: 75%;
  }
  .logos {
    height: 25%;
  }
  .hero {
    height: 40vh;
  }
  .lower-section {
    /* height: 50vh; */
  }
}
@media (max-width: 400px) {
  .form-area {
    max-height: 60%;
  }
  .logos {
    height: 15%;
    max-height: 15%;
  }
}

/* Responsive tweaks for toast (smaller on small screens) */
@media (max-width: 600px) {
  /* move toast a little closer to the corner and reduce gaps */
  #toast-container {
    top: 12px;
    right: 12px;
    gap: 8px;
  }

  .toast {
    max-width: 260px;       /* slightly narrower */
    padding: 10px 12px;     /* less padding */
    font-size: 0.85rem;     /* smaller text */
    border-radius: 8px;
  }

  .toast ul {
    padding-left: 16px;
  }

  .close-toast {
    top: 6px;
    right: 8px;
    font-size: 16px;
  }
}

/* Very small phones: let toast use most of screen width with small margins */
@media (max-width: 360px) {
  #toast-container {
    top: 10px;
    right: 8px;
    left: 8px;              /* allow it to fill horizontally with margins */
    gap: 6px;
  }

  .toast {
    max-width: none;
    width: auto;
    padding: 9px 10px;
    font-size: 0.82rem;
    box-shadow: 0 1px 8px rgba(0,0,0,0.25);
  }

  .toast ul {
    padding-left: 14px;
  }
}

@media (max-width: 460px) {
  #successTitle {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }
  #successText {
    font-size: 0.75rem;
  }
  .success-entries {
    font-size: 0.75rem;
  }
  .success-details p span {
    padding-bottom: 0px;
  }
  .success-div {
    font-size: 0.75rem;
  }
}