@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root{
  --bg:#f8fafb;
  --text:#1b2733;
  --muted:#5f6b7a;
  --primary:#0a7d3b; /* green accent similar to screenshot */
  --border:#d7dee5;
  --input-bg:#ffffff;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,Helvetica,sans-serif;
  background:var(--bg);
  color:var(--text);
  font-size:14px; /* compact base font */
}

.container{max-width:860px;margin:24px auto;padding:0 16px}

/* Page layout with left/right ad sidebars */
.layout{
  max-width:1400px;
  margin:0 auto;
  display:grid;
  grid-template-columns: 300px 1fr 300px;
  gap:16px;
  padding:12px 8px;
}
.sidebar{position:relative}
.sidebar .ad-box{
  position:sticky;
  top:12px;
  background:transparent;
  border:none;
  color:inherit;
  border-radius:0;
  min-height:600px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:12px;
  font-weight:600;
}

.page-header{margin-bottom:8px;text-align:center}
.page-header .accent{width:48px;height:3px;background:var(--primary);border-radius:2px;margin:0 auto 10px}
.page-header h1{margin:0 0 4px 0;font-weight:700;font-size:22px}
.page-header .subtext{margin:0;color:var(--muted);font-size:12px}
.page-header a{color:#2b7fff;text-decoration:none}
.page-header a:hover{text-decoration:underline}

.form-grid{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap:10px 16px;
  align-items:start;
  background:#fff;
  border:1px solid var(--border);
  border-radius:8px;
  padding:16px;
  box-shadow:0 1px 2px rgba(0,0,0,.03);
}

label{font-weight:600;color:#2a3642;padding-top:6px}

.field{display:flex;flex-direction:column;gap:4px}
.field.readonly input{background:#f3f6f8}

input[type="text"], select{
  height:34px;
  padding:0 10px;
  border:1px solid var(--border);
  border-radius:4px;
  background:var(--input-bg);
  font-size:13px;
}
input[type="text"]:focus, select:focus{outline:none;border-color:#8ebae5;box-shadow:0 0 0 3px rgba(30,119,219,.15)}

small{color:var(--muted);font-size:12px}

.section-title{
  grid-column:1 / -1;
  margin:12px 0 6px 0;
  font-weight:700;
  color:#2a3642;
  font-size:14px;
}

/* Ensure labels align top and fields align left, avoiding float-like behavior */
.form-grid > label{align-self:center}

.actions{
  grid-column:1 / -1;
  display:flex;
  justify-content:flex-end;
  margin-top:6px;
}

.btn{border:none;border-radius:4px;padding:10px 14px;font-weight:600;cursor:pointer}
.btn.secondary{background:#eef2f5;color:#2a3642}
.btn.secondary:hover{background:#e3e9ee}

/* Bottom CTA bar */
.cta-bar{
  position:sticky;
  bottom:0;
  display:block;
  width:100%;
  text-align:center;
  background:var(--primary);
  color:#fff;
  text-decoration:none;
  padding:10px 12px;
  font-weight:700;
  box-shadow:0 -2px 8px rgba(0,0,0,.06);
}
.cta-bar:hover{filter:brightness(.96)}

/* Responsive */
@media (max-width:720px){
  .form-grid{grid-template-columns:1fr}
}

/* Collapse sidebars on smaller screens */
@media (max-width:1080px){
  .layout{grid-template-columns: 1fr;}
  .sidebar{display:none}
}

/* Toast popup */
.toast{
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color:#fff;
  padding:10px 14px;
  border-radius:6px;
  box-shadow:0 6px 20px rgba(0,0,0,.15);
  font-weight:600;
  display:none;
  z-index:9999;
  max-width:90vw;
}
.toast.show{display:block;animation:fadeSlide .2s ease-out}
.toast.success{background:#0a7d3b}
.toast.danger{background:#b91c1c}

@keyframes fadeSlide{
  from{opacity:0; transform:translate(-50%, -6px)}
  to{opacity:1; transform:translate(-50%, 0)}
}
