*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  scroll-behavior:smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f1f5f9;
  margin: 0;
}
header{
  position:fixed;
  width:100%;
  top:0;
  background:rgba(15,23,42,0.9);
  backdrop-filter:blur(8px);
  padding:15px 8%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  z-index:1000;
}

.logo{
  color:#fff;
  font-weight:700;
  font-size:1.3rem;
}

nav a{
  color:#fff;
  margin-left:25px;
  text-decoration:none;
  font-weight:500;
  transition:0.3s;
}

nav a:hover{
  color:#3b82f6;
}
/* MAIN CENTERING */
main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 20px 80px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

h1 {
  color: #f8fafc;
  margin-bottom: 30px;
}

/* FORM CARD */
form {
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(20px);
  padding: 50px;
  border-radius: 24px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  position: relative;
}

/* PROGRESS BAR */
.progress-bar {
  width: 600px;
  max-width: 100%;
  height: 6px;
  background: rgba(148,163,184,0.2);
  border-radius: 10px;
  margin-bottom: 40px;
  overflow: hidden;
}

.progress {
  height: 100%;
  width: 33%;
  background: linear-gradient(90deg,#3b82f6,#2563eb);
  transition: width 0.4s ease;
}

/* FORM STEPS */
.form-step {
  display: none;
  flex-direction: column;
  gap: 25px;
}

.form-step.active {
  display: flex;
}
.form-step p {
  font-size: 1.5em;
  color: #fff;
  font-weight: 400;
  max-width: 800px;
}
/* remove if you won't go for options with questions */
/* The container */
.container {
  display: block;
  position: relative;
  padding-left: 0px;
  padding-right: 0px; /* Add space on the right for the checkbox */
  margin-bottom: 0px;
  cursor: pointer;
  font-size: 1em;
  color: #fff;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  height: 25px;
  width: 25px;
  background-color: #eee;
}

/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark {
  background-color: #2563eb;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}
/* Style the link inside the checkbox label */
.container .terms-link {
  color: #2196F3;
  text-decoration: none;
  font-weight: bold;
  margin-left: 5px;
  transition: color 0.3s ease;
}

/* Hover effect for the link */
.container .terms-link:hover {
  color: #1976D2;
  text-decoration: underline;
}

/* Active state for the link */
.container .terms-link:active {
  color: #0D47A1;
}

/* Ensure the link doesn't interfere with checkbox click */
container .terms-link {
  pointer-events: none; /* Prevents link from capturing clicks */
}
/* end off checkbox lable css */
/* FLOATING LABEL */
.input-group {
  position: relative;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.2);
  background: rgba(15,23,42,0.6);
  color: #f1f5f9;
  font-size: 1rem;
}

.input-group label {
  position: absolute;
  left: 16px;
  top: 16px;
  color: #94a3b8;
  pointer-events: none;
  transition: 0.3s ease;
  background: transparent;
  border-radius: 14px;
}

/* FLOAT EFFECT */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 12px;
  font-size: 0.75rem;
  background: #1e293b;
  padding: 0 6px;
  color: #3b82f6;
}

/* BUTTONS */
button {
  padding: 14px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  margin-top: 10px;
}

.next-btn, .submit-btn {
  background: linear-gradient(135deg,#3b82f6,#2563eb);
  color: white;
}

.prev-btn {
  background: #334155;
  color: #e2e8f0;
}
footer{
  background:#0f172a;
  color:#94a3b8;
  text-align:center;
  padding:30px 10px;
/*  margin-top:20px; - to remove wite gap between footer and main change or remove this */
  font-size:0.9rem;
}
/* calendar css */
/* DATE INPUT FIX */
input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark; /* makes popup calendar dark in supported browsers */
}

/* Remove ugly white background in some browsers */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.2);
  cursor: pointer;
  opacity: 0.8;
  transition: 0.3s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Make text consistent */
input[type="date"] {
  position: relative;
}

/* When no date selected */
input[type="date"]:not(:focus):invalid {
  color: #94a3b8;
}

/* When date selected */
input[type="date"]:valid {
  color: #f1f5f9;
}
/* this is making calendar in form looking better */
.flatpickr-calendar {
  transform: scale(1.1);
}
/* FLATPICKR DARK PREMIUM STYLE */
.flatpickr-calendar {
  background: #1e293b;
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 16px;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  transform: scale(1.1);
}

.flatpickr-months {
  background: #fff;
  border-radius: 5px 5px;
}

.flatpickr-current-month,
.flatpickr-weekday {
  color: #f1f5f9;
  font-weight: 600;
}

.flatpickr-day {
  color: #e2e8f0;
  border-radius: 10px;
}

.flatpickr-day:hover {
  background: rgba(59,130,246,0.2);
}

.flatpickr-day.selected {
  background: linear-gradient(135deg,#3b82f6,#2563eb);
  color: white;
}

.flatpickr-day.today {
  border: 1px solid red;
}
