/* styles.css — FINAL REDUCED VERSION (Unused code deleted based on HTML analysis) */

/* ===== Variables & base ===== */
:root{
  --container-max: 1100px;
  --fallback-bg: #27765B; /* provided fallback color */
  --text-white: #ffffff;
  --gap: 40px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin:0;
  padding:0;
  min-height:100vh;
  background-color: var(--fallback-bg); /* fallback if images don't load */
  color: var(--text-white);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Container sizing used for centered content */
.container{
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}



/* ---------------------- */
/* LOGO AREA IMPROVEMENTS (The active header used in all HTML files) */
/* ---------------------- */

.top-header {
  text-align: center;
  margin-top: 10px;    /* spacing */
}

.logo-main {
  width: 320px;      /* controlled size */
  margin: 0 auto 0px;  /* very small spacing below logo */
  display: block;
}

.global-partner {
  color: #ffffff;
  font-size: 10px;
  margin: 0 0 24px;    /* reduced spacing after text */
  opacity: 0.9;
  letter-spacing: 0.5px;
}

@media (max-width: 767px) {
  .logo-main {
    width: 180px;
  }
}

/* ------------------------- */
/* MAIN HEADING + SUBHEADING */
/* ------------------------- */

.hero-text {
  text-align: center;
  color: white;
  max-width: 92%;
  margin: 0 auto;
}

.main-heading {
  font-family: "Lato", sans-serif;
  font-size: 16px;    /* Desktop size */
  font-weight: 700;
  margin: 0 0 4px;
  color: #ffffff;
}

/* Mobile size adjustment */
@media (max-width: 767px) {
  .main-heading {
    font-size: 14px;  /* Mobile size */
  }
}


/* Subheading each line */
.subheading {
  font-size: 14px;
  margin: 4px 0;    /* consistent spacing */
  color: #ffffff;
}

.subheading .bold, .bold {
  font-weight: 400;
}

.subheading .italic, .italic {
  font-style: italic;
}

.thnx-body { /* Used on success.html */
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 10px;
  color: white;
  letter-spacing: 0.5px;
}

/* ----------------------------- */
/* GOLD FADE SEPARATOR STYLE   */
/* ----------------------------- */

.gold-separator {
  height: 1px;
  width: 100%;
  max-width: 300px;
  margin: 4px auto;

  background: linear-gradient(
    to right,
    rgba(243, 207, 163, 0) 0%,
    rgba(243, 207, 163, 0.8) 50%,
    rgba(243, 207, 163, 0) 100%
  );
}


/* --------------------------------------------------------
 OFFER / WINNINGS SECTION LAYOUT
--------------------------------------------------------- */

.offer-section {
  display: flex;
  gap: 10px;
  margin: 20px auto 20px;
  align-items: center;
}

.offer-left {
  width: 55%;  /* Left side 60–70% */
}

/* offer-right column is used as the container for the form */
.offer-right {
  width: 45%;  /* Right side 30–40% */
}

/* --------------------------------------------------------
 WINNING BLOCKS (Used on index.html)
--------------------------------------------------------- */

/* Wrap image + text side-by-side on desktop */
.win-row {
  display: flex;
  align-items: center;  /* vertically center image & text */
  gap: 10px;
}

/* Different sizes */
.win-img-1 {
  width: 120px;
}

.win-img-2 {
  width: 200px;
}

.win-block {
  margin-bottom: 20px;
}

.win-title {
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0 0 4px;
  color: white;
  letter-spacing: 0.5px;
}

.win-desc {
  font-size: 10px;
  margin: 0;
  text-align: left;
  color: white;
  line-height: 1.2;
}

/* Mobile responsive */
@media (max-width: 767px) {
  .win-row {
    flex-direction: row;
    text-align: left;
    align-items: flex-center;
    justify-content: left;
    width: 100%;
  }

  .win-img-1,
  .win-img-2 {
    margin: 0 auto 0px;
  }

  .win-block {
    width: 100%;
  }
}


/* --------------------------------------------------------
 FORM RIGHT SIDE BOX (The active form styling used in index.html & T&C.html)
--------------------------------------------------------- */

.form-heading-wrapper {
  text-align: center;
  margin-bottom: 8px;
}

.form-heading {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.6px;
  color: #ffffff;
  margin: 20px 0px;
}

/* The visual panel container (Used for Form and T&C box) */
.campaign-form {
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.04)); /* subtle */
  border-radius: 16px;
  padding: 18px; /* outer padding to reveal border */
  position: relative;
  color: #ffffff;
  margin: 0 auto;
  /* Gradient border as a background */
  background-image:
    linear-gradient(90deg,
      rgba(200,124,99,0) 0%,
      rgba(200,124,99,1) 25%,
      rgba(243,207,163,1) 50%,
      rgba(200,124,99,1) 80%,
      rgba(243,207,163,1) 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 1px solid rgba(243, 207, 163, 0.8); /* gold border */  

  box-shadow: inset 0 0 0 999px rgba(12,36,26,0.94); /* inner panel fill (#0C241A with opacity) */
}

/* Make the inside spacing slightly smaller so it looks like a 1px border */
.campaign-form > * {
  position: relative;
  z-index: 2;
}

/* Labels */
.form-label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: -4px;
}

.form-row-elem {
  margin-bottom: 24px;
}

/* Inline label used beside checkbox */
.form-label-inline {
  font-weight: 400;
  font-size: 14px;
  color: #ffffff;
  margin-left: 8px;
}

/* Inputs are “line style” (not boxed) */
.form-input,
.dob-select,
select.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.20);
  color: #ffffff;
  padding: 10px 8px;
  font-size: 14px;
  outline: none;
  border-radius: 0;
}

.form-input::placeholder {
  color: rgba(255,255,255,0.20); /* 20% opacity placeholder */
  font-size: 14px;
}

/* Input-with-btn: mobile-friendly inline group */
.input-with-btn {
  display: flex;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 8px;
  align-items: center !important;
}

.input-with-btn .btn-small,
    .input-with-btn .otp-verified-msg {
      flex-grow: 0 !important;
        flex-shrink: 0 !important; /* Prevents button from shrinking */
        width: auto !important; /* Reverts full-width mobile style */
    }
    

    .input-with-btn .form-input {
        flex-grow: 1; 
    }
    
/* Small white rounded button (Generate OTP & Upload) */
.btn-small {
  background: #ffffff;
  color: #000;
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-reset {
  background: #ffffff;
}

.btn-verify {
  background: #ffffff;
}

.otp-verified-msg {
  color: #00e676; /* green */
  font-size: 14px;
  font-weight: 600;
  margin-left: 10px;
  white-space: nowrap;
  flex-shrink: 0 !important;
  width: auto !important;
}

/* File input is visually hidden; we trigger it from Upload button */
.file-input {
  display: none;
}

/* file-name text */
.file-name {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  width: 80px;
  align-items: center;
}

/* --- DOB Field Matching Your Bottom-Line Inputs --- */
.dob-group {
  display: flex;
  gap: 10px;
  width: 100%;
}

/* Remove boxed look → add underline like other fields */
.dob-select {
  flex: 1;
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.20);
  padding: 10px 30px 10px 0;
  font-size: 14px;
  color: #fff; /* matches your form text */
  height: 40px;
  outline: none;
  border-radius: 0;
}

/* ▼ Dropdown arrow (same style as outlet field) */
.dob-select {
  background-image: url("data:image/svg+xml;utf8,<svg stroke='white' fill='none' stroke-width='2' width='16' height='16' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 5px center;
  background-size: 14px;
}

/* Dark dropdown list */
.dob-select option {
  background: #111;    /* dark list */
  color: #fff;       /* white text */
  padding: 8px;
}

/* ===== OUTLET DROPDOWN (same style as DOB) ===== */
.select-wrapper {
  position: relative;
  width: 100%;
}

.form-select-custom {
  width: 100%;
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.20);
  padding: 10px 30px 10px 0;  /* space for chevron */
  font-size: 14px;
  color: #ffffff;
  outline: none;
  border-radius: 0;
  
  /* Chevron icon – SAME as DOB */
  background-image: url("data:image/svg+xml;utf8,<svg stroke='white' fill='none' stroke-width='2' width='16' height='16' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 5px center;
  background-size: 14px;
}

/* Dark dropdown list like DOB */
.form-select-custom option {
  background: #111;
  color: #fff;
  padding: 8px;
}


/* Two-column row for state+city */
.two-col {
  display: flex;
  gap: 12px;
}
.two-col .col { flex: 1; }

/* Checkbox styling (keeps native checkbox) */
.checkbox-input {
  width: 16px;
  height: 16px;
}

/* Submit button larger white rounded uppercase bold */
.btn-submit {
  width: 100%;
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-success { /* Used on success.html and T&C.html */
  width: 220px;
}



/* Terms row spacing */
.terms-row { /* Used by the tnc-wrapper inside the form */
  display: flex;
  align-items: center;
  margin-top: 12px;
}

/* Form status text */
.form-status {
  margin-top: 12px;
  color: rgba(255,255,255,0.9);
}

/* Responsiveness for small screens */
@media (max-width: 767px) {
  .campaign-form {
    padding: 14px;
    border: 1px solid rgba(243, 207, 163, 0.8); /* gold border */

  }

  .two-col {
    flex-direction: column;
  }
.dob-input {
    /* Removes the system-level rendering/icons for the input */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    
    /* Ensure the input text itself is white */
    color:rgba(255, 255, 255) !important;
}
  /* Style the placeholder text (for WebKit/Blink browsers like Chrome, Safari, Edge) */
.dob-input::placeholder {
    color: #ffffff !important; /* Semi-transparent white for visibility */
    opacity: 0.7 !important; /* Ensure opacity is not zero */
}

/* Style the placeholder text for Firefox */
.dob-input:-moz-placeholder {
    color: #ffffff !important;
    opacity: 0.7 !important;
}

/* Style the placeholder text for older browsers/IE */
.dob-input::-ms-input-placeholder {
    color: #ffffff !important;
    opacity: 0.7 !important;
}



.dob-input::-webkit-calendar-picker-indicator {
    opacity: 0 !important; 
    width: 100% !important; /* Make it cover the whole input field */
    height: 100% !important;
    position: absolute; /* Allows it to sit above other elements */
    top: 0;
    left: 0;
    cursor: pointer !important;
    box-sizing: border-box;
    filter: none !important;

    
}
  
/* HIDE THE CHEVRON DOWN ARROW */
.dob-input::-webkit-inner-spin-button,
.dob-input::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
}


.date-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.calendar-icon {
    position: absolute;
    right: 10px; /* Adjust position as needed */
    pointer-events: none; /* Allows clicks to pass through to the indicator below it */
    color: white; /* Ensure your custom icon is white */
    z-index: 1; 
}

.date-wrapper input {
  width: 100%;
  padding-right: 35px;
}

.date-wrapper {
  position: relative;
}

.date-wrapper input {
  width: 100%;
  padding-right: 40px;
}

.date-wrapper .calendar-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #ffffff;
  pointer-events: none;
}



/* ===== Upload Row ===== */
.upload-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

/* Label stays same design */
.upload-label {
  flex: 1;
  line-height: 1.35;
  white-space: normal;
  width: 100%;
}

/* Actions: button + filename */
.upload-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 120px;
  width: 100%;
}

/* Truncate long file names */
.file-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}

/* Add this new block to your style.css, near the form styles */
.tnc-row .form-label {
    margin-bottom: 8px; /* Adds space between "Terms & Conditions:" and the checkbox */
}

.tnc-wrapper {
    display: flex; /* Ensures checkbox and label are side-by-side */
    align-items: center;
}

.tnc-wrapper input[type="checkbox"] {
    /* Style for the checkbox input itself */
    margin-right: 10px;
    width: 16px;
    height: 16px;
}

/* ===== MOBILE FIX (Used for upload row on tiny screens) ===== */
@media (max-width: 480px) {
  .upload-row {
    flex-direction: row;
    align-items: center;
    margin-top: 0px;
  }

  .upload-actions {
    max-width: 120px;
    width: 100%;
  }

  .file-name {
    max-width: 120px;
  }
}

.form-label.required::after {
  content: " *";
  color: #ff4d4d;
  font-weight: bold;
}

/* highlight field red */
.form-input.error,
.form-select-custom.error,
input[type="file"].error {
  border-bottom: 1px solid #ff4d4d !important;
}

/* Center the form container */
.campaign-form {
  margin: 0 auto;
  max-width: 420px;   /* keeps it tidy */
  width: 100%;
}

/* Center the heading too */
.form-heading-wrapper {
  text-align: center;
}

/* Mobile improvements */
@media (max-width: 576px) {
  .campaign-form {
    padding-left: 20px ;
    padding-right: 20px;
  }

  .two-col {
    display: block;
  }

  .two-col .col {
    width: 100%;
    margin-bottom: 15px;
  }

  .input-with-btn {
    flex-direction: column;
    gap: 10px;
  }

  .btn-small {
    width: 100%;
    text-align: center;
  }
}

/* --------------------------------------------------------
 MOBILE RESPONSIVE (Offer section collapse)
--------------------------------------------------------- */
@media (max-width: 767px) {
  .offer-section {
    flex-direction: column;
    align-items: center;
  }

  .offer-left,
  .offer-right {
    width: 100%;
  }

  .win-img { /* This is likely an unaliased class, but keeping for safety */
    margin: 0 auto 12px;
    display: block;
  }

  .win-title,
  .win-desc {
    text-align: center;
  }
}


/* ==============================
 FOOTER CENTERING (GLOBAL)
============================== */
.footer-centered {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #ffffff;
  margin: 0 auto;
  width: 100%;
  padding: 20px 40px;
  flex-wrap: wrap;
  line-height: 1.5;
}

/* Responsive font adjustments */
@media (max-width: 576px) {
  .footer-centered {
    font-size: 13px;
    padding: 16px 24px;
  }
}

.mobile-break::after { /* Used in index.html footer */
    content: "\A"; /* adds a line break */
    white-space: pre;
}


/* ==========================================
 TERMS & CONDITIONS PAGE STYLES
========================================== */
.tc-container {
  max-width: 800px;
  margin: 40px auto; /* adds breathing space from top & bottom */
  padding: 30px 40px;
  color: #ffffff;
  font-family: "Lato", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;

  /* NOTE: The background/border is now handled by the dual-class usage: .tc-container.campaign-form */
  /* If you want the T&C box to look *different* from the form, you should re-add specific background/border rules here. */
}

.tc-container p {
  margin-bottom: 6px;
}

.tc-container ul {
  margin-left: 20px;
  margin-top: 0;
  margin-bottom: 6px;
  padding-left: 20px;
}

.tc-container li {
  margin-bottom: 2px;
  line-height: 1.4;
}

.tc-container strong {
  font-weight: 700;
}

.tc-container em {
  font-style: italic;
  text-align: left;
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .tc-container {
    padding: 20px;
    font-size: 14px;
    margin: 20px auto; /* prevents touching edges */
  }
}


/* --- Tighten spacing for related numbered sub-points in T&C --- */
.tc-container p + ul,
.tc-container ul + p {
  margin-top: 4px;     /* reduce gap above/below list */
}

.tc-container ul {
  margin-top: 4px;
  margin-bottom: 4px;  /* smaller than normal */
  padding-left: 20px;
}

.tc-container li {
  margin-bottom: 4px;  /* tighter line spacing between list items */
}

/* ============================================
 AGE CONFIRMATION MODAL (If JS is used to toggle this)
============================================ */
#ageModal {
  position: fixed;
  inset: 0;
  z-index: 1065;
  overflow: hidden; /* prevent background scroll */
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* Full-screen overlay background */
#ageModal::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(12, 36, 26, 0.6); /* #0C241A with 60% opacity */
  z-index: 1060;
}

/* Modal dialog centered */
#ageModal .modal-dialog {
  position: relative;
  z-index: 1070;
  margin: 24 auto;
  max-width: 420px;
  width: 90%;
}

/* Modal box styling */
#ageModal .modal-content {
  background-color: #0C241A; /* solid box */
  color: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(243, 207, 163, 0.8); /* gold border */
  text-align: center;
  font-family: "Lato", sans-serif;
  padding: 32px 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Prevent page scroll when modal open */
body.modal-open {
  overflow: hidden;
  height: 100vh;
}

/* Question text */
#ageModal .modal-body {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
  margin: 12px 0 24px;
}

/* Buttons container */
#ageModal .modal-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  border: none;
  padding-top: 0;
  flex-wrap: wrap;
  
}

/* Buttons */
#ageModal .btn {
  flex: 1;
  max-width: 45%;
  border-radius: 999px;
  padding: 10px 0;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
}

/* Yes button */
#ageModal .btn-primary {
  background-color: #ffffff;
  color: #000;
  border: none;
}

/* No button */
#ageModal .btn-outline-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
}

#ageModal .btn-outline-secondary:hover {
  background-color: #ffffff;
  color: #000;
}

/* Responsive */
@media (max-width: 576px) {
  #ageModal .modal-content {
    padding: 24px 20px;
  }
  #ageModal .btn {
    font-size: 14px;
  }
}


/* Simple confirmation modal */
#confirm-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  z-index: 2000;
}
#confirm-modal .modal-card {
  background: #0C241A;
  padding: 20px;
  border-radius: 8px;
  max-width: 420px;
  width: 88%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  border: 1px solid rgba(243, 207, 163, 0.8);
  font-family: "Lato", sans-serif;
}

#confirm-modal .modal-card p {
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 20px;
}
#confirm-modal .modal-actions { margin-top: 16px; display: flex; gap: 16px; justify-content: center; }
.btn-modal { padding: 8px 16px; border-radius: 16px; border: 0; cursor: pointer; font-weight: 400; }
.btn-modal.btn-yes { min-width: 100px; background: #ffffff; color: #000000; }
/* No button: transparent background with a visible white border */
.btn-modal.btn-no  { min-width: 100px; background: transparent; border: 1px solid #ffffff; color: #ffffff; }



/* --- AGGRESSIVE ICON HIDING --- */

/* 1. Target WebKit Browsers (Chrome, Safari, Edge) for the Calendar Icon */
/* This targets both the input type and your specific class for maximum specificity */
input[type="date"].dob-input::-webkit-calendar-picker-indicator {
    display: none !important; /* Force hide the calendar icon */
    -webkit-appearance: none !important;
    opacity: 0 !important;
}

/* 2. Target WebKit for the Spin/Chevron Arrows (Which you are likely seeing) */
input[type="date"].dob-input::-webkit-inner-spin-button,
input[type="date"].dob-input::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
    display: none !important; /* Force hide the chevron/spin arrows */
}

/* 3. Target Firefox for the input appearance */
/* This removes the default styling that might show the chevron */
input[type="date"].dob-input {
    -moz-appearance: textfield !important;
    appearance: none !important;
}

/* 4. Ensure your Custom Icon/Click-Through Mechanism is correct */
.date-wrapper {
    position: relative;
    /* This ensures clicks anywhere on the input/wrapper open the date picker */
    cursor: pointer; 
}

/* Ensure the visible calendar icon is styled correctly */
.calendar-icon {
    position: absolute;
    right: 10px; 
    pointer-events: none; /* Allows click to pass through to the invisible input */
    color: white; 
    z-index: 1; 
}