/* hire.bravo-solutions.com — application form styling, modelled on the Airtable form layout */

:root {
  --text: #1d1f25;
  --muted: #6b7280;
  --muted-2: #8b9098;
  --border: #e2e4e8;
  --border-hover: #c7cbd1;
  --blue: #166ee1;
  --black: #16181d;
  --bg: #ffffff;
  --bg-soft: #f7f8f9;
  --danger: #d93025;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, "Noto Sans Georgian", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.subtitle a {
  color: var(--blue);
  text-decoration: none;
}

.subtitle a:hover {
  text-decoration: underline;
}

.rule {
  height: 1px;
  background: var(--border);
  margin: 28px 0 32px;
}

/* ---------- role summary ---------- */

.summary {
  margin: 0 0 40px;
}

.summary h2 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
}

.summary ul {
  margin: 0;
  padding-left: 20px;
  color: #3d424b;
}

.summary li {
  margin-bottom: 6px;
}

.summary li::marker {
  color: var(--muted-2);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

/* ---------- expandable full description ---------- */

.full-desc {
  margin-top: 18px;
}

.full-desc summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  padding: 6px 0;
}

.full-desc summary::-webkit-details-marker {
  display: none;
}

.full-desc summary:hover {
  text-decoration: underline;
}

.full-desc summary svg {
  flex: none;
  transition: transform 0.15s ease;
}

.full-desc[open] summary svg {
  transform: rotate(90deg);
}

.full-desc .when-open {
  display: none;
}

.full-desc[open] .when-open {
  display: inline;
}

.full-desc[open] .when-closed {
  display: none;
}

.full-desc .body {
  margin-top: 8px;
  padding: 4px 0 4px 2px;
}

.full-desc h3 {
  margin: 26px 0 10px;
  font-size: 17px;
  font-weight: 700;
}

.full-desc h3:first-child {
  margin-top: 0;
}

.full-desc p {
  margin: 0 0 12px;
  color: #3d424b;
}

.full-desc ul {
  margin: 0;
  padding-left: 20px;
  color: #3d424b;
}

.full-desc li {
  margin-bottom: 6px;
}

.full-desc li::marker {
  color: var(--muted-2);
}

.chip {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 13px;
  color: #3d424b;
}

/* ---------- form ---------- */

.field {
  margin-bottom: 22px;
}

.field label,
.field .label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}

.hint {
  font-weight: 400;
  color: var(--muted-2);
  font-size: 13px;
  margin-left: 6px;
}

.req {
  color: var(--danger);
  margin-left: 3px;
}

.optional {
  font-weight: 400;
  color: var(--muted-2);
  font-size: 13px;
  margin-left: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* keeps iOS Safari from zooming on focus */
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
textarea:hover {
  border-color: var(--border-hover);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 110, 225, 0.14);
}

textarea {
  min-height: 118px;
  resize: vertical;
}

.field.invalid input,
.field.invalid textarea,
.field.invalid .dropzone {
  border-color: var(--danger);
}

.error {
  display: none;
  margin-top: 6px;
  color: var(--danger);
  font-size: 13px;
}

.field.invalid .error {
  display: block;
}

/* ---------- file dropzone ---------- */

.dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

/* `display: flex` above would otherwise beat the hidden attribute's UA rule. */
.dropzone[hidden] {
  display: none;
}

.dropzone:hover {
  border-color: var(--border-hover);
}

.dropzone.dragover {
  border-color: var(--blue);
  background: rgba(22, 110, 225, 0.04);
}

.dropzone svg {
  flex: none;
  color: var(--muted-2);
}

.dropzone input[type="file"] {
  display: none;
}

.file-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.file-chip .name {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-chip .size {
  color: var(--muted-2);
  font-size: 13px;
  flex: none;
}

.file-chip button {
  margin-left: auto;
  flex: none;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
}

.file-chip button:hover {
  color: var(--danger);
  background: rgba(217, 48, 37, 0.08);
}

/* ---------- actions ---------- */

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
}

.clear {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  padding: 8px 4px;
  color: var(--blue);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  border-radius: 8px;
}

.clear:hover {
  text-decoration: underline;
}

.submit {
  border: 0;
  background: var(--black);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.12s ease, transform 0.06s ease;
}

.submit:hover {
  opacity: 0.88;
}

.submit:active {
  transform: translateY(1px);
}

.submit[disabled] {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.form-error {
  display: none;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 48, 37, 0.3);
  background: rgba(217, 48, 37, 0.06);
  color: var(--danger);
  border-radius: var(--radius);
  font-size: 14px;
}

.form-error.show {
  display: block;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- success state ---------- */

.done {
  text-align: center;
  padding: 56px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
}

.done .check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #12805c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.done h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.done p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- index page ---------- */

.jobs {
  display: grid;
  gap: 14px;
}

.job-card {
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.job-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 2px 10px rgba(16, 20, 28, 0.06);
}

.job-card h2 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
}

.job-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 13px;
}

footer a {
  color: var(--muted);
}

@media (max-width: 640px) {
  .page {
    padding: 32px 18px 72px;
  }

  h1 {
    font-size: 28px;
  }

  .rule {
    margin: 22px 0 26px;
  }

  .actions {
    margin-top: 32px;
  }

  .submit {
    padding: 12px 22px;
  }

  .dropzone {
    min-height: 96px;
    font-size: 14px;
  }
}
