@font-face {
  font-family: "Popins Bold";
  src: url(fonts/Poppins-Bold.ttf);
  font-style: normal;
}

@font-face {
  font-family: "Popins Regular";
  src: url(fonts/Poppins-Regular.ttf);
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 450px;
  margin: 0 auto;
  background: url(images/Background.jpg);
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Header Styles */
.header {
  position: relative;
  z-index: 10;
  padding: 20px;
  text-align: center;
}

.logo {
  display: flex;
  justify-content: start;
  align-items: center;
}

.brand-logo {
  max-width: 120px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.rewards-logo {
  max-width: 150px;
  height: 140px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Form Section */
.form-section {
  position: relative;
  z-index: 10;
  flex: 1;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16rem;
}

.rewards-form {
  width: 100%;
  max-width: 350px;
  font-family: "Popins Bold", sans-serif;
  margin-bottom: 5rem;
}

.input-group {
  margin-bottom: 20px;
  position: relative;
}

.input-group input {
  width: 100%;
  padding: 12px 15px;
  border: none;
  /* border-radius: 25px; */
  background: url(images/Rectangle\ 6952.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center center;
  background-color: transparent;
  color: white;
  font-size: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  font-family: "Popins Bold", sans-serif;
  font-size: 15px;
}

.input-group input::placeholder {
  color: #ffffff;
  font-family: "Popins Bold", sans-serif;
  font-size: 15px;
}

.input-group input:focus {
  outline: none;
  border: none;
  /* border-color: white; */
  /* background: rgba(255, 255, 255, 0.2); */
  background-color: transparent;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.262);
  border-radius: 25px;
  background-blend-mode: multiply;
}

.input-group input.error {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}

/* Date input styling */
/* .input-group input[type="date"] {
  color: white;
  position: relative;
}

.input-group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.input-group input[type="date"]::-webkit-inner-spin-button,
.input-group input[type="date"]::-webkit-clear-button {
  -webkit-appearance: none;
  display: none;
} */

/* Date Input Container */
.date-input-group {
  position: relative;
  width: 100%;
}

/* Base Input Styling */
.date-input {
  width: 100%;
  padding: 12px 15px;
  border: none;
  background: url(images/Rectangle\ 6952.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center center;
  color: white;
  font-size: 15px;
  font-family: "Popins Bold", sans-serif;
  cursor: pointer;
}

 #loaderGif {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }

    #loaderGif img {
      width: 45px;
    }

/* Date Icon */
.date-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  pointer-events: none;
}

/* Native Date Input (hidden) */
.native-date-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* For browsers that support native date picker */
@supports (-webkit-appearance: none) or (-moz-appearance: none) {
  .date-input-group.has-native-picker .date-input {
    color: transparent;
  }
  
  .date-input-group.has-native-picker .date-input::before {
    content: attr(placeholder);
    color: white;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .date-input-group.has-native-picker .date-input:focus::before,
  .date-input-group.has-native-picker .date-input:valid::before {
    display: none;
  }
  
  .date-input-group.has-native-picker .date-input:valid {
    color: white;
  }
}

.otp-field {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  margin-bottom: 0 !important;
  display: none; /* Add this */
}

.otp-field.show {
  opacity: 1;
  transform: translateY(0);
  max-height: 200px;
  margin-bottom: 20px;
  display: block;
}

.otp-field .submit-btn {
  margin-top: 15px;
  opacity: 0;
  animation: fadeInUp 0.5s ease 0.3s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-message {
  color: white;
  font-size: 12px;
  margin-top: 5px;
  display: block;
  padding-left: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.error-message.show {
  opacity: 1;
}

.btn-grp {
  display: flex;
  justify-content: center;
  align-items: center;
}

.submit-btn {
  width: 80%;
  padding: 15px;
  background: url(images/submit.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center center;
  color: #e31e24;
  border: none;
  border-radius: 25px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Popins Bold", sans-serif;
}

.submit-btn:hover {
  /* background: #f0f0f0; */
  transform: translateY(-2px);
  /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); */
}

.submit-btn:active {
  transform: translateY(0);
}

/* Checkbox Styles */
.checkbox-group {
  margin-bottom: 15px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  font-size: 12px;
  color: white;
  gap: 5px;
  margin-left: 8px;
  cursor: pointer;
  line-height: 1.4;
  user-select: none;
  font-family: "Popins Regular", sans-serif;
}

.checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  background-color: #89101f;
  border: 1px solid white;
  border-radius: 2px;
  width: 15px;
  height: 15px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked {
  background-color: #ffffff;
}

/* Draw custom tick */
.checkbox-label input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0px;
  width: 4px;
  height: 8px;
  border: solid #e31e24;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.terms-link {
  color: white;
  text-decoration: underline;
}

.terms-link:hover {
  color: #f0f0f0;
}

/* Thank You Message */
.thank-you-message {
  text-align: center;
  background: url(images/Rectangle\ 1.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center center;
  padding: 60px 20px;
  width: 100%;
  max-width: 350px;
  margin-bottom: 5rem;
}

.thank-you-message h2 {
  color: white;
  font-size: 20px;
  margin-bottom: 0px;
  font-weight: bold;
  font-family: "Popins Bold", sans-serif;
}

.thank-you-message p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 10px;
  font-family: "Popins Regular", sans-serif;
}

/* Footer Styles */
.footer {
  position: relative;
  z-index: 10;
  padding: 0 20px 20px;
  text-align: center;
}

.bottles-image {
  max-width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  color: #ffffff;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: all;
}

.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid white;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 480px) {
  .container {
    max-width: 100%;
  }

  .header {
    padding: 15px;
  }

  .brand-logo {
    max-width: 100px;
    margin-bottom: 15px;
  }

  .rewards-logo {
    max-width: 250px;
  }

  .form-section {
    padding: 15px;
  }

  .input-group input {
    padding: 12px 15px;
    font-size: 15px;
  }

  .submit-btn {
    padding: 12px;
    font-size: 16px;
  }

  .thank-you-message {
    max-width: 300px;
    padding: 60px 15px;
  }

  .thank-you-message h2 {
    font-size: 19px;
  }

  .thank-you-message p {
    font-size: 14px;
  }

  .bottles-image {
    max-height: 120px;
  }

  .checkbox-label {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .header {
    padding: 10px;
  }

  .brand-logo {
    max-width: 80px;
    margin-bottom: 10px;
  }

  .rewards-logo {
    max-width: 200px;
  }

  .form-section {
    padding: 10px;
    margin-bottom: 15rem;
  }

  .input-group {
    margin-bottom: 15px;
  }

  .input-group input {
    padding: 10px 15px;
    font-size: 14px;
  }

  .checkbox-label {
    font-size: 12px;
  }

  #ageConfirm {
    width: 16px;
  }

  .bottles-image {
    max-height: 100px;
  }

  .thank-you-message {
    max-width: 300px;
    padding: 60px 9px;
  }
}

/* Landscape orientation for mobile */
@media (max-height: 600px) and (orientation: landscape) {
  .header {
    padding: 10px;
  }

  .brand-logo {
    max-width: 80px;
    margin-bottom: 5px;
  }

  .rewards-logo {
    max-width: 200px;
  }

  .form-section {
    padding: 10px;
  }

  .input-group {
    margin-bottom: 10px;
  }

  .footer {
    padding: 0 20px 10px;
  }

  .bottles-image {
    max-height: 80px;
  }

  .thank-you-message {
    max-width: 300px;
    padding: 60px 15px;
  }
}

/* Tablet styles */
@media (min-width: 481px) and (max-width: 768px) {
  .container {
    max-width: 500px;
  }

  .brand-logo {
    max-width: 140px;
  }

  .rewards-logo {
    max-width: 320px;
  }

  .rewards-form {
    max-width: 400px;
  }

  .bottles-image {
    max-height: 180px;
  }
}

/* Desktop styles */
@media (min-width: 769px) {
  .container {
    max-width: 450px;
  }

  .header {
    padding: 15px;
  }

  .form-section {
    padding: 15px;
    margin-bottom: 16rem;
  }

  .footer {
    padding: 0 30px 30px;
  }
}
/* 
@media (max-width: 768px) {
  .input-group input[type="date"]:not(:valid):before {
    content: attr(placeholder);
    position: absolute;
    color: white;
    width: 100%;
    font-family: "Popins Bold", sans-serif;
    font-size: 15px;
    pointer-events: none;
  }
} */
