/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #141e30;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background: Subtle animated food prep (simulated) */
.food-prep-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #3b2f2f 10%, #1a1a1a 80%);
  z-index: -1;
  overflow: hidden;
}

.food-prep-bg::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: url('catering.gif') center center / cover no-repeat;
  opacity: 0.06;
  animation: movePan 60s linear infinite;
}

@keyframes movePan {
  0% { transform: translate(0%, 0%); }
  100% { transform: translate(-25%, -25%); }
}

/* Form Container */
.form-container {
  max-width: 520px;
  background: rgba(255, 255, 255, 0.96);
  margin: 60px auto;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgb(240, 232, 232);
}
.form-container img {
  width: 100%;
  height: 100%; /* ya apne hisaab se height */
  display: block;
  border-radius: 12px;
  margin-bottom: 20px;
  object-fit: cover;
}
h2 {
  text-align: center;
  color: #ff6700;
  margin-bottom: 25px;
}

/* Form Elements */
form label {
  font-weight: 600;
  display: block;
  margin-top: 18px;
  color: #444;
  font-size: 14px;
}

form input[type="text"],
form input[type="email"],
form textarea,
form select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-top: 6px;
  font-size: 15px;
  transition: 0.3s;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: #ff6700;
  box-shadow: 0 0 5px rgba(255, 103, 0, 0.3);
  outline: none;
}

form button {
  margin-top: 25px;
  padding: 12px;
  width: 100%;
  background-color: #373736;
  border: none;
  color: white;
  font-weight: bold;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

form button:hover {
  background-color: #149d8e;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
/* File Upload */
.file-upload-wrapper {
  position: relative;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 12px 15px;
  margin-top: 6px;
  background-color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
}

.file-upload-wrapper:hover {
  border-color: #ff6700;
  box-shadow: 0 0 5px rgba(255, 103, 0, 0.3);
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  cursor: pointer;
  height: 100%;
  width: 100%;
}

.file-upload-text {
  color: #666;
  pointer-events: none;
}

.captcha-box canvas {
  border: 1px solid #ccc;
  border-radius: 8px;
}

.captcha-box button {
  background-color: #eee;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.emoji-rating {
  display: flex;
  justify-content: space-around;
  margin-top: 12px;
}

.emoji-rating label {
  font-size: 30px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.emoji-rating input {
  display: none;
}

.emoji-rating input:checked + span {
  transform: scale(1.3);
  text-shadow: 0 0 40px #ff6700;
}

/* === OTP Styles === */
.otp-section {
  margin-top: 30px;
}

.otp-section label {
  font-weight: bold;
  margin-bottom: 6px;
  display: block;
}

.otp-section input[type="email"] {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}

.otp-section button {
  width: 100%;
  padding: 12px;
  background-color: #373736;
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.otp-section button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.otp-status {
  margin-top: 10px;
  font-weight: bold;
  text-align: center;
}

.otp-status.success {
  color: green;
}

.timer {
  text-align: center;
  margin-top: 10px;
  color: #444;
}

/* overlay */
.popup-overlay{
  display: none; /* shown by JS */
  position: fixed;
  inset: 0;                /* top:0;right:0;bottom:0;left:0 */
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  z-index: 10000;
  -webkit-overflow-scrolling: touch; /* iOS smooth scroll */
}

/* visible / animation states */
.popup-overlay.open { display:flex; animation: fadeIn 260ms ease both; }
.popup-overlay.closing { animation: fadeOut 200ms ease both; }

/* box */
.popup-content{
  position: relative;
  width: min(520px, 92vw);  /* responsive width */
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  animation: slideDown 260ms ease both;
}

/* close X (inside box so always visible) */
.popup-close{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10002;
  width: 44px;              /* touch-friendly hit area */
  height: 44px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.popup-close:focus{ outline: none; box-shadow: 0 0 0 4px rgba(0,123,255,0.15); }

/* animations */
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes fadeOut { from { opacity: 1 } to { opacity: 0 } }
@keyframes slideDown { from { transform: translateY(-8px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
.popup-overlay.closing .popup-content { animation: slideUp 200ms ease both; }
@keyframes slideUp { from { transform: translateY(0); opacity: 1 } to { transform: translateY(-8px); opacity: 0 } }

/* mobile tweaks */
@media (max-width: 480px) {
  .popup-content { padding: 16px; width: 94vw; border-radius: 10px; }
  .popup-close { top: 8px; right: 8px; width: 48px; height: 48px; font-size: 24px; }
}


/* Responsive */
@media (max-width: 600px) {
  .form-container {
    margin: 20px;
    padding: 20px;
  }

  .emoji-rating {
    font-size: 24px;
    gap: 8px;
  }

  .form-container h2 {
    font-size: 22px;
  }

  form label {
    font-size: 13px;
  }
  .otp-section input,
  .otp-section button {
    font-size: 16px;
  }
}
