
/* Enhanced form styling

 

*/

.team-bio-card{
  position:absolute;
  bottom:0;
  color:var(--color-text-muted);
  font-family: "Concert One", sans-serif;
  border-radius: var(--border-radius-md);
  z-index: 1;
  font-size:var(--font-size-sm);
}
/*#message{
  padding-left: .5rem;
  padding-right: .5rem;
}*/
.form-banner{
  height:350px;
}
legend{
  line-height: 2.5rem;
}
#form {
  max-width: 820px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.3);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  line-height: normal;
}

input[type="password"], input[type="tel"], input[type="number"], input[type="email"], input[type="text"], input[type="url"], select, textarea {
  color:#ffffff;
}
fieldset {
  border: none;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  line-height: 3;
}

fieldset:last-of-type {
  border-bottom: none;
}
/* Add this to your existing input styles */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea {
  caret-color: #FFD700; 
}
input:focus,
textarea:focus {
  caret-color: #FFD700; 
}
legend {
  font-family: 'Concert One', sans-serif;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  width: 100%;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
}

/* Input fields with animated focus effect */
input:not([type="radio"]):not([type="checkbox"]),
textarea {
  transition: border 0.3s, box-shadow 0.3s;
  background-color: rgba(255, 255, 255, 0.08);
}

input:not([type="radio"]):not([type="checkbox"]):focus,
textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
  outline: none;
}
select,
input::placeholder {
  color: var(--color-light-grey);
}
#message,
select{
  background-color: rgba(255, 255, 255, 0.08);

}
/* Custom checkbox and radio styling */
.radio-options label,
.checkbox-options label {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  user-select: none;
  line-height: 1.5;
  margin-right: .4rem;
  font-weight: 100;
  color:var(--color-light-grey);
}

.checkbox-options input[type="checkbox"],
.radio-options input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-options .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--color-border);
  border-radius: 3px;
}

.radio-options .radiomark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--color-border);
  border-radius: 50%;
}

.checkbox-options label:hover .checkmark,
.radio-options label:hover .radiomark {
  background-color: rgba(255, 255, 255, 0.2);
}

.checkbox-options input:checked~.checkmark,
.radio-options input:checked~.radiomark {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.checkbox-options .checkmark:after,
.radio-options .radiomark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-options input:checked~.checkmark:after,
.radio-options input:checked~.radiomark:after {
  display: block;
}

.checkbox-options .checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.radio-options .radiomark:after {
  top: 6px;
  left: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

/* Progress indicator */
.form-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4rem;
  position: relative;
}

.form-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

.progress-step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.progress-step.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
}

.progress-step-label {
  position: absolute;
  top: 35px;
  font-size: 0.75rem;
  white-space: nowrap;
  transform: translateX(-50%);
  left: 50%;
}

/* Submit button enhancement */
button[type="submit"] {
  background: linear-gradient(45deg, #d4af37, #f9d423);
  color: #000;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(249, 212, 35, 0.3);
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(249, 212, 35, 0.5);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  #form {
    padding: 1rem;
  }

  .form-progress {
    display: none;
  }
}
/* Error message styling */
.error-message{
  color: var(--color-secondary);
  background: rgba(0, 0, 0, 0.5);
}

/* Success message styling */
.success-message {
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.5s ease-out;
}

.success-icon {
  font-size: 3rem;
  height: 80px;
  width: 80px;
  background: var(--color-accent);
  color: black;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.5s 0.3s both;
}

/* Confetti animation */
.confetti {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  top: -10px;
  background-color: var(--color-accent);
  animation: confetti-fall 3s linear infinite;
}

.particle:nth-child(2n) {
  background-color: #e84c3d;
  width: 12px;
  height: 12px;
}

.particle:nth-child(3n) {
  background-color: #3498db;
  width: 10px;
  height: 10px;
}
.border-bottom{
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 20px;
}

.particle:nth-child(4n) {
  background-color: #9b59b6;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-10px) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(600px) rotate(720deg);
    opacity: 0;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@media (max-width: 768px) {

  .checkbox-options label,
  .radio-options label {
    padding-left: 30px;
    /* Slightly larger touch target on mobile */
  }

  .radiomark,
  .checkmark {
    top: 2px;
    /* Better vertical alignment on mobile */
  }
}

.error-message {
  background-color: #ffebee;
  border-left: 4px solid #e53935;
  color: #b71c1c;
  padding: 1rem 2rem;
  margin: 1.5rem 0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.error-icon {
  background-color: #e53935;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  font-weight: bold;
}

.error-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
}