@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
  --primary: #05BF93;
  --secondary: #2C3E50;
  --bg-color: #F8F9FA;
  --text-main: #333333;
  --text-muted: #888888;
  --border-color: #EAEAEA;
  --border-light: #F0F0F0;
  --hover-bg: #F1F2F6;
  --active-bg: #E8F8F5;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------
   Header
-------------------- */
header {
  display: flex;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-weight: 800;
  font-size: 24px;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.menu {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 30px;
  transition: color 0.3s ease;
  position: relative;
}

.menu:hover {
  color: var(--primary);
}

.menu::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  display: block;
  margin-top: 4px;
  right: 0;
  background: var(--primary);
  transition: width 0.3s ease;
  -webkit-transition: width 0.3s ease;
}

.menu:hover::after {
  width: 100%;
  left: 0;
  background: var(--primary);
}

/* --------------------
   Main Context
-------------------- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.content {
  width: 100%;
  max-width: 700px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 50px;
  border-radius: var(--radius);
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------
   Stepper
-------------------- */
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 30px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
}

.circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--border-light);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 12px;
}

.line {
  flex: 2;
  height: 2px;
  background: var(--border-light);
  position: relative;
  top: -15px;
  overflow: hidden;
}

.line.completed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary);
  animation: lineGrow 0.6s ease forwards;
}

@keyframes lineGrow {
  from { width: 0; }
  to { width: 100%; }
}

.step.completed .circle {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step.completed .label {
  color: var(--primary);
}

.step.current .circle {
  border-color: var(--primary);
  color: var(--primary);
}

.step.current .label {
  color: var(--primary);
}

.step.current .circle::after {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  position: absolute;
  animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  70% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

@keyframes pop {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* --------------------
   Forms
-------------------- */
.Form-Item {
  margin-bottom: 25px;
  width: 100%;
}

.Form-Item-Label {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--text-main);
}

.Form-Item-Label-Required {
  font-size: 11px;
  font-weight: 800;
  background: var(--primary);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  margin-right: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.Form-Item-Input {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 16px;
  background: white;
  color: var(--text-main);
  transition: all 0.3s ease;
}

.Form-Item-Input:focus {
  outline: none;
  background: var(--hover-bg);
}

.password-wrapper {
  position: relative;
  width: 100%;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  transition: background 0.2s;
}

.toggle-password:hover {
  background: var(--hover-bg);
}

.eye-icon {
  width: 20px;
  height: 20px;
  stroke: var(--text-main);
  stroke-width: 2;
  fill: none;
}

.eye-icon circle {
  fill: var(--text-main);
}

.eye-slash {
  stroke: var(--text-main);
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  transition: 0.3s;
}

.closed .eye-slash {
  stroke-dashoffset: 0;
}

.note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Radio Buttons */
.radio-group {
  display: flex;
  gap: 30px;
  margin-top: 10px;
}

.radio-group label {
  display: flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: white;
  transition: all 0.2s;
}

.radio-group label:hover {
  background: var(--hover-bg);
}

.radio-group input[type="radio"] {
  display: none;
}

.radio-group input[type="radio"]:checked+span {
  color: white;
  font-weight: 800;
}


.radio-group label:has(input[type="radio"]:checked) {
  background: var(--primary);
  color: white;
}

.radio-group label:has(input[type="radio"]:checked) span {
  color: white;
}

/* Native Radio Stylings (Fallback if no spans) */
input[type="radio"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border-color);
  margin-right: 12px;
  position: relative;
  transition: 0.2s;
  border-radius: 50%;
}

input[type="radio"]:checked {
  background: var(--primary);
  box-shadow: inset 0 0 0 4px white;
}

/* Multi-Select */
.multi-select {
  width: 100%;
  position: relative;
}

.selected-box {
  min-height: 52px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 8px 40px 8px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  cursor: pointer;
  position: relative;
  transition: 0.3s;
}

.selected-box:hover {
  background: var(--hover-bg);
}

.selected-box.open {
  background: var(--hover-bg);
}

.selected-box::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-main);
  border-bottom: 2px solid var(--text-main);
  transform: translateY(-70%) rotate(45deg);
  transition: 0.3s;
}

.selected-box.open::after {
  transform: translateY(-30%) rotate(225deg);
}

.placeholder {
  color: var(--text-muted);
  padding: 6px;
  font-size: 16px;
}

.tag {
  background: var(--primary);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: pop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tag button {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tag button:hover {
  color: var(--border-light);
}

.dropdown {
  position: absolute;
  width: 100%;
  background: white;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-top: 0px;
  padding: 12px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 20;
  display: none;
}

.dropdown label {
  display: flex;
  align-items: center;
  padding: 10px;
  cursor: pointer;
  transition: 0.2s;
  font-size: 15px;
  border: 2px solid transparent;
  border-radius: 6px;
}

.dropdown label:hover {
  background: var(--hover-bg);
  border-color: var(--border-color);
}

.dropdown .checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-right: 12px;
  position: relative;
  transition: 0.2s;
}

.dropdown .checkbox:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.dropdown .checkbox:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Checkbox Item */
.checkboxItem {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  margin-top: 30px;
}

.checkboxItem .checkbox {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-right: 12px;
  position: relative;
  transition: 0.2s;
  cursor: pointer;
}

.checkboxItem .checkbox:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.checkboxItem .checkbox:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Button */
.button-wrapper {
  margin-top: 40px;
}

.Form-Btn {
  width: 100%;
  padding: 18px;
  background: var(--primary);
  color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.Form-Btn:hover:not(:disabled) {
  background: var(--secondary);
}

.Form-Btn:active:not(:disabled) {
  transform: scale(0.98);
}

.Form-Btn:disabled {
  background: var(--secondary);
  color: var(--bg-color);
  border-color: var(--border-light);
  cursor: not-allowed;
}

/* --------------------
   Footer
-------------------- */
footer {
  margin-top: auto;
  background: var(--bg-color);
  border-top: 1px solid var(--border-color);
  padding: 30px 40px;
}

footer .row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

footer .menu {
  margin: 0;
  font-size: 14px;
}

footer p {
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 20px;
  font-weight: 600;
}

/* --------------------
   Responsive
-------------------- */
@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 15px 20px;
    gap: 15px;
  }

  header .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .logo {
    font-size: 22px;
  }

  .menu {
    margin-left: 0;
    font-size: 14px;
  }

  .content {
    padding: 30px 20px;
  }

  .stepper {
    flex-direction: row;
    gap: 5px;
    padding-bottom: 20px;
  }

  .circle {
    width: 32px;
    height: 32px;
    font-size: 14px;
    margin-bottom: 8px;
  }

  .step .label {
    font-size: 12px;
  }

  .line {
    top: -10px;
  }

  .radio-group {
    flex-direction: column;
    gap: 15px;
  }
}
