/* ===========================
   FINDROOM — FORM PAGE CSS
   =========================== */

.form-page {
  min-height: 100vh;
  padding-bottom: 80px;
}

/* ========================
   FORM HEADER
   ======================== */

.form-header {
  padding: 48px 24px 32px;
  text-align: center;
  position: relative;
}

.form-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
}

.form-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.form-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
}

.form-step-dot.active {
  background: var(--orange);
  width: 24px;
  border-radius: 4px;
}

/* ========================
   MAIN FORM CARD
   ======================== */

.form-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 28px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.form-section-title span {
  font-size: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid.single {
  grid-template-columns: 1fr;
}

.form-full {
  grid-column: 1 / -1;
}

/* ========================
   INPUT ENHANCEMENTS
   ======================== */

.input-with-btn {
  display: flex;
  gap: 8px;
}

.input-with-btn .input {
  flex: 1;
}

.location-capture-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  font-family: var(--font);
}

.location-capture-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-dim);
}

.location-capture-btn.captured {
  border-color: var(--success);
  color: var(--success);
  background: rgba(34, 197, 94, 0.08);
}

.location-status {
  font-size: 0.8125rem;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========================
   RENT DISPLAY
   ======================== */

.rent-preview {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.rent-preview .monthly {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.rent-preview .amount {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.02em;
}

/* ========================
   AVAILABILITY TOGGLE
   ======================== */

.availability-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.availability-info h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.availability-info p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ========================
   SUBMIT AREA
   ======================== */

.form-submit-area {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-submit-area .btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
}

.form-terms {
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}

.form-terms a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* ========================
   WHATSAPP HELP
   ======================== */

.whatsapp-help {
  max-width: 560px;
  margin: 40px auto 0;
  padding: 0 24px;
}

.whatsapp-card {
  background: rgba(37, 211, 102, 0.06);
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: var(--transition);
}

.whatsapp-card:hover {
  background: rgba(37, 211, 102, 0.1);
  transform: translateY(-1px);
}

.whatsapp-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.whatsapp-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #25d366;
  margin-bottom: 2px;
}

.whatsapp-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ========================
   SUCCESS STATE
   ======================== */

.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,13,13,0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  text-align: center;
  padding: 24px;
}

.success-overlay .success-icon {
  width: 80px;
  height: 80px;
  background: rgba(34, 197, 94, 0.12);
  border: 2px solid var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
  animation: successPop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes successPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-overlay h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.success-overlay p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 320px;
  margin: 0 auto 32px;
}

/* ========================
   AUTH GUARD OVERLAY
   ======================== */

.auth-guard {
  position: fixed;
  inset: 0;
  background: rgba(13,13,13,0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  text-align: center;
  padding: 24px;
}

.auth-guard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 380px;
  width: 100%;
}

.auth-guard-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.auth-guard-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.auth-guard-card .btn {
  width: 100%;
  justify-content: center;
}

/* ========================
   RESPONSIVE
   ======================== */

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 0 16px; }
  .input-with-btn { flex-direction: column; }
  .location-capture-btn { width: 100%; justify-content: center; }
}
