body {
  margin: 0;
  font-family: "Cairo", sans-serif;
  background: linear-gradient(145deg, #f2fa46 10%, #ffffff 60%, #dddddd 100%);
  color: #2e2e2e;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  position: relative;
  padding: 2rem 1rem;
}
.main-layout {
  display: flex;
  flex-direction: row;
  max-width: 1000px;
  width: 80%;
  min-width: 800px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  height: 650px;
}
.left-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  width: 50%;
  height: 100%;
}
.gallery-box {
  width: 100%;
  height: 100%;
}
.gallery-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.container {
  width: 50%;
  padding: 2rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.logo {
  max-width: 160px;
  margin-bottom: 1rem;
}
h1 {
  color: #2854ec;
  font-size: 2rem;
  margin-bottom: 0;
}

h2 {
  margin-top: 0;
  color: #2854ec;
}

p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 3rem;
}
.email {
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 95%;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.submit-btn {
  background-color: #2854ec;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  margin-top: 1em;
  margin-bottom: 2rem;
}
.submit-btn:hover {
  background-color: #1d3db8;
}

.working-icon img {
  width: 60px;
  height: 60px;
  margin-top: 1.5rem;
}
/* @keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
} */
@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
    height: auto;
    width: 90%;
  }
  .left-gallery,
  .container {
    width: 80%;
    height: auto;
  }
  .left-gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
  }
}


@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
    width: 95%;
    min-width: unset;
    height: auto;
  }

  .left-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 150px);
    width: 100%;
    height: auto;
  }

  .gallery-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .container {
    width: 100%;
    padding: 1.5rem 1rem;
  }

  .email, .submit-btn {
    font-size: 1rem;
    padding: 0.7rem 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  p {
    font-size: 1rem;
  }
}


/* Reorder layout for mobile */
@media (max-width: 768px) {
  .main-layout {
    flex-direction: column-reverse;
  }

  .mobile-logo {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
  }

  .desktop-only {
    display: none;
  }
}


@media (min-width: 769px) {
  .main-layout {
    flex-direction: row;
  }

  .mobile-logo {
    display: none;
  }

  .desktop-only {
    display: block;
  }
}
