.auth-warning {
  max-width: 720px;
  margin: 0 auto 24px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--status-open);
  font-size: 0.9rem;
}

.auth-warning a {
  color: var(--status-open);
  font-weight: 600;
  text-decoration: underline;
}

/* =========================
   FORM WRAPPER
   ========================= */

.form-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-primary);
  border-radius: 18px;
  padding: 36px 40px;
  box-shadow: var(--card-shadow);
}

/* Heading */
.form-card h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 28px;
  color: var(--text-primary);
}

/* =========================
   FORM ELEMENTS
   ========================= */

form label {
  display: block;
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

form label span {
  color: var(--status-open);
}

form select,
form textarea,
form input[type="text"],
form input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* Focus state */
form select:focus,
form textarea:focus,
form input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* Textarea */
textarea {
  min-height: 120px;
  resize: vertical;
}

/* File input (subtle) */
input[type="file"] {
  background: var(--bg-primary);
  cursor: pointer;
}

/* =========================
   MAP SECTION
   ========================= */

#map {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-top: 8px;
}

small {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Location info */
.location-info {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-secondary);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.area-name {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =========================
   SUBMIT BUTTON
   ========================= */

.btn-submit {
  margin-top: 28px;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: var(--accent-primary);
  color: var(--text-inverse);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

/* Hover */
.btn-submit:hover {
  background: var(--accent-secondary);
}

.human-check {
  margin-top: 20px;
}

.checkbox-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input {
  margin-top: 3px;
}


/* =========================
   FORM INTERACTION
   ========================= */

input,
textarea,
select {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
  transform: translateY(-1px);
}

/* =========================
   RESPONSIVE & MOBILE FIXES
   ========================= */

/* Tablet and below (max-width: 768px) */
@media (max-width: 768px) {
  .form-card {
    margin: 10px;
    /* Add slight margin from edge of screen */
    width: auto;
    /* Ensure it doesn't overflow */
  }
}

/* Mobile Devices (max-width: 640px) */
@media (max-width: 640px) {

  /* 1. Save screen real estate */
  .form-card {
    padding: 24px 16px;
    /* Reduced side padding significantly */
    border-radius: 12px;
  }

  .form-card h2 {
    font-size: 1.35rem;
    margin-bottom: 20px;
    text-align: center;
    /* Center heading on mobile looks better */
  }

  /* 2. Fix Input Text Size & Height */
  form select,
  form textarea,
  form input[type="text"] {
    font-size: 15px;
    /* CRITICAL: Prevents iOS Safari from zooming in on focus */
    padding: 10px 12px;
  }

  /* 3. Adjust Textarea Height */
  /* The default rows="10" is too tall for mobile */
  textarea[name="long_des"] {
    height: 150px;
    min-height: 120px;
  }

  /* 4. Map Adjustment */
  /* Override inline style height to fit small screens better */
  #map {
    height: 220px !important;
  }

  /* 5. Submit Button */
  .btn-submit {
    margin-top: 20px;
    padding: 16px;
    /* Larger touch target */
    font-size: 1.1rem;
  }

  /* 6. Checkbox alignment */
  .checkbox-label {
    font-size: 0.8rem;
    align-items: flex-start;
    /* Ensure box aligns with top line of text */
  }

  .checkbox-label input {
    margin-top: 2px;
    /* Micro-adjustment for alignment */
    transform: scale(1.2);
    /* Make checkbox slightly easier to tap */
  }
}

/* Very Small Screens (iPhone SE, Foldable cover screens) */
@media (max-width: 380px) {
  .form-card h2 {
    font-size: 1.2rem;
  }

  .auth-warning {
    font-size: 0.8rem;
  }
}