:root {
  --black: rgb(0, 0, 0);
  --white: rgb(255, 255, 255);
  --grey: rgb(187, 187, 187);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 25px;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}

.screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 400px;
}

.field {
  margin-bottom: 24px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

input[type='password'],
input[type='text'],
input[type='email'],
input[type='number'],
input[type='date'],
input[type='url'],
textarea,
select {
  width: 100%;
  font-family: inherit;
  font-weight: 400;
  font-size: 16px;
  color: var(--black);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--black);
  border-radius: 0;
  padding: 8px 0;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--grey);
}

input:focus,
textarea:focus,
select:focus {
  border-bottom-width: 2px;
}

button {
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  border-radius: 2px;
  padding: 12px 24px;
  cursor: pointer;
}

button:hover {
  background: var(--white);
  color: var(--black);
}

button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Distinct from the generic dimmed :disabled look above (used while an
   already-valid submission is in flight) — this is the solid grey "form
   isn't ready yet" state, kept fully opaque so the exact grey shows. */
#submit-btn.submit-btn--incomplete {
  background: #c4c4c4;
  color: var(--black);
  border-color: #c4c4c4;
  opacity: 1;
  cursor: not-allowed;
}

#submit-btn.submit-btn--incomplete:hover {
  background: #c4c4c4;
  color: var(--black);
}

.error-text {
  color: var(--black);
  font-size: 14px;
  margin-top: 12px;
}

.required-asterisk {
  color: var(--black);
}

.helper-text {
  color: var(--grey);
  font-size: 13px;
  margin-top: 6px;
}

.screen--form {
  display: block;
  min-height: auto;
  padding: 64px 24px 120px;
}

.form {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.form-section {
  margin-bottom: 64px;
}

.form-section:last-child {
  margin-bottom: 0;
}

.deliverable-list {
  margin-bottom: 16px;
}

.deliverable-card {
  border: 1px solid var(--grey);
  padding: 32px;
  margin-bottom: 24px;
}

.deliverable-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
}

.deliverable-card-header h3 {
  margin: 0;
  font-size: 18px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 0;
  cursor: pointer;
}

.checkbox-option input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: var(--black);
  margin: 0;
}

.size-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 8px;
}

.size-row .size-input {
  flex: 1;
}

.other-input {
  margin-top: 12px;
}

button.remove-deliverable-btn,
button.remove-size-btn {
  background: transparent;
  color: var(--black);
  border: none;
  border-radius: 0;
  font-weight: 400;
  text-decoration: underline;
  padding: 0;
  font-size: 14px;
}

button.remove-deliverable-btn:hover,
button.remove-size-btn:hover {
  background: transparent;
  color: var(--grey);
}

button.add-deliverable-btn,
button.add-size-btn {
  font-size: 14px;
  padding: 10px 20px;
}

.field--invalid input,
.field--invalid select,
.field--invalid textarea {
  border-bottom-width: 2px;
}

.file-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

button.remove-file-btn {
  background: transparent;
  color: var(--black);
  border: none;
  border-radius: 0;
  font-weight: 400;
  text-decoration: underline;
  padding: 0;
  font-size: 14px;
  flex-shrink: 0;
}

button.remove-file-btn:hover {
  background: transparent;
  color: var(--grey);
}

.field-error {
  margin-top: 8px;
  margin-bottom: 0;
}

input[type='file'] {
  font-family: inherit;
  font-weight: 400;
  font-size: 14px;
  color: var(--grey);
  width: 100%;
}

input[type='file']::file-selector-button {
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  border-radius: 2px;
  padding: 8px 16px;
  margin-right: 12px;
  cursor: pointer;
}

input[type='file']::file-selector-button:hover {
  background: var(--white);
  color: var(--black);
}
