* {
    box-sizing: border-box;
}

html,
body {
    font-family: var(--font-family);
    font-size: var(--font-size-75);
    background-color: var(--color-background);
    margin: 0;
}

h1 {
    font-size: var(--font-size-300);
    line-height: var(--line-height-300);
    color: var(--color-blue-1);
}

h2 {
    margin: 0 0 16px 0;
    color: var(--color-blue-1);
    font-size: var(--font-size-200);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-200);
}

h3 {
    font-size: var(--font-size-100);
    line-height: var(--line-height-100);
    font-weight: var(--font-weight-semibold);
}

p {
    margin-block-start: 0;
    line-height: 1.4;
}

a,
span#military-info {
    color: var(--color-blue-1);
    text-decoration: underline;
    /* font-weight: var(--font-weight-semibold); */
}

span#military-info {
    cursor: pointer;
}

b,
strong {
    font-weight: var(--font-weight-semibold);
}

label:not(.checkBox label) {
    font-size: var(--font-size-50);
    line-height: var(--line-height-100);
    font-weight: var(--font-weight-regular);
    margin-bottom: 4px;
}

select,
input[type="date"],
input[type="text"],
input[type="number"] {
    font-family: var(--font-family);
    font-size: var(--font-size-50);
    line-height: var(--line-height-100);
    font-weight: var(--font-weight-regular);
    border: 1px solid var(--color-primary-150);
    height: 32px;
    width: 100%;
    border-radius: 4px;
    padding-left: 8px;
}

select[disabled="disabled"],
input[type="date"][disabled="disabled"],
input[type="text"][disabled="disabled"],
input[type="number"][disabled="disabled"] {
    background: var(--color-gray-200);
    color: var(--color-gray-500);
    border: none;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1px solid var(--color-primary-150);
    display: grid;
    place-content: center;
    border-radius: 4px;
    appearance: none;
}

input[type="checkbox"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--color-blue-1);
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

input[type="checkbox"]:checked {
    border: none;
    background-color: var(--color-blue-2);
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
    box-shadow: inset 1em 1em var(--color-white);
}

div.checkBox>div {
    display: flex;
    gap: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    font-size: var(--font-size-50);
}

table th,
table td {
    border: 1px solid var(--color-primary-100);
    padding: 8px;
    text-align: left;
}

table th {
    background-color: var(--color-primary-100);
    font-weight: var(--font-weight-semibold);
}

table td {
    background-color: var(--color-white);
}

table tr th:last-child,
table tr td:last-child {
    text-align: right;
}

table.simple {
    margin-top: 0;
}

table.simple th,
table.simple td {
    padding: 6px 0;
    border: 0
}


/* Review for pilot list*/
table.review {
    margin-top: 12px;
}

table.review th,
table.review td {
    padding: 6px 12px;
    border: 0
}

table.review tbody tr th:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

table.review tbody tr th:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

table.review tr th:last-child,
table tr td:last-child {
    padding-right: 0;
}

.footer {
    padding: 12px 0;
    font-size: var(--font-size-50);
}

.container {
    max-width: 1264px;
    margin: 24px auto;
    padding: 0 15px;
}


/*
 * Helpers
 */

.mb-1 {
    margin-bottom: var(--spacing-4);
}

.mb-3 {
    margin-bottom: var(--spacing-3);
}

.mt-1 {
    margin-top: var(--spacing-4);
}

.mt-05 {
    margin-top: var(--spacing-2);
}

/*
 * Layout (Form)
 */

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.form-wrapper {
    display: flex;
    gap: 24px;
}

.form-container {
    border-radius: 4px;
    width: 100%;
}

.form-fixed {
    background-color: var(--color-white);
    height: 100%;
    min-width: 280px;
    padding: 16px 24px;
    position: sticky;
    top: 24px;
}

.form-fixed h2 {
    margin: 0;
    color: var(--color-blue-1);
    font-size: var(--font-size-200);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-200);
}

.form-fixed__text {
    display: inline-block;
    margin-top: 12px;
}

.form-fixed__price {
    display: block;
    font-size: var(--font-size-400);
    font-weight: var(--font-weight-bold);
}

.form-fixed__buttons {
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.form-fixed__buttons button {
    width: 100%;
}

.form-block {
    border-top: 1px solid var(--color-primary-100);
    padding: 20px;
    background-color: var(--color-white);
    border-radius: 4px;
}

.form-block ul {
    line-height: 1.6;
    margin-top: 8px;
}

.form-block--review .form-box {
    border-bottom: 1px solid var(--color-primary-100);
    margin-bottom: 16px;
    padding-bottom: 16px;
}

.form-block--review .form-box:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-block--review h2 {
    margin-top: 12px;
}

.form-block--review table {
    margin-top: 0;
}

.form-container .form-block:first-child {
    border-top: 0;
}

.form-box {
    display: flex;
    gap: 24px;
}

.form-box__row {
    display: flex;
    gap: 24px;
}

.form-box__row--half {
    width: calc(50% - 12px);
}

.form-box__title {
    flex: 1;
}

.form-box__content {
    flex: 2;
}


.field-wrapper {
    width: 100%;
}

.field-label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4px;
    gap: 4px;
}

.field-errors {
    color: var(--color-error-500);
    font-size: var(--font-size-50);
    line-height: var(--line-height-100);
    font-weight: var(--font-weight-regular);
}

.field-errors .errorlist {
    margin: 0;
    padding: 2px 0 0 32px;
    list-style: none;
    position: relative
}

.field-errors .errorlist::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: url("../img/alert.d2c35ec9b6a3.svg") no-repeat;
}

/*
 * Breadcrumb
 */

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1px;
    margin: 0 0 24px 0;
    padding: 12px 12px 16px 12px;
    list-style: none;
    background: var(--color-white);
    border-radius: 4px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    padding: 16px 0;
    gap: 8px;
    flex: 1;
    position: relative;
}

.breadcrumb li::before {
    content: '';
    width: 100%;
    height: 8px;
    background-color: var(--color-secondary-100);
    position: absolute;
    bottom: 0;
    left: 0px;
}

.breadcrumb__number {
    font-size: var(--font-size-50);
    line-height: var(--line-height-100);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--color-secondary-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-semibold);
    color: var(--color-secondary-500)
}

.breadcrumb li a {
    color: var(--color-black);
    text-decoration: none;
    font-size: var(--font-size-100);
}

/* Active */

.breadcrumb li.active::before {
    background-color: var(--color-blue-2);
}

.breadcrumb li.active a {
    color: var(--color-secondary-600);
}

.breadcrumb li.active .breadcrumb__number {
    color: var(--color-white);
    background-color: var(--color-blue-1);
    font-weight: var(--font-weight-bold);
}

/*
 * Drop Zone
 */
.zone {
    margin-bottom: 40px;
}

.zone:last-child {
    margin-bottom: 0;
}

.drop-zone {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0 .5em 0;
    background: white;
    cursor: pointer;
    border: 1px dashed #ccc;
    border-radius: 8px;
}

.drop-zone:hover {
    border-color: #666;
}

.drop-zone.dragover {
    background: #fafafa;
    border-style: solid;
}

.drop-zone__text {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-primary-800);
    font-family: system-ui, sans-serif;
    font-size: 14px;
}

.drop-zone__input {
    display: none;
}

.drop-zone__replace {
    display: flex;
    align-items: center;
    gap: 4px;
}

.drop-zone__add {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    text-align: center;
}

.drop-zone__help {
    font-size: var(--font-size-25);
    color: var(--color-gray-700);
    margin-bottom: 5px;
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    display: none;
}

input[type="file"] {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.upload_form {
    margin: 3em 0;
}


/*
 * Input list
 */

.input-list {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

/*
 * HEADER
 */

header {
    background-color: var(--color-blue-1);
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 20px;
}

/*
 * BUTTONS
 */

.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    margin-bottom: 24px;
}

.button {
    font-family: var(--font-family);
    font-size: var(--font-size-50);
    /* font-weight: var(--font-weight-semibold); */
    padding: 12px 16px;
    line-height: var(--line-height-100);
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    border: none;
    text-decoration: none;
    transition: background-color 200ms;
}

.button.primary {
    border: 1px solid var(--color-blue-2);
    background-color: var(--color-blue-2);
    color: var(--color-white);
    box-shadow: none;
}

.button.primary:hover {
    background-color: var(--color-secondary-500);
}

.button.secondary {
    border: 1px solid var(--color-blue-2);
    color: var(--color-blue-2);
    background-color: var(--color-white);
    font-weight: var(--font-weight-regular);
}

.button.secondary:hover {
    background-color: var(--color-tertiary-100);
}

.button.tertiary {
    border: none;
    background-color: transparent;
    text-align: center;
    color: var(--color-blue-2);
    font-weight: var(--font-weight-semibold);
}

.button.tertiary:hover {
    background-color: var(--color-tertiary-100);
}

.button.text {
    border: none;
    background-color: transparent;
    padding: 0;
    color: var(--color-blue-1);
    font-weight: var(--font-weight-semibold);
}

.button.text:hover {
    color: var(--color-primary-500);
}

/* variants */

.button.small {
    font-size: var(--font-size-50);
    padding: 8px 12px;
    height: 32px;
}

.button.danger {
    border: 1px solid var(--color-error-400);
    color: var(--color-error-400);
    background-color: var(--color-white);
}

.button.danger:hover {
    background-color: var(--color-error-50);
    border-color: var(--color-error-500);
    color: var(--color-error-500);
}

/*
 * Modal
 */
.modal {
    width: 540px;
    padding: 0;
    border-radius: 4px;
    background: var(--color-white);
    box-shadow: var(--box-shadow-hover);
    border: 0;
}

.modal::backdrop {
    background-color: var(--color-overlay);
}

.modal__header {
    border-bottom: 1px solid var(--color-primary-100);
    padding: 16px 24px 12px 24px;
}

.modal__header h1 {
    margin: 0;
    line-height: var(--line-height-300);
    font-size: var(--font-size-100);
    font-weight: var(--font-weight-bold);
}

.modal__content {
    padding: 24px;
    height: auto;
}

.modal__content h2 {
    color: var(--color-black);
    font-size: var(--font-size-75);
    margin: 0 0 8px 0;
}

.modal__footer {
    background-color: var(--color-background);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
}

/*
 * Documents
 */

.documents {
    margin-top: 16px;
}

.documents__item {
    border: 1px solid var(--color-primary-150);
    border-radius: 4px;
    margin-bottom: 8px;
    padding: 16px;
}

.documents__item:last-child {
    margin-bottom: 0;
}

.documents__item ul,
.documents__item p {
    margin: 0;
}

/*
 * LOADER
 */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 56, 101, .5);
    z-index: 9999;
}

.loader__spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 120px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader__logo {
    width: 116px;
    height: 116px;
    background-color: white;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -.0252900552px .7403088808px 3.069444418px 0px rgba(0, 56, 101, .07), -.1112762466px 3.2573590279px 6.3555555344px 0px rgba(0, 56, 101, .05), -.2731325924px 7.9953360558px 12.6750001907px 0px rgba(0, 56, 101, .04), -.5260331631px 15.3984251022px 24.8444442749px 0px rgba(0, 56, 101, .04), -.8851519227px 25.9108104706px 45.680557251px 0px rgba(0, 56, 101, .03), -1.3656629324px 39.9766807556px 78px 0px rgba(0, 56, 101, .02);
}

.loader__logo img {
    position: absolute;
    background: white;
    border: 24px solid white;
    border-radius: 100px;
}

.loader__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 96px;
    width: 96px;
    border-radius: 50%;
    background: conic-gradient(transparent, #71c5e8);
    animation: spinner-rotate 1.125s linear infinite;
}

.loader__circle::before {
    width: 64px;
    height: 64px;
    top: 10px;
    left: 10px;
    background-color: #fff;
}

.loader__circle::after {
    height: 10px;
    width: 10px;
    background-color: #71c5e8;
    top: 0;
    left: 36px;
}

.loader__content {
    font-size: var(--font-size-25);
    font-weight: var(--font-weight-semibold);
    color: var(--color-gray-700);
    background-color: var(--color-gray-150);
    padding: 4px 12px;
    margin-top: var(--spacing-4);
    border-radius: 100px;
}

@keyframes spinner-rotate {
    0% {
        transform: rotateZ(0);
    }

    100% {
        transform: rotateZ(360deg);
    }
}

/*
 * SECTIONS
 */
.payment {
    margin-top: 64px;
}

.payment__content {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.payment__qr {
    display: flex;
    gap: 40px;
    background: var(--color-white);
    padding: 32px;
    flex: 1;
}

.payment__qr img {
    max-width: 260px;
    max-height: 260px;
}

.payment__bank {
    margin-top: 12px;
}

.payment__bank b {
    display: block;
    margin-top: 4px;
    margin-bottom: 16px;
}

.payment__info {
    flex: 1;
}

/*
 * POPOVERS
 */

.popover {
    min-width: 400px;
}

/*
 * Unsorted
 */

.row {
    padding: 5px 0;
}

/* Container to manage tooltip positioning */
.help-container {
  position: relative;
  display: inline;
    height: 16px;
}

/* Styling for the help button */
.help-button {
    position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 100%;
  background-color: white;
  color: var(--color-primary-200);
  border: 1px solid var(--color-primary-200);
  font-size: 11px;
  font-weight: 700;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  margin-bottom: 4px;
}

.help-button:hover, .help-button:focus {
  background-color: #5a6268;
}

/* Styling for the tooltip - wider */
.help-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 7px;
  transform: translateX(-50%);
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 10px 15px;
  width: 350px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1000;
  font-size: 14px;
  color: #212529;
  margin-top: 10px;
  transition: opacity 0.3s, visibility 0.3s;
  text-align: justify;
}

/* Arrow for the tooltip */
.help-tooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  margin-left: -6px;
  width: 12px;
  height: 12px;
  background-color: #f8f9fa;
  border-left: 1px solid #dee2e6;
  border-top: 1px solid #dee2e6;
  transform: rotate(45deg);
}

/* Show tooltip on hover and focus */
.help-container:hover .help-tooltip,
.help-button:focus + .help-tooltip {
  visibility: visible;
  opacity: 1;
}

/* Position the field-wrapper for tooltips */
.field-wrapper {
  position: relative;
  margin-bottom: var(--spacing-3);
}

/* Media query for small screens */
@media (max-width: 768px) {
  .help-tooltip {
    width: 250px;
  }
}