/* Mismo aspecto que el formulario anterior de forms.app (agreement.crackingrecords.com). */
:root {
  --bg: #15202b;
  --input: #192734;
  --line: rgba(214, 209, 209, 0.19);
  --text: #d4d9e3;
  --question: #ffffff;
  --answer: #93a5b3;
  --accent: #17bf63;
  --accent-hover: #14a957;
  --error: #ff6b6b;
  --radius: 7px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { background: var(--bg); }

body {
  margin: 0;
  color: var(--text);
  font: 400 17px/1.5 Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); }
strong { color: var(--question); font-weight: 700; }

.shell { max-width: 740px; margin: 0 auto; padding: 20px 16px 80px; }

.progress { position: fixed; inset: 0 0 auto 0; height: 6px; background: rgba(255, 255, 255, 0.2); z-index: 10; }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .3s; }

.brand { display: flex; justify-content: center; margin: 8px 0 48px; }
.brand img { width: 66px; height: auto; }

.form-title { text-align: center; color: var(--question); font-size: 27.2px; font-weight: 600; margin: 0 0 64px; }
.page { padding: 0 16px; }
.page h2 { color: var(--question); font-size: 22px; font-weight: 600; }

.field { margin-bottom: 52px; }
.field > .label { display: flex; gap: 10px; color: var(--question); font-weight: 500; margin-bottom: 4px; }
.num { color: var(--accent); min-width: 1.2em; }
.req { margin-left: 2px; }
.desc { color: var(--question); opacity: .85; font-size: 15.3px; font-weight: 500; font-style: italic; margin: 0 0 16px 30px; white-space: pre-line; }
.field > .label + :not(.desc) { margin-top: 16px; }

.info { color: var(--question); margin-bottom: 40px; }
.info p { margin: 0 0 25px; }
.info p:last-child { margin-bottom: 0; }

input[type=text], input[type=email], input[type=url], select, textarea {
  width: 100%;
  background: var(--input);
  color: var(--answer);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 12px;
  font: inherit;
}
input::placeholder, textarea::placeholder { color: var(--answer); opacity: .6; }
textarea { min-height: 150px; resize: vertical; }
select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2393a5b3' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2 .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 13px 12px; background: var(--input); color: var(--answer);
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.choice:hover { border-color: rgba(23, 191, 99, .6); }
.choice:has(input:checked) { border-color: var(--accent); color: var(--question); }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }

.drop { display: block; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--input); padding: 22px 16px; text-align: center; color: var(--answer); cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--accent); color: var(--question); }
.drop input { display: none; }
.drop small { opacity: .7; }
.file-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.file-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; background: var(--input); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font-size: 15px; color: var(--question); }
.file-list .name { overflow-wrap: anywhere; }
.file-list .desc { margin: 0; font-style: normal; }
.file-list button { background: none; border: 0; color: var(--answer); cursor: pointer; font-size: 20px; }

.error { color: var(--error); font-size: 15px; margin-top: 8px; }
.field.invalid input, .field.invalid select, .field.invalid textarea, .field.invalid .drop, .field.invalid .choice { border-color: var(--error); }

.nav { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
button.btn { font: 600 16px Montserrat, sans-serif; border: 0; border-radius: var(--radius); padding: 12px 18px; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: var(--input); color: var(--question); border: 1px solid var(--line) !important; }
.chev { width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); margin-right: 2px; }
.chev-left { transform: rotate(135deg); margin: 0 0 0 2px; }

.status { margin-top: 16px; text-align: center; color: var(--answer); font-size: 15px; }
.status.err { color: var(--error); }

.done { text-align: center; color: var(--question); padding-top: 40px; }
.done h2 { font-size: 27.2px; }
