:root{
  --bg:#14171A; --bgborder:#343A40; --mink:#E9ECEF; --sink:#ADB5BD;
  --accent:#C8281E; --daccent:#A62018; --frbg:#22262A; 
  --bink:#FFFFFF;
}
/*Both .rovent-form and your inputs are currently set to background-color: var(--frbg) (#22262A). Once you add the 1px solid var(--bgborder) border, the boxes will be outlined, or you can set the inputs to background-color: var(--bg) (#14171A) to give the fields a subtle recessed depth inside the #22262A card.*/

html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color:var(--mink); background:var(--bg); line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--accent)}
h1,h2,h3{line-height:1.2;letter-spacing:-.02em;margin:0 0 .6rem}
h2{font-size:clamp(1.5rem,3vw,2rem);margin-top:0}
h3{font-size:1.1rem}
p{margin:0 0 1rem}
.wrap{width:min(1080px,92vw);margin-inline:auto}
.muted{color:var(--sink)}
.attent{color:var(--accent)}
.grid{display:grid;gap:1.1rem}
.three{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.two{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.divider {
  border: 0;
  border-top: 1px solid var(--bgborder);
  margin: 1.25rem 0;
}
.advisor-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.advisor-row .advisor-title {
  color: var(--mink);
  font-size: 14px;
  white-space: nowrap;
}
/*
.advisor-row label { margin-bottom: 0; }
.advisor-row input { flex: 0 1 240px; max-width: 240px; }*/
.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1rem;
}
.three-up {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem 1rem;
}

.table-wrap {
  border: 1px solid var(--bgborder);
  border-radius: 10px;
  overflow: hidden;
}
.rovent-form .advisor-row label {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
}

.rovent-form .advisor-row label > input[type="text"] {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  margin-bottom: 0;
}

.rovent-form table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
.rovent-form label.consent {
  align-items: flex-start;   /* checkbox aligns with the first line of text */
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 12px;
}

.rovent-form label.consent input {
  margin-top: .3rem;
  flex: 0 0 auto;
}

.rovent-form thead th {
  background: #2B3137;
  color: var(--mink);
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--bgborder);
}

.rovent-form tbody td {
  padding: 8px 12px;
  color: var(--sink);
  border-bottom: 1px solid rgba(52,58,64,.6);
}

.rovent-form tbody tr:nth-child(even) td {
  background: rgba(255,255,255,.02);
}

.rovent-form tbody tr:last-child td { border-bottom: 0; }

.rovent-form tfoot th,
.rovent-form tfoot td {
  background: #2B3137;
  color: var(--sink);
  padding: 10px 12px;
  border-top: 1px solid var(--bgborder);
}

.rovent-form td input {
  margin-bottom: 0;
  background: rgba(20,23,26,.6);
}

/*Center main form*/
form{
	max-width: 800px;
	margin:0 auto;
}
.card{
	background:var(--frbg);
	color: var(--mink);
	border:1px solid var(--frbg);
	border-radius:16px;
	padding:1.4rem;
}
.card p{color:var(--sink);font-size:.95rem}
.card a{font-weight:700;text-decoration:none;font-size:.92rem}
.page-head { text-align: center; margin-bottom: 1.5rem; }

.radio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .25rem .75rem;
}
.radio-grid label { margin-bottom: 0; }

/* Form Container */
.rovent-form {
  background-color: var(--frbg);
  color: var(--mink);
  padding: 24px;
  border: 1px solid var(--bgborder);
  border-radius: 16px;
  max-width: 900px;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 0 1rem;
  align-self: center;
}
/* Form Headings */
.rovent-form h2{
  color: var(--accent);
}
.rovent-form h3 {
  color: var(--mink);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--bgborder);
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.rovent-form .grid{display:grid;gap:1.1rem}
.rovent-form .three{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.rovent-form .two{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.rovent-form p{color:var(--sink);font-size:.95rem}
.rovent-form a{font-weight:700;text-decoration:none;font-size:.92rem}
.rovent-form legend { padding: 0; margin-bottom: .5rem; font-weight: 600; }
/* Field Labels */
.rovent-form .field{
	display: flex;
	flex-direction: column;
	gap: .5rem; 
}
/* Label and control on one line */
.rovent-form label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
/* Input inside a label shrinks instead of wrapping */
.rovent-form label > input[type="text"],
.rovent-form label > input[type="email"],
.rovent-form label > input[type="tel"],
.rovent-form label > input[type="number"] {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 260px;
  margin-bottom: 0;
  
}
.rovent-form .field-grid {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  align-items: center;
  gap: .5rem .75rem;
}

.rovent-form .field-grid label {
  display: block;
  margin-bottom: 0;
}

.rovent-form .field-grid input {
  width: 100%;
  max-width: none;
  margin-bottom: 0;
}


/* Table cells: no bottom margin, or every row gets tall */
.rovent-form td input { 
   margin-bottom: 0;
   background: var(--sink);
   color: var(--bgborder); 
}

/* Helper / Subtext */
.rovent-form .helper-text {
  color: var(--sink);
  font-size: 12px;
  margin-top: 4px;
}
/* Text-like inputs only */
.rovent-form input[type="text"],
.rovent-form input[type="email"],
.rovent-form input[type="tel"],
.rovent-form input[type="number"],
.rovent-form select,
.rovent-form textarea {
  width: 100%;
  box-sizing: border-box;
  background-color: var(--sink);
  color: var(--bgborder);
  border: 1px solid var(--bgborder);
  border-radius: 3px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 16px;
  transition: border-color .2s ease;
}
/* Checkboxes + radios: intrinsic size, never stretched */
.rovent-form input[type="checkbox"],
.rovent-form input[type="radio"] {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}
.rovent-form input::placeholder,
.rovent-form textarea::placeholder {
  color: var(--bink);
}
/* Input Focus State */
.rovent-form input:focus,
.rovent-form select:focus,
.rovent-form textarea:focus {
  outline: none;
  /*border-color: var(--accent);*/
  box-shadow: 0 0 0 2px rgba(200,40,30,.35);
}
/* Submit Button */
.rovent-form button[type="submit"],
.rovent-form input[type="submit"] {
  background-color: var(--accent);
  color: var(--bink);
  border: none;
  border-radius: 3px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.rovent-form button[type="submit"]:hover,
.rovent-form input[type="submit"]:hover {
  background-color: var(--daccent);
}

.form-actions {
  display: flex;
  gap: .75rem;
  justify-content: flex-end;   /* was the default, flex-start */
  margin-top: 1.5rem;
}

.btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, transform .12s ease, box-shadow .2s ease;
}

.btn-primary {
  background-image: linear-gradient(180deg, #D93A2F, var(--accent));
  color: var(--bink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 6px 16px rgba(200,40,30,.28);
}

.btn-primary:hover {
  background-image: linear-gradient(180deg, #E2463A, var(--daccent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 8px 22px rgba(200,40,30,.38);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 3px 10px rgba(200,40,30,.30);
}

.btn-secondary {
  background: transparent;
  color: var(--sink);
  border-color: var(--bgborder);
}

.btn-secondary:hover {
  color: var(--mink);
  border-color: var(--sink);
  background: rgba(255,255,255,.03);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(200,40,30,.40);
}

/* Address rows: stacked labels, full-width fields 
.rovent-form .two-up label,
.rovent-form .three-up label {
  display: block;
  margin-bottom: 0;
}

.rovent-form .two-up label > input,
.rovent-form .three-up label > input {
  width: 100%;
  max-width: none;
  margin-top: .25rem;
  margin-bottom: 0;
}*/
.rovent-form .addr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem 1rem;
  align-items: end;          /* ← inputs align on their bottom edge */
}

.rovent-form .addr-grid > * {
  min-width: 0;          /* ← lets the columns actually shrink */
}


.rovent-form .addr-grid .span-2 {
  grid-column: span 2;
}

.rovent-form .addr-grid label {
  display: block;
  margin-bottom: 0;
  /*white-space: nowrap;        ← stops "Street Address:" wrapping */
}

.rovent-form .addr-grid label > input {
  width: 100%;
  max-width: none;
  margin-top: .25rem;
  margin-bottom: 0;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


fieldset { min-width: 0;}

/* Stack layout on mobile screens */
@media(max-width:760px){
  .rovent-form .addr-grid { grid-template-columns: 1fr; }
  .rovent-form .addr-grid .span-2 { grid-column: auto; }
  .radio-grid { grid-template-columns: 1fr; }
}


@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}