/* ========== POPUP OVERLAY ========== */
body.popup-open {
  overflow: hidden;
  height: 100vh;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  font-family: 'Onest', sans-serif;
}

.popup-overlay.hidden {
  display: none;
}

/* ========== FORM CONTAINER ========== */
.form-container {
  background-color: #4f3fff;
  color: white;
  padding: 2.5rem;
  border-radius: 20px;
  width: 90%;
  max-width: 750px;
  position: relative;
}

.form-container h1 {
  margin: 0;
  font-size: 2rem;
  color: #ffe67f;
  font-weight: 600;
  font-family: 'Onest', sans-serif;
}

.form-container p {
  color: #ff94fe;
  font-size: 1.3rem;
  margin: 1rem 0 2rem;
  font-family: 'Onest', sans-serif;
}

/* ========== FORM ROWS & INPUT WRAPPERS ========== */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  font-family: 'Onest', sans-serif;
}

.input-wrapper {
  position: relative;
  flex: 0 1 calc(50% - 0.75rem);
  margin-bottom: 1.8rem;
  min-width: 300px;
  box-sizing: border-box;
  font-family: 'Onest', sans-serif;
}

.input-wrapper.full {
  flex: 0 1 100%;
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  /* padding: 1.5rem 1rem 0.6rem; */
  padding: 1rem 1rem 0.6rem;
  border-radius: 10px;
  border: 2px solid white;
  background: transparent;
  color: white;
  font-size: 1rem;
  outline: none;
  box-sizing: border-box;
  font-family: 'Onest', sans-serif;
}

.input-wrapper select {
  width: 100%;
  /* padding: 1.5rem 1rem 0.6rem; */
  padding: 1rem 1rem 0.6rem;
  border-radius: 10px;
  border: 2px solid white;
  background: #4f3fff;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  outline: none;
  box-sizing: border-box;
  font-family: 'Onest', sans-serif;

  /* Remove default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* Custom arrow icon */
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1.2rem;
  cursor: pointer;
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Onest', sans-serif;
}

.input-wrapper label {
  position: absolute;
  top: -0.6rem;
  left: 1rem;
  background-color: #4f3fff;
  padding: 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  z-index: 2;
  font-family: 'Onest', sans-serif;
}

textarea {
  resize: vertical;
  height: 120px;
  box-sizing: border-box;
  font-family: 'Onest', sans-serif;
}

/* ========== ATTACHMENT FIELD ========== */
.attachment-wrapper {
  position: relative;
  margin-bottom: 2rem;
  font-family: 'Onest', sans-serif;
}

.attachment-label {
  position: absolute;
  top: -0.45rem;
  left: 1rem;
  background-color: #4f3fff;
  padding: 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  z-index: 1;
  font-family: 'Onest', sans-serif;
}

.attachment-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  /* padding: 1.2rem 1rem 0.6rem; */
  padding: 1rem 0.6rem;
  border: 2px solid white;
  border-radius: 10px;
  background: transparent;
  font-size: 1.2rem;
  color: white;
  cursor: pointer;
  box-sizing: border-box;
  font-family: 'Onest', sans-serif;
}

.attachment-placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  font-size: 1rem;
  margin-left: .4rem;
  font-family: 'Onest', sans-serif;
}

.attachment-placeholder .optional {
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Onest', sans-serif;
}

.attachment-icon {
  font-size: 1.2rem;
  color: white;
  font-family: 'Onest', sans-serif;
}

.attachment-wrapper input[type="file"] {
  display: none;
}

/* ========== SUBMIT BUTTON ========== */
.submit-container {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  font-family: 'Onest', sans-serif;
}

.submit-button {
  background-color: #ffe67f;
  color: #4f3fff;
  padding: 0.50rem 3rem;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease;
  font-family: 'Onest', sans-serif;
}

.submit-button:hover {
  background-color: #fff0b3;
}

/* ========== CLOSE BUTTON ========== */
.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  font-family: 'Onest', sans-serif;
}

.close-btn:hover {
  opacity: 0.8;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .input-wrapper {
    flex: 0 1 100%;
    min-width: 100%;
  }
}



.file-list {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.file-tag {
  /* background: #f1f1f1; */
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85em;
  border: 1px solid #ccc;
}
