/**
 * VIP Application Form Styles
 * Replaces Gravity Forms for static site
 */

/* Form Container */
.vip-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Progress Bar */
.form-progress {
  margin-bottom: 30px;
}

.progress-text {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #112337;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(135deg, #204ce5, #527EFF);
  border-radius: 10px;
  transition: width 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-percentage {
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* Form Steps */
.form-step {
  display: none;
}

.form-step:first-of-type {
  display: block;
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
  min-width: 200px;
}

/* Labels */
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #112337;
  font-size: 14px;
}

.form-label .required {
  color: #cf2e2e;
  margin-left: 4px;
}

/* Inputs */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #686e77;
  border-radius: 3px;
  font-size: 16px;
  color: #112337;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #204ce5;
  box-shadow: 0 0 0 3px rgba(32, 76, 229, 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #cf2e2e;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.292893 0.292893C0.683417 -0.097631 1.31658 -0.097631 1.70711 0.292893L5 3.58579L8.29289 0.292893C8.68342 -0.0976311 9.31658 -0.0976311 9.70711 0.292893C10.0976 0.683417 10.0976 1.31658 9.70711 1.70711L5.70711 5.70711C5.31658 6.09763 4.68342 6.09763 4.29289 5.70711L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683418 0.292893 0.292893Z' fill='%23585e6a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Error Messages */
.field-error {
  display: block;
  color: #cf2e2e;
  font-size: 13px;
  margin-top: 6px;
}

.form-error {
  display: none;
  background-color: #fde8e8;
  border: 1px solid #cf2e2e;
  color: #cf2e2e;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
}

/* Buttons */
.form-buttons {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.form-btn {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.form-btn:hover {
  transform: translateY(-1px);
}

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

.form-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-prev {
  background-color: #f5f5f5;
  color: #112337;
  border: 1px solid #686e77;
}

.form-prev:hover:not(:disabled) {
  background-color: #e8e8e8;
}

.form-next,
.form-submit {
  background: linear-gradient(135deg, #204ce5, #527EFF);
  color: white;
}

.form-next:hover:not(:disabled),
.form-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #001AB3, #204ce5);
}

/* Step Title */
.step-title {
  font-size: 20px;
  font-weight: 600;
  color: #112337;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #204ce5;
}

/* Description Text */
.form-description {
  font-size: 14px;
  color: #585e6a;
  margin-top: 6px;
}

/* Success Message */
#form-success {
  display: none;
  text-align: center;
  padding: 60px 20px;
}

#form-success h2 {
  color: #204ce5;
  margin-bottom: 16px;
}

#form-success p {
  font-size: 18px;
  color: #585e6a;
}

.success-icon {
  font-size: 64px;
  color: #00d084;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }

  .form-row .form-group {
    min-width: 100%;
  }

  .form-buttons {
    flex-direction: column-reverse;
  }

  .form-btn {
    width: 100%;
  }
}
