

.crew-forms-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
}

.crew-forms-body {
  overflow-x: hidden;
  background: var(--page-bg);
}

.crew-page-header {
  margin-bottom: 18px;
  border-radius: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--traffic-blue) 0%, var(--traffic-blue-dark) 100%);
  box-shadow: 0 10px 26px rgba(0, 0, 80, 0.15);
}

.crew-page-header .header-title h1 {
  margin: 0;
  color: var(--comp-color);
  font-size:17px;
}

.crew-page-header .header-subtitle {
  color: var(--comp-blue);
  margin-top: 6px;
}

.crew-forms-body form {
  margin: 0;
}

.crew-forms-body .section {
  margin-bottom: 16px;
}

.crew-forms-body .section h3 {
  margin: 0;
  padding: 6px 6px;
  border: 1px solid rgba(0, 0, 255, 0.2);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(135deg, var(--traffic-blue) 0%, var(--traffic-blue-dark) 100%);
  color: var(--comp-blue);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-align: center;
}

.crew-forms-body .inner-gradient {
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 122, 0, 1), rgb(255, 107, 2));
}

.crew-forms-body .card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 255, 0.14);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(8, 24, 50, 0.08);
}

.crew-forms-body .card.empty {
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
  border-radius: 10px;
  border-top: 1px solid rgba(0, 0, 255, 0.14);
}

.crew-forms-body .cards-grid {
  margin-top: 6px;
}

.crew-forms-body :is(form, .card) .form-line {
  margin-bottom: 10px;
  gap: 8px;
}

.crew-forms-body :is(form, .card) .form-line label {
  color: var(--text-dark);
  font-weight: 700;
}

.crew-forms-body :is(form, .card) .form-line :is(input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]), textarea, select) {
  border: none;
  border-bottom: 1px solid var(--traffic-blue);
  border-radius: 0px;
  background: transparent;
  font-size: 14px;
  text-align: center;
}

.crew-forms-body :is(form, .card) .form-line :is(input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]), textarea, select):focus {
  border-bottom: 1px solid var(--traffic-blue);
}

.crew-forms-body .cf-note {
  margin: 8px 0 0;
  color: var(--text-muted, #4d5f78);
  text-align: center;
  font-size: 0.78rem;
}

.crew-forms-body .cf-note-warning {
  margin: 8px 0;
  text-align: center;
  font-weight: 700;
  color: var(--danger, #9a2300);
}

.crew-forms-body :is(.cf-additional-info-card, .cf-lined-fields-card) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crew-forms-body .cf-additional-info-section {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.crew-forms-body .section-split > .cf-additional-info-section {
  flex: 1 1 100%;
}

.crew-forms-body .cf-additional-info-hint {
  margin: 0;
  color: #4d5f78;
  font-size: 0.85rem;
}

.crew-forms-body :is(.cf-additional-info-card, .cf-lined-fields-card) .form-line {
  margin-bottom: 0;
}

.crew-forms-body :is(.cf-additional-info-card, .cf-lined-fields-card) input {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crew-forms-body .cf-lined-fields-card input {
  padding: 0;
}

.crew-forms-body .list-stack input {
  border: none;
  border-bottom: 1px solid var(--traffic-blue);
  border-radius: 0px;
  background: transparent;
  font-size: 14px;
  text-align: center;
}

.crew-forms-body .cf-submit-row {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.crew-forms-body .sig-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.crew-forms-body .sig-modal-header h3 {
  margin: 0;
}

.crew-forms-body .jsa-summary-card {
  padding: 0;
  overflow: hidden;
  min-height: 250px;
  max-height: 360px;
  display: flex;
  flex-direction: column;
}

.crew-forms-body .jsa-summary-header {
  background: linear-gradient(135deg, var(--traffic-blue) 0%, var(--traffic-blue-dark) 100%);
  color: var(--comp-blue, var(--comp-color));
  padding: 10px 10px;
  margin: 0;
  font-size: 0.95rem;
  text-align: center;
}

.crew-forms-body .jsa-summary-body {
  padding: 10px 10px;
  background: var(--card-bg);
  margin: 0;
  display: block;
  flex: 1;
  overflow-y: auto;
}

.crew-forms-body .jsa-summary-actions {
  padding: 12px 10px;
  text-align: center;
  background: var(--card-bg);
  border-top: 1px solid rgba(0, 0, 255, 0.1);
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.crew-forms-body .jsa-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.crew-forms-body .jsa-cols {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.crew-forms-body .jsa-col {
  flex: 1 1 300px;
  min-width: 250px;
}

.crew-forms-body .sig-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.crew-forms-body .card .disclaimer {
  margin-top: 12px;
  margin-bottom: 12px;
  padding: 12px;
  font-size: 0.92rem;
  line-height: 1.45;
  border-radius: 8px;
  background: rgba(0, 0, 255, 0.04);
  border: 1px solid rgba(0, 0, 255, 0.12);
}

.crew-forms-body .card.empty p {
  margin: 0;
}

.crew-forms-body .list-block {
  margin: 0;
}

.crew-forms-body .sig-placeholder {
  font-family: var(--font-base);
}

@media (max-width: 768px) {
  .crew-forms-container {
    padding: 12px;
  }

  .crew-page-header {
    padding: 14px;
    margin-bottom: 12px;
  }

  .crew-page-header .header-title {
    text-align: center;
  }

  .crew-forms-body :is(form, .card) .form-line {
    margin-bottom: 6px;
    gap: 6px;
  }

  .crew-forms-body :is(form, .card) .form-line label {
    padding-top: 0;
  }

  .crew-forms-body :is(form, .card) .form-line :is(
    input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
    textarea,
    select
  ) {

    min-height: 15px;
  }

  .crew-forms-body .jsa-action-row > * {
    width: 100%;
  }

  .crew-forms-body .jsa-col {
    min-width: 100%;
  }

  .crew-forms-body .cf-submit-row {
    justify-content: stretch;
  }

}

@media (min-width: 769px) and (max-width: 1024px) {
  .crew-forms-container {
    max-width: 980px;
    padding: 16px;
  }

  .crew-page-header .header-title {
    text-align: center;
  }
}
