@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600&display=swap");

* {
  font-family: "Outfit", sans-serif;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --main-color: #b06ba9;
  --dark-color: #b06ba9;
  --step-color: white;
  --step-size: 32px;
  --steps: 4;
  --progress-width: calc((var(--steps) - 1) / var(--steps) * 100%);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Center the form vertically */
  background-color: #151521;
  color: #0a2540;
  position: relative; /* For positioning the image container */
}

h1 {
  text-align: center;
  margin-bottom: 16px;
  color: white;
}

h3 {
  margin-bottom: 16px;
  text-transform: uppercase;
  font-size: clamp(1rem, 2vw + 1rem, 1.25rem);
  color: #b06ba9;
}

h4 {
  margin-bottom: 16px;
  text-transform: uppercase;
  font-size: 1.2rem;
  color: white;
}

label {
  display: inline-block;
  margin-bottom: 4px;
  color: white;
}

input,
textarea {
  width: 100%;
  padding: 15px;
  border: none;
  border-bottom: 1px solid white;
  background-color: #151521;
  color: white;
}

/* Remove border color on focus for input fields */
input:focus,
textarea:focus {
  border-color: transparent; /* Remove border color on focus */
  border-bottom: 1px solid #b06ba9;
  outline: none; /* Remove the default browser outline */
}

textarea {
  resize: none;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 16px;
  padding: 16px 16px;
  background-color: #b06ba9;
  color: #fff;
  font-size: 0.875rem;
  transition: 0.3s;
}

button:active,
button:hover {
  background-color: #b06ba9;
}

button:disabled {
  opacity: 0.8;
}

button:focus {
  outline-color: #b06ba9;
}

button[type="submit"] {
  background-color: #b06ba9;
}

button[type="submit"]:hover,
button[type="submit"]:active {
  background-color: #b06ba9;
}

form {
  margin-block: auto;
}

/* Form container */
.form-wizard {
  background-color: #151521;
  padding: 1.5rem;
  border-radius: 20px;
  width: min(600px, 90%);
}

.progress-container {
  position: relative;
}

.progress-container::before {
  content: "";
  height: 4px;
  width: var(--progress-width);
  background-color: var(--step-color);
  position: absolute;
  top: calc(var(--step-size) / 2);
  left: 50%;
  translate: -50% -50%;
}

.progress-container .progress {
  height: 4px;
  width: var(--progress-width);
  background-color: var(--main-color);
  position: absolute;
  top: calc(var(--step-size) / 2);
  left: 50%;
  translate: -50% -50%;
  z-index: 2;
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.3s;
}

.progress-container ol {
  list-style-type: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  counter-reset: step-number;
  position: relative;
  z-index: 3;
}

.progress-container li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #151521;
  transition: 0.3s linear 0.3s;
  text-align: center;
  font-size: 0;
}

.progress-container li::before {
  counter-increment: step-number;
  content: counter(step-number);
  background-color: var(--step-color);
  width: var(--step-size);
  height: var(--step-size);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #151521;
  transition: 0.3s linear 0.3s;
  font-size: 1rem;
}

.progress-container li:where(.done, .current) {
  color: #ced7e0;
  font-weight: 500;
}

.progress-container li.done::before {
  background-color: var(--main-color);
}

.progress-container li.current::before {
  background-color: var(--main-color);
  box-shadow: 0 0 0 3px rgba(167, 21, 84, 0.25);
}

.steps-container {
  display: flex;
  overflow: hidden;
}

.step {
  flex: 1 0 100%;
  padding: 24px 8px;
  opacity: 0;
  transition: opacity 0.3s;
  height: fit-content;
  display: grid;
  gap: 8px;
}

.step.current {
  opacity: 1;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-inline: 8px;
}

.controls button {
  flex: 1;
}

.completed {
  text-align: center;
  border-radius: 20px;
  border: 0.5px solid #b06ba9;
}

.completed h3 {
  margin-bottom: 8px;
}

.completed svg {
  width: 100px;
  height: 100px;
  stroke: white;
}

.completed:not([hidden]) ~ * {
  display: none;
}

.card2 {
  background-color: #1a3558;
  border-radius: 10px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  min-width: 300px;
}

/* Sector Group */
.sector-group {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

/* Radio Button Group */
.radio-group {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.radio-group label {
  flex: 1;
  margin-left: 10px;
  background-color: #223f66;
  padding: 10px;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #223f66;
}

.radio-group label:hover,
input[type="radio"]:checked + label {
  background-color: #1a3558;
  border-color: white;
  color: white;
}

.radio-style-two input[type="radio"] {
  display: none;
}

input[type="radio"]:checked + .sector-option {
  border-color: white;
  background-color: #b06ba9;
}

input[type="radio"]:checked + .sector-option:hover {
  border-color: white;
}

/* Sector Option */
.sector-option {
  flex: 1;
  background-color: #151521;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  text-align: center;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  padding: 20px;
  margin-right: 0;
  position: relative;
}

.sector-option:last-child {
  margin-left: 0;
}

.sector-option:hover {
  background-color: #b06ba9;
  border-color: white;
}

.file-drop-zone {
  border: 2px dashed #888;
  border-radius: 8px;
  padding: 80px;
  text-align: center;
  position: relative;
  background-color: #151521;
  transition: border-color 0.3s ease;
}

.file-drop-message {
  color: #bbb;
  font-size: 0.9rem;
}

.file-drop-message p {
  margin-bottom: 10px;
}

.file-drop-message a {
  color: #0061a8;
  text-decoration: none;
}

.file-drop-message a:hover {
  text-decoration: underline;
}

/* Agreement Box */
.agreement-box {
  border: 2px dashed #888;
  border-radius: 8px;
  background-color: #1e3a57;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.agreement-check {
  display: flex;
  align-items: center;
}

.agreement-check input[type="checkbox"] {
  margin-left: 10px;
  width: 20px;
  height: 20px;
}

.agreement-check label {
  font-size: 1rem;
  color: #fff;
  line-height: 1.2;
}

.container {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Image container at the bottom-left */
.image-container {
  position: absolute;
  bottom: 20px;
  left: 20px;
  max-width: 400px;
  padding: 20px;
  border-radius: 8px;
  z-index: 1;
}

.image-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Form container (centered) */
.form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  z-index: 2;
}

/* Custom table styles */

#customers {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  border-collapse: separate; /* Important for border-radius to work */
  border-spacing: 0;
  width: auto;
  table-layout: auto;
}

#customers td, #customers th {
  border: 1px solid rgba(221, 221, 221, 0.5);
  padding: 10px 30px;
  color: white;
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center; /* 👈 center text in all cells */
}

#customers tr:nth-child(even),
#customers tr:nth-child(odd) {
  background-color: #151521;
}

#customers th {
  padding-top: 8px;
  padding-bottom: 8px;
  background-color: #b06ba9;
  color: white;
  /* text-align removed because already set above */
}

/* Rounded corners on table head */
#customers thead tr:first-child th:first-child {
  border-top-left-radius: 8px;
}

#customers thead tr:first-child th:last-child {
  border-top-right-radius: 8px;
}




/* Media query for smaller screens */
@media (max-width: 768px) {
  .image-container {
    position: static;
    max-width: 100%;
    margin-top: 20px;
  }
}

.form-message {
  transition: all 0.3s ease;
}
