:root {
  --primary-color: #4361ee;
  --primary-dark: #3a56d4;
  --secondary-color: #48cae4;
  --success-color: #06d6a0;
  --warning-color: #ffd166;
  --danger-color: #ef476f;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gray-color: #6c757d;
  --light-gray: #e9ecef;
  --border-radius: 8px;
  --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #E6913C !important;
  color: var(--dark-color);
  line-height: 1.6;
  padding: 30px 20px;
}

.container {
  max-width: 850px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 40px;
  transition: var(--transition);
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 2.2rem;
}

.form-header {
  margin-bottom: 40px;
}

.progress-container {
  margin: 30px 0 50px;
}

.progress-bar {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 40px;
  max-width: 100%;
  width: 100%;
}

.progress-bar::before {
  content: '';
  background-color: var(--light-gray);
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 4px;
  width: 100%;
  z-index: 1;
  border-radius: 10px;
}

.progress-bar::after {
  content: '';
  background-color: var(--primary-color);
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 10px;
  z-index: 2;
  transition: width 0.5s ease;
}

.progress-bar.step-1::after {
  width: 0%;
}

.progress-bar.step-2::after {
  width: 50%;
}

.progress-bar.step-3::after {
  width: 100%;
}

.progress-step {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-color);
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--light-gray);
}

.step-circle.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: scale(1.1);
  box-shadow: 0 0 0 5px rgba(67, 97, 238, 0.2);
}

.step-circle.completed {
  background-color: var(--success-color);
  color: white;
  border-color: var(--success-color);
}

.step-text {
  position: absolute;
  top: 50px;
  text-align: center;
  font-size: 14px;
  color: var(--gray-color);
  font-weight: 500;
  transition: var(--transition);
  width: 120px;
  margin-left: 0px;
}

.step-text.active {
  color: var(--primary-color);
  font-weight: 600;
}

.form-slide {
  display: none;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(20px);
  }

  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.form-slide.active {
  display: block;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px 20px;
}

.form-group {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 15px;
  margin-bottom: 25px;
}

.form-group.half {
  flex: 0 0 50%;
  max-width: 50%;
}

@media (max-width: 768px) {
  .form-group.half {
      flex: 0 0 100%;
      max-width: 100%;
  }

  .container {
      padding: 30px 20px;
  }

  .step-text {
      font-size: 12px;
      width: 90px;
      margin-left: 6px;
  }
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-color);
  font-size: 15px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 15px;
  transition: var(--transition);
  background-color: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

input.error,
select.error,
textarea.error {
  border-color: var(--danger-color);
  background-color: rgba(239, 71, 111, 0.05);
}

.error-message {
  color: var(--danger-color);
  font-size: 13px;
  margin-top: 5px;
  display: none;
  font-weight: 500;
}

.btn-row {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.btn {
  padding: 12px 28px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: var(--light-gray);
  color: var(--dark-color);
}

.btn-secondary:hover {
  background-color: #dde2e6;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* File upload styling */
.file-input-container {
  position: relative;
  margin-bottom: 10px;
}

.file-input-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  border: 2px dashed #ccc;
  border-radius: var(--border-radius);
  background-color: #f9f9f9;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.file-input-label:hover {
  border-color: var(--primary-color);
  background-color: rgba(67, 97, 238, 0.05);
}

.file-input-label span {
  color: var(--gray-color);
  font-size: 15px;
}

.file-input-container input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-preview {
  margin-top: 15px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.file-preview img {
  max-width: 150px;
  max-height: 150px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  padding: 5px;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.file-name {
  margin-top: 8px;
  font-size: 14px;
  color: var(--dark-color);
  font-weight: 500;
  text-align: center;
}

/* Checkbox styling */
.checkbox-container {
  position: relative;
  padding: 20px;
  margin-bottom: 20px;
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
  border: 1px solid #eee;
}

.checkbox-container input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.checkbox-container label {
  cursor: pointer;
  line-height: 1.5;
  display: inline;
  font-weight: normal;
  font-size: 14px;
}

.checkbox-container a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.checkbox-container a:hover {
  text-decoration: underline;
}

@keyframes shake {

  0%,
  100% {
      transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
      transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
      transform: translateX(5px);
  }
}

.shake {
  animation: shake 0.5s;
}

/* Section title */
.section-title {
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--light-gray);
}

/* Required field indicator */
.required-field::after {
  content: ' *';
  color: var(--danger-color);
}

/* Form field icon */
.input-icon-container {
  position: relative;
}

.input-icon-container input,
.input-icon-container select {
  padding-left: 40px;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-color);
  font-size: 18px;
}

/* Add this to your CSS styles section */
.sub-section-title {
  font-size: 16px;
  color: var(--dark-color);
  margin: 10px 0 15px;
  font-weight: 500;
  border-left: 3px solid var(--primary-color);
  padding-left: 10px;
}

.razorpay-payment-button {
  width: 150px !important;
  height: 50px !important;
}
