:root {
  --main:#149bb2;
  --secondary:#006666;
  --paper:#f5f5f7;
  --ink:#333333;
  --contentW:min(880px,92vw);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:"Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial;
  line-height:1.55;
}
a{color:var(--secondary); text-decoration:none}
a:hover{text-decoration:underline}
.container{width:var(--contentW); margin:0 auto; padding-inline:24px}

main{padding:28px 0}
h1{color:#222; text-align:center; font-weight:800; letter-spacing:.2px}

/* FORM */
form{
  background:#fff;
  border:2px solid var(--main);
  border-radius:20px;
  padding:24px;
  box-shadow:0 6px 18px rgba(0,0,0,.04);
}
fieldset{border:0; padding:0; margin:0 0 22px}
legend{font-weight:700; margin-bottom:10px; color:#232323}
label{display:block; margin-bottom:8px}
textarea{width:100%; padding:12px 14px; border-radius:10px; border:1.5px solid #ddd;
  font:inherit; line-height:1.4; resize:none;}
textarea:focus{outline:none; border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0,102,102,.15);}

/* FORM GRID */
.form-grid{
  display:grid;
  grid-template-columns: 180px 1fr;
  gap:14px 18px;
  align-items:center;
}
.form-grid .full-row{ grid-column: 1 / -1; }
.form-grid input[type="text"],
.form-grid input[type="email"],
.form-grid input[type="tel"],
.form-grid select {
  width:100%;
  padding:12px 14px;
  border:1.5px solid #ddd;
  border-radius:10px;
  font:inherit;
  line-height:1.3;
  background:#fff;
}
.form-grid input:focus,
.form-grid select:focus {
  outline:none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0,102,102,.15);
}
.form-grid label{ margin:0; font-weight:600; color:#2a2a2a; }
.form-grid .consent{ display:flex; align-items:flex-start; gap:10px; font-weight:500; color:#444; }

/* "Other" input styling */
.other-input {
  margin-top: 8px;
  resize: none;
  width: 100%;
  grid-column: 2; /* stay in the right column (same width as other fields) */
  max-width: 580px;
  justify-self: end; /* aligns the input element to the right within the grid column */
}

@media (max-width: 560px){
  .form-grid{ grid-template-columns: 1fr; }
  .form-grid label{ margin-bottom:4px; }
}

/* BUTTONS */
button{
  background:var(--secondary); color:#fff; border:none;
  padding:12px 18px; border-radius:12px;
  font-weight:800; cursor:pointer;
  transition: transform .12s ease, background .2s ease;
}
button:hover{ background:#0a8585; transform: translateY(-1px) }
button:active{ transform: scale(.98) }

/* RESULT / THANK YOU */
.result{margin-top:24px; padding:16px; border-radius:14px; font-weight:700}
.high{background:#e0f7f8; color:#004c4c; border:1px solid #b2ebf2}
.low{background:#ffe6ea; color:#a31225; border:1px solid #ffd0d6}

/* FOOTER */
footer{padding:28px 0; text-align:center; color:#6a6a6a}
