:root{
  --bg: #f6f8fc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;

  /* pastel accents */
  --accent: #7aa7ff;      /* soft blue */
  --accent-2: #7ce0c3;    /* mint */
  --accent-3: #ffd59a;    /* peach */

  --border: rgba(15, 23, 42, 0.10);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.06);

  --radius: 18px;
  --radius-sm: 12px;
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 700px at 15% 0%, rgba(122,167,255,.25), transparent 60%),
              radial-gradient(900px 600px at 85% 10%, rgba(124,224,195,.22), transparent 55%),
              radial-gradient(900px 600px at 55% 95%, rgba(255,213,154,.18), transparent 55%),
              var(--bg);
}


/* photo row */
.photos{
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 12px;
}

/* The photo “cards” should NOT impose sizing */
.photos > *{
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  /* stop wrapper from controlling size */
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}

/* The images ARE the size */
.photos img{
  width: 420px;          /* change this to scale up/down */
  height: 275px;         /* change this to scale up/down */

  display: block;

  object-fit: cover;     /* fills the box nicely */
  object-position: center top;

  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: #fff;
}


/* main card */
.card{
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 26px 26px 32px;
}

h1{
  font-size: 36px;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  line-height: 1.05;

  /* tasteful gradient text */
  background: linear-gradient(90deg, #0f172a 0%, #274690 45%, #0f172a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;


}

.container{
  width: min(1080px, 92vw);
  margin: 20px auto 64px;  /* was larger before */
}
.lead{
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* disclaimer chip */
.disclaimer{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(122,167,255,.18), rgba(124,224,195,.14));
  color: #1f2a44;
  font-size: 14px;
  margin-bottom: 10px;
}

label{
  display: block;
  font-weight: 700;
  margin: 10px 0 8px;
}

textarea{
  width: 100%;
  min-height: 100px;
  padding: 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.12);

  background: rgba(255,213,154,0.22);

  color: var(--text);
  line-height: 1.5;
  font-size: 16px;
  outline: none;

  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

textarea::placeholder{
  color: rgba(15,23,42,0.55);
}

textarea:focus{
  border-color: rgba(255,213,154,0.85);
  box-shadow: 0 0 0 5px rgba(255,213,154,0.22);
  background: rgba(255,213,154,0.30);
}

/* buttons */
.actions{
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

button{
  appearance: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 14px;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
}

button.primary{
  color: #0b1220;
  background: linear-gradient(135deg, rgba(122,167,255,.95), rgba(124,224,195,.85));
  box-shadow: 0 14px 28px rgba(122,167,255,.18);
}

button.primary:hover{ box-shadow: 0 18px 34px rgba(122,167,255,.25); }
button.primary:active{ transform: translateY(1px); }

button.ghost{
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

button.ghost:hover{
  background: rgba(15,23,42,0.04);
}

/* output table */
table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

th, td{
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(15,23,42,0.07);
  vertical-align: top;
  font-size: 14px;
}

th{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(15,23,42,0.70);
  background: linear-gradient(90deg, rgba(122,167,255,.10), rgba(124,224,195,.08));
}

tr:last-child td{ border-bottom: 0; }

/* risk pill (optional — if you add classes later) */
.risk{
  display: inline-flex;
  min-width: 44px;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid rgba(15,23,42,0.10);
}

/* risk pill */
.risk{
  display: inline-flex;
  min-width: 44px;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid rgba(15,23,42,0.10);
}

.risk-low{ background:#d1fae5; color:#065f46; }
.risk-med{ background:#fef3c7; color:#92400e; }
.risk-high{ background:#fee2e2; color:#7f1d1d; }

/* responsive */
@media (max-width: 920px){
  .photos{
    flex-direction: column;
    align-items: center;
  }
  .photos img{
    width: min(520px, 92vw);
    height: 280px;
  }
  .card{
    padding: 22px 18px 20px;
  }
  h1{
    font-size: 28px;
  }
  label{
    display: inline-block;
    font-weight: 800;
    margin: 12px 0 10px;
    font-size: 16px;
    color: rgba(15,23,42,0.90);
  }
}
