/* ========== Reset some browser defaults ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== Global styles ========== */
body {
  font-family: sans-serif;
  background-color: #f0f0f0;
  direction: rtl; /* Right-to-left for Persian */
}

/* ========== Hero Container: full screen background ========== */
.hero-container {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  /* Desktop background image */
  background: url("https://noafarinstudio.com/wp-content/uploads/2024/01/wait-list-ادیت-01-scaled.jpg")
              no-repeat center/cover;
  display: flex;
  justify-content: flex-start; 
  align-items: flex-start;
}

/* Dim overlay if you want to make text more visible */
.hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* Header / Logo area */
.hero-header {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}
.hero-logo {
  height: 50px;
}

/* Main content container */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

/* Form container, near bottom-right but "a little to center" */
.form-container {
  position: absolute;
  bottom: 25%;
  right: 9.5%;
  width: 400px;
  background-color: rgba(255, 255, 255, 0.15); /* translucent white */
  padding: 1rem;
  border-radius: 5px;
}

/* The actual form */
.hero-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero-form label {
  font-weight: bold;
  color: #fff;
}
.hero-form input {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: right;
}
.hero-form button {
  padding: 0.6rem;
  background-color: #ff5994;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.hero-form button:hover {
  background-color: #ff316f;
}
#step4 {
  margin: 2rem auto;
  background-color: rgba(255,255,255,0.2);
  padding: 1rem;
  border-radius: 5px;
}
#randomProductBtn {
  margin-top: 1rem;
  background-color: #ff5994;
  color: #fff;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}


/* ========== Media Query for Mobile (max 768px) ========== */
@media (max-width: 768px) {
  .hero-container {
    /* Use a different, mobile-friendly background image */
    background: url("https://noafarinstudio.com/wp-content/uploads/2024/01/wait-listw-02-scaled.jpg")
      no-repeat center/cover;
  }

  /* Pin the form near the bottom, centered horizontally */
  .form-container {
    position: absolute;
    bottom: 45%;
    width: 80%;                  /* 80% of the screen for the form */
    max-width: 300px;
    /* Remove margin since we’re using absolute positioning */
    margin: 0;
  }
}
