/* Simple responsive styling for the tenant pre-screening form */
:root{
  --max-width:900px;
  --accent:#0b63ff;
  --muted:#666;
  --bg:#f7f7fb;
  --white:#fff;
}
*{box-sizing:border-box}

/* Home page specific styles */
body.home-page{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;
  /* Background image - using image.png */
  /* Fallback gradient in case image doesn't load */
  background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 25%, #FF6B6B 75%, #FF8E53 100%);
  background-image: url('image.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color:#111;
  margin:0;
  padding:0;
  min-height:100vh;
  position:relative;
  overflow-x:hidden;
}

/* Overlay for better text readability (optional - can be removed if not needed) */
body.home-page::before{
  content:'';
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(255,255,255,0.1);
  z-index:0;
  pointer-events:none;
}

/* Decorative background icons - hidden by default, can be shown if needed */
.bg-decorations{
  display:none;
}

.home-container{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:100vh;
  padding:20px;
  position:relative;
  z-index:1;
}

.home-dialog{
  background:var(--white);
  border-radius:16px;
  padding:48px 40px;
  max-width:600px;
  width:100%;
  box-shadow:0 20px 60px rgba(0,0,0,0.15);
  text-align:left;
  position:relative;
  z-index:1;
}

.home-title{
  font-size:2rem;
  font-weight:700;
  color:#1a1a2e;
  margin:0 0 20px 0;
  line-height:1.2;
}

.home-body{
  font-size:1.05rem;
  color:#555;
  line-height:1.7;
  margin:0 0 32px 0;
}

.home-button-wrapper{
  text-align:center;
  margin:32px 0;
}

.home-button{
  display:inline-block;
  background:linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color:white;
  padding:14px 32px;
  border-radius:10px;
  text-decoration:none;
  font-weight:600;
  font-size:1.1rem;
  transition:transform 0.2s, box-shadow 0.2s;
  box-shadow:0 4px 15px rgba(102, 126, 234, 0.4);
}

.home-button:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(102, 126, 234, 0.5);
}

.home-separator{
  height:1px;
  background:#e6e9ef;
  margin:24px 0;
}

.home-footer{
  font-size:0.9rem;
  color:#999;
  margin:0;
  line-height:1.5;
}

/* Regular form page styles */
body:not(.home-page){
  font-family:system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;
  background:linear-gradient(180deg,var(--bg),#fff);
  color:#111;
  margin:0;
  padding:24px;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  min-height:100vh;
}
.container{
  width:100%;
  max-width:var(--max-width);
  background:var(--white);
  border-radius:12px;
  padding:24px;
  box-shadow:0 6px 18px rgba(12,20,40,0.08);
}
h1{margin-top:0;font-size:1.5rem}
.lead{color:var(--muted);margin-top:4px}
form fieldset{
  border:1px solid #e6e9ef;
  padding:16px;
  margin:12px 0;
  border-radius:8px;
}
legend{font-weight:600;padding:0 6px}
label{display:block;margin-top:10px;font-size:0.95rem}
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea, select {
  width:100%;
  padding:10px 12px;
  margin-top:6px;
  border:1px solid #d7dbe6;
  border-radius:6px;
  font-size:0.95rem;
}
textarea{resize:vertical}
.radio-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:6px}
.buttons{display:flex;gap:12px;align-items:center;margin-top:12px}
button{
  background:var(--accent);
  color:white;
  border:none;
  padding:10px 14px;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
}
button.secondary{background:#eef2ff;color:#0b63ff;border:1px solid #dbe7ff}
button:disabled{opacity:0.6;cursor:not-allowed}
.req{color:#d00;margin-left:4px}
#formMessage{margin-top:12px;padding:10px;border-radius:8px}
#formMessage.hidden{display:none}
/* Mobile-friendly responsive styles */
@media (max-width:768px){
  body.home-page{
    background-attachment: scroll; /* Better performance on mobile */
  }
  
  .home-container{
    padding:16px;
    align-items:flex-start;
    padding-top:40px;
    padding-bottom:40px;
  }
  
  .home-dialog{
    padding:32px 24px;
    border-radius:12px;
  }
  
  .home-title{
    font-size:1.5rem;
    margin-bottom:16px;
  }
  
  .home-body{
    font-size:1rem;
    line-height:1.6;
    margin-bottom:24px;
  }
  
  .home-button-wrapper{
    margin:24px 0;
  }
  
  .home-button{
    padding:12px 24px;
    font-size:1rem;
    width:100%;
    max-width:100%;
    display:block;
  }
  
  .home-separator{
    margin:20px 0;
  }
  
  .home-footer{
    font-size:0.85rem;
  }
}

@media (max-width:480px){
  .home-container{
    padding:12px;
    padding-top:30px;
    padding-bottom:30px;
  }
  
  .home-dialog{
    padding:24px 20px;
    border-radius:10px;
  }
  
  .home-title{
    font-size:1.3rem;
    margin-bottom:14px;
  }
  
  .home-body{
    font-size:0.95rem;
    margin-bottom:20px;
  }
  
  .home-button{
    padding:11px 20px;
    font-size:0.95rem;
  }
}

@media (max-width:600px){
  .container{padding:16px}
  h1{font-size:1.25rem}
}
