/* Website Information Form - all rules are scoped to .wif so they don't affect the rest of the site */

.wif {
  --wif-blue: #1f4374;
  --wif-muted: #5b6b84;
  --wif-border: #e1e6ee;
  --wif-tint: #f4f7fb;
  color: var(--wif-blue);
  font-family: 'Be Vietnam Pro', sans-serif;
  max-width: 1040px;
}

/* Header */

.wif .wif-header {
  margin: 50px 0 8px;
}

.wif .wif-header h1 {
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--wif-blue);
}

.wif .wif-header p {
  color: var(--wif-muted);
  margin-bottom: 8px;
  max-width: 760px;
}

.wif .wif-required-note {
  font-size: 13px;
  color: var(--wif-muted);
}

/* Section cards */

.wif .wif-section {
  background: #fff;
  border: 1px solid var(--wif-border);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .05);
  padding: 8px 28px 12px;
  margin: 24px 0;
}

.wif .wif-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wif-blue);
  padding: 20px 0 4px;
  margin: 0;
}

.wif .wif-section-note {
  font-size: 14px;
  color: var(--wif-muted);
  margin: 4px 0 8px;
}

.wif .wif-section-note ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

/* Rows: label + help on the left, field on the right */

.wif .wif-field {
  display: grid;
  gap: 8px 40px;
  padding: 18px 0;
  border-top: 1px solid var(--wif-border);
}

.wif .wif-field[hidden] {
  display: none;
}

.wif .wif-section-title + .wif-field, .wif .wif-section-note + .wif-field {
  border-top: 0;
}

@media (min-width: 768px) {
  .wif .wif-field {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
  }
}

.wif .wif-label .form-label {
  font-weight: 600;
  margin: 0;
  color: var(--wif-blue);
}

.wif .wif-label .form-text {
  color: var(--wif-muted);
  font-size: 13px;
  margin: 4px 0 0;
  line-height: 1.45;
}

.wif .wif-required::after {
  content: " *";
  color: #b42318;
}

/* Controls */

.wif .form-control, .wif .form-select {
  border-color: #cfd7e3;
  border-radius: 8px;
  padding: .5rem .75rem;
  font-size: 15px;
}

.wif .form-control:focus, .wif .form-select:focus, .wif .form-check-input:focus {
  border-color: var(--wif-blue);
  box-shadow: 0 0 0 3px rgba(31, 67, 116, .15);
}

.wif .form-check-input:checked {
  background-color: var(--wif-blue);
  border-color: var(--wif-blue);
}

.wif textarea.form-control {
  min-height: 110px;
}

.wif .wif-w-sm {
  max-width: 220px;
}

.wif .wif-w-md {
  max-width: 380px;
}

.wif .wif-checks {
  columns: 2 200px;
  column-gap: 24px;
  background: var(--wif-tint);
  border-radius: 8px;
  padding: 12px 16px;
}

.wif .wif-checks .form-check {
  break-inside: avoid;
  font-size: 14px;
  margin-bottom: 6px;
}

/* Submit */

.wif .wif-actions {
  margin: 8px 0 60px;
  text-align: right;
}

.wif .wif-actions .btn {
  background: var(--wif-blue);
  border-color: var(--wif-blue);
  border-radius: 8px;
  font-weight: 600;
  padding: .7rem 1.6rem;
}

.wif .wif-actions .btn:hover {
  background: #17345a;
  border-color: #17345a;
}

@media (max-width: 767.98px) {
  .wif .wif-section {
    padding: 4px 18px 8px;
  }
}

@media (max-width: 767.98px) {
  .wif .wif-actions .btn {
    width: 100%;
  }
}

