/* General styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

header {
  position: relative;
  height: 15vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #4b0e83;
}

.content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  padding: 20px 0;
  position: absolute;
  top: 0;
}

.logo img {
  height: 70px;
}

.navbar ul {
  display: flex;
  gap: 40px;
  list-style: none;
  padding: 0;
}

.navbar ul li a {
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.navbar ul li a:hover {
  color: #e6c612;
  text-decoration: underline 3px;
  text-underline-offset: 20px;
}

.search {
  display: flex;
  align-items: center;
}

.search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: rgb(223, 220, 220);
  font-size: 16px;
  cursor: pointer;
  transition: color 0.3s;
}

.search-icon {
  width: 20px;
  height: 20px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 3px;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
  /* Tablet */
  .content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .navbar ul {
    display: none; /* Hide the nav links */
  }

  .hamburger {
    display: flex; /* Show hamburger icon */
  }

  .search-btn {
    display: none; /* Hide search button on tablets */
  }
}

@media screen and (max-width: 768px) {
  /* Mobile */
  .content {
    flex-direction: row;
    align-items: center;
    text-align: center;
  }

  .navbar ul {
    display: none; /* Hide the nav links */
  }

  .hamburger {
    display: flex; /* Show hamburger icon */
  }

  .search-btn {
    display: flex; /* Show search button */
  }

  .search-btn span {
    font-size: 14px; /* Make search text smaller on mobile */
  }
}

.section1 {
  background-image: url(NewsLetterBG.png);
  background-size: cover;
  background-repeat: no-repeat;
}
.newsletterlogo {
  position: relative;
  height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  flex-direction: column;
  overflow: hidden;
}
.div1 {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  letter-spacing: 2px;
  font-size: 50px;
  color: #e3bd65;
  width: 800px;
  line-height: 64px;
  margin-top: -250px;
}
.div1 h1 {
  margin: 0 0.5rem;
  animation: backInUp;
  animation-duration: 3s;
}
.div2 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  width: 850px;
  margin-top: 20px;
  color: white;
  letter-spacing: 0.96px;
}
.div2 h2 {
  margin: 0 0.5rem;
  animation: backInUp;
  animation-duration: 4s;
}
.background .cadburybite img {
  width: 419px;
  height: 364.337px;
  margin: 232.825px 0px 232.837px;
  position: absolute;
  top: -220px;
  left: 1000px;
}
.cadburybite img {
  margin: 0 0.5rem;
  animation: tada;
  animation-duration: 2s;
}
@media screen and (max-width: 1024px) {
  /* Tablet */

  .div1 {
    font-size: 40px; /* Adjust text size */
  }

  .div2 {
    margin-top: 10px;
    font-size: 14px;
  }
}

@media screen and (max-width: 768px) {
  /* Mobile */

  .section1 {
    height: 300px;
  }
  .newsletterlogo {
    height: auto;
    padding: 40px 20px; /* Add padding for mobile */
  }

  .div1 {
    
    width: 100%;
    margin-top: 10px;
    margin-bottom: -30px; /* Adjust margin */
  }
   .div1 h1{
    font-size: 32px;
   }
  .div2 {
    
    margin-top: 40px;
    width: 100%;
    height: auto;
  }

  .div2 h2{
    font-size: 20px;
  }
}

.section2 {
  background-image: url(bgimage2.png);
  background-size: cover;
  background-repeat: no-repeat;
}
.form {
  position: relative;
  background: url();
  height: 1000px;
  width: 100%;
  background-repeat: no-repeat;
  background-size: cover;
}
.form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.formcontainer {
  background-color: white;
  height: 950px;
  width: 800px;
  margin-top: -450px;
  border-radius: 20px;
}

.formcontainer h1 {
  text-align: center;
  color: #4e007e;
  letter-spacing: 2.5px;
  margin-top: 30px;
  font-size: 40px;
  font-weight: bold;
  text-transform: uppercase;
}
.info {
  display: flex;
  justify-content: left;
  align-items: left;
  flex-direction: column;
  margin-top: 30px;
  margin-left: 100px;
  margin-right: 100px;
}
label {
  margin-bottom: 10px;
  color: #000000;
  margin-top: 18px;
  font-size: 16px;
}
input[type="text"],
input[type="email"],
select {
  width: calc(100% - 10px);
  padding: 13px;
  margin-bottom: 20px;
  border: 1px solid #6d349f;
  border-radius: 5px;
  font-size: 14px;
}
input:hover {
  border: 1.5px solid #5f1c9a;
}

select {
  width: 32%;
  display: inline-block;
  margin-right: 1%;
  margin-top: 20px;
  margin-bottom: 30px;
  color: #5f1c9a;
}
select:hover {
  border: 2px solid #5f1c9a;
}
select:last-of-type {
  margin-right: 0;
}

.checkbox-container {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  justify-content: center;
}
.checkbox-container label {
  margin-bottom: 0;
}
.checkbox-container input[type="checkbox"] {
  height: 30px;
  width: 100px;
  cursor: pointer;
}
.checkbox-container p {
  font-weight: normal;
  font-size: 16px;
  letter-spacing: 0.64px;
  line-height: 24px;
  width: 550px;
}
.capture {
  display: flex;
  justify-content: center;
}
.captcha-container {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  width: 250px;
  padding: 10px;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  background-color: #f9f9f9;
}

.captcha-container input[type="checkbox"] {
  height: 30px;
  width: 25px;
  margin-right: 10px;
  cursor: pointer;
}

.captcha-container label {
  font-size: 16px;
  color: #333;
  margin-right: 0px;
}

.captcha-container img {
  width: 50px;
  height: auto;
}
.btn {
  display: flex;
  justify-content: center;
}
.golden {
  display: inline-block;
  text-align: center;
  height: 48px;
  width: 300px;
  padding: 12px 16px;
  margin: 40px;
  font-size: 20px;
  border-radius: 30px;
  border: none;
  color: #4b0e83;
  background: linear-gradient(to right, #d4af37, #f3e5ab, #d4af37, #f3e5ab);
  transition: background-position 0.7s ease, transform 0.2s;
  background-position: right;
  letter-spacing: 0.2ch;
  background-size: 200%;
  font-weight: bold;
  text-transform: uppercase;
}

button:hover {
  background: linear-gradient(to right, #d4af37, #f3e5ab, #d4af37, #f3e5ab);
}

.footer-text {
  width: 600px;
  height: 80px;
  font-size: 15px;
  color: black;
  line-height: 24px;
  text-align: center;
  margin-left: 100px;
  margin-right: 100px;
}

.footer-text a {
  color: #4e007e;
  text-decoration: none;
}

.footer-text a:hover {
  text-decoration: underline;
}

/* Laptop and larger screens */
@media screen and (max-width: 1024px) {
  .section2 {
    position: relative;
  }
  .formcontainer {
    width: 700px;
  }

  .info {
    margin-left: 50px;
    margin-right: 50px;
  }

  .golden {
    width: 250px;
    font-size: 18px;
  }

  .footer-text {
    width: 500px;
    margin-left: 50px;
    margin-right: 50px;
  }
}

/* Tablet screens */
@media screen and (max-width: 768px) {
  .section2 {
    position: relative;
  }

  .formcontainer {
    width: 100%;
    margin-top: 10px;
  }

  .info {
    margin-left: 20px;
    margin-right: 20px;
  }

  label {
    margin-top: 1px;
  }

  input[type="text"],
  input[type="email"] {
    margin-top: 1.5px;
  }
  .checkbox-container p {
    width: 80%;
  }
  .golden {
    width: 400px;
    font-size: 16px;
  }

  .footer-text {
    width: 90%;
    margin-left: 20px;
    margin-right: 20px;
  }

  .captcha-container {
    width: 300px;
  }
}

.footer {
  background-color: #fff;
  padding: 30px 20px;
  border-top: 2px solid #4a1e8c;
}
#pouring {
  width: 100%;
  height: 300px;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: rgb(75, 9, 132);
  display: flex;
  justify-content: right;
}
#pouring img {
  width: 20%;
  margin-right: 50px;
}

@media (max-width: 768px) {
  #pouring {
      justify-content: center; 
      width: 100%;
      height: auto;
  }

  #pouring img {
      margin-right: 0;
      width: 100%;
  }
}

/* Top Section: Logo and Social Media */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.footer-logo img {
  max-width: 400px;
}

.footer-icon {
  display: flex;
  gap: 15px;
}

.footer-icon a {
  font-size: 30px;
  color: #4a1e8c;
  transition: color 0.3s;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 20px;
}

.footer-bottom .copyright {
  flex: 1;
  color: #4a1e8c;
  font-size: 14px;
  text-align: left;
}

.footer-links {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.footer-links a {
  font-size: 12px;
  text-decoration: none;
  color: #4a1e8c;
  font-weight: bold;
  transition: color 0.3s;
}
@media (max-width: 786px) {
  .footer-top {
    flex-direction: column;
    text-align: center;
    gap: 60px;
  }
  .footer-logo img {
    width: 50%;
    height: 50%;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    text-align: center;
    gap: 20p;
  }

  .footer-bottom .copyright {
    text-align: center;
    margin-bottom: 10px;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}
