.heading {
  color: #8B4513;
  margin-bottom: 10px;
  text-align: center;
}

.percentage {
  color: #000;
  font-weight: bold;
  font-size: large;
  margin-bottom: 50px;
  text-align: center;
}

.head1 { 
  text-align: center;
}

.progress-status1 {
  text-align: center;
}

.page-wrapper {
  position: relative;
  left: 0px;
  top: 0px;
  z-index: 1;
}

.container {
  max-width: 800px;
  margin: 0 auto 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

form {
  background: #FFFF;
  padding: 2em;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

form:hover {
  transform: translateY(-5px);
}

.form-group {
  position: relative;
  margin-bottom: 2.3em;
  text-align: left;
  opacity: 0;
  transform: translateX(-30px);
  animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-group:nth-child(even) {
  transform: translateX(30px);
}

input, select {
  width: 100%;
  height: 50px;
  background: #2596be;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 1em;
  color: #fff;
  font-size: 1em;
  outline: 0;
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

input:focus, select:focus {
  background: #F0FFFF;
  border-color: #36454F;
  box-shadow: 0 0 0 3px rgba(109, 166, 223, 0.3);
}

input::placeholder {
  color: rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
}

input:focus::placeholder {
  opacity: 0;
}

.field-icon {
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  color: #6da6df;
  transition: color 0.3s ease;
}

label {
  position: absolute;
  left: 1em;
  top: -30px;
  color: #6da6df;
  font-size: 1em;
  transition: all 0.3s ease;
}

.row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.row-three {
  grid-template-columns: repeat(3, 1fr);
}

.progress-bar {
  height: 4px;
  background: #044f9e;
  border-radius: 2px;
  margin-bottom: 2em;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  height: 100%;
  width: 0;
  background: #6da6df;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.strength-meter {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}

.strength-meter span {
  flex: 1;
  height: 4px;
  background: #044f9e;
  transition: background 0.3s ease;
}

.btn-primary {
  background: #000;
  color: #fbdb3c;
  border: 0;
  padding: 1em 2em;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s ease;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: #F0FFFF;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #000;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

.form-section {
  margin-bottom: 2em;
  padding-bottom: 1em;
  border-bottom: 1px solid #262b26;
}

.form-section-title {
  margin-bottom: 1em;
  color: #6da6df;
  font-size: 1.5em;
  text-align: left;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1em center;
  background-size: 1em;
}

.error-message {
  color: #ff6b6b;
  font-size: 0.85em;
  margin-top: 5px;
  display: none;
}

.input-error {
  border-color: #ff6b6b;
}

.success-message {
  display: none;
  background: #065cb7;
  padding: 2em;
  border-radius: 8px;
  margin-top: 1em;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Media Queries */

@media (max-width: 768px) {
  .container {
    padding: 1em;
    max-width: 100%;
  }

  .row, .row-three {
    grid-template-columns: 1fr;
  }

  .form-section-title {
    font-size: 1.2em;
  }

  .btn-primary {
    padding: 1em;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .form-section-title {
    font-size: 1em;
  }

  .btn-primary {
    padding: 0.8em;
    font-size: 0.8em;
  }

  .form-group {
    margin-bottom: 1.5em;
  }
}
