:root {
  --primary: #0d6efd;
  --primary-dark: #084298;
  --success: #169b45;
  --text: #111827;
  --muted: #6b7280;
  --line: #d8dee8;
  --soft: #f5f8fc;
  --icon-bg: #f1f3f6;
  --shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: "Tahoma", "Arial", sans-serif;
}

.application-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(13, 110, 253, 0.05), transparent 32rem),
    #fff;
}

.page-title {
  color: #0b356f;
  font-size: clamp(1.8rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0;
  margin-block:4rem
}

.stepper-card,
.progress-card,
.navigation-card,
.form-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stepper-card {
  padding: 1.35rem 1.2rem 0.95rem;
  box-shadow: none;
  border-color: transparent;
}

.stepper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  counter-reset: steps;
}

.stepper-item {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  text-align: center;
}

.stepper-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: calc(-50% + 2rem);
  width: calc(100% - 4rem);
  height: 3px;
  background: #e4e8ef;
  z-index: 0;
}

.stepper-item.completed:not(:last-child)::after {
  background: var(--success);
}

.stepper-item.active:not(:last-child)::after {
  background: linear-gradient(to left, var(--primary) 0 50%, #e4e8ef 50% 100%);
}

.step-circle {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: #4b5563;
  background: #f2f4f8;
  border: 1px solid #d7dde7;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
}

.step-circle .fa-check {
  display: none;
}

.stepper-item.active .step-circle {
  color: #fff;
  background: linear-gradient(135deg, #0d6efd, #0756cb);
  border-color: var(--primary);
  box-shadow: 0 8px 18px rgba(13, 110, 253, 0.28);
}

.stepper-item.completed .step-circle {
  color: var(--success);
  background: #fff;
  border: 2px solid var(--success);
}

.stepper-item.completed .step-circle .fa-check {
  position: absolute;
  display: grid;
  place-items: center;
  left: -0.85rem;
  bottom: 0.2rem;
  width: 1.45rem;
  height: 1.45rem;
  color: #fff;
  background: var(--success);
  border-radius: 50%;
  font-size: 0.75rem;
}

.step-label {
  margin-top: 0.7rem;
  color: #4b5563;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.stepper-item.active .step-label {
  color: var(--primary);
}

.stepper-item.completed .step-label {
  color: #078c37;
}

.progress-card {
  padding: 1rem 1.5rem;
}

.progress-text {
  font-size: 1.1rem;
  font-weight: 700;
}

.progress {
  height: 1.35rem;
  overflow: hidden;
  background: #e9edf3;
  border-radius: 7px;
}

.progress-bar {
  font-weight: 800;
  transition: width 0.35s ease;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-step.fade-in {
  animation: fadeStep 0.28s ease both;
}

input[type='text'] {
  padding-right:4rem;
}

@keyframes fadeStep {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-card {
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 4.4rem;
  padding: 1.15rem 1.65rem;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border-bottom: 1px solid var(--line);
}

.card-header h2 {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin: 0;
  color: #0750b8;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 800;
}

.card-header i {
  color: var(--primary);
}

.card-body {
  padding: 1.8rem 1.85rem;
}

.form-label {
  margin-bottom: 0.75rem;
  font-size: 1.02rem;
  font-weight: 700;
}

.required::after {
  content: " *";
  color: #dc3545;
  font-weight: 900;
}

.input-icon {
  position: relative;
}

.input-icon > i {
  position: absolute;
  top: 1px;
  right: 1px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 3.3rem;
  height: 3.25rem;
  color: #1f2937;
  background: var(--icon-bg);
  border-left: 1px solid #e1e5ec;
  border-radius: 0 7px 7px 0;
  pointer-events: none;
}

.form-control,
.form-select {
  min-height: 3.35rem;
  padding-right: 4rem;
  color: #111827;
  border-color: #cfd6e2;
  border-radius: 8px;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

.input-icon .invalid-feedback {
  margin-top: 0.45rem;
  padding-right: 0.15rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.22rem rgba(13, 110, 253, 0.15);
}

.form-select[multiple] {
  height: 13.7rem;
  padding-top: 0.75rem;
}

.conditional-box {
  display: none;
  padding: 1.4rem;
  background: #f8fbff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}

.info-box {
  min-height: 9rem;
}

.box-note {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 1.2rem;
  color: #075bd0;
  font-weight: 700;
}

.note-alert,
.contact-note {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.65rem 1rem;
  border-radius: 7px;
  font-weight: 700;
}

.travel-checkboxes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.choice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.55rem;
  padding: 0.75rem 1rem;
  border: 1px solid #d6dce7;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.choice-card:hover,
.choice-card:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 8px 18px rgba(13, 110, 253, 0.1);
}

.choice-card span {
  font-weight: 700;
}

.choice-card i {
  color: var(--primary);
  font-size: 1.25rem;
}

.radio-row {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.refusal-entry {
  position: relative;
  padding: 1rem;
  border: 1px solid #d6e6ff;
  border-radius: 8px;
  background: #fff;
}

.refusal-entry + .refusal-entry {
  margin-top: 1rem;
}

.refusal-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #0750b8;
  font-weight: 800;
}

.remove-refusal {
  min-width: 2.45rem;
  min-height: 2.35rem;
}

.add-refusal {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  font-weight: 800;
}

.form-check {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0;
  margin: 0;
}

.form-check .form-check-input {
  float: none;
  margin: 0;
}

.checkbox-error,
.radio-error {
  display: none !important;
  margin-top: 0.6rem;
}

.was-validated .checkbox-group-invalid + .checkbox-error,
.was-validated .radio-group-invalid + .radio-error {
  display: block !important;
}

.review-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.review-section {
  padding: 1rem;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  background: #fff;
}

.review-section.full {
  grid-column: 1 / -1;
}

.review-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #edf1f7;
}

.review-title h3 {
  margin: 0;
  color: #0750b8;
  font-size: 1.1rem;
  font-weight: 800;
}

.review-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.review-list div {
  display: grid;
  grid-template-columns: minmax(7rem, 38%) 1fr;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed #e6ebf2;
}

.review-list div:last-child {
  border-bottom: 0;
}

.review-list dt {
  color: #475569;
  font-weight: 800;
}

.review-list dd {
  margin: 0;
  color: #111827;
  overflow-wrap: anywhere;
}

.submit-message {
  display: none;
  text-align: center;
  font-weight: 800;
}

.navigation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem;
}

.nav-btn,
.submit-btn {
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  min-width: 9rem;
  min-height: 3.2rem;
  border-radius: 7px;
  font-size: 1.05rem;
  font-weight: 800;
}

.submit-btn {
  display: none;
  margin-inline: auto;
}

@media (max-width: 991.98px) {
  .stepper-card {
    overflow-x: auto;
    padding-inline: 0.7rem;
  }

  .stepper {
    min-width: 780px;
  }

  .travel-checkboxes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .container-fluid {
    padding-inline: 0.85rem !important;
  }

  .page-title {
    margin-top: 0.25rem;
  }

  .stepper {
    min-width: 680px;
  }

  .step-circle {
    width: 2.55rem;
    height: 2.55rem;
    font-size: 1rem;
  }

  .stepper-item:not(:last-child)::after {
    top: 1.28rem;
  }

  .step-label {
    font-size: 0.85rem;
  }

  .progress-card,
  .card-body {
    padding: 1rem;
  }

  .card-header {
    min-height: 3.8rem;
    padding: 1rem;
  }

  .travel-checkboxes {
    grid-template-columns: 1fr;
  }

  .navigation-card {
    gap: 0.8rem;
  }

  .nav-btn,
  .submit-btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 0.8rem;
  }

  .review-list div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}
