/* Modal Styles */
.modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
}

.modal-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  max-width: 700px;
  width: 100%;
  min-width: 0;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(1);
  transition: transform 0.2s ease-out;
  box-sizing: border-box;
}

.modal-wrapper.hidden .modal-content {
  transform: scale(0.95);
}

#modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

#modal-close:hover {
  color: #333;
}

#modal-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

#modal-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #6e8efb;
  margin-bottom: 1rem;
  margin-top: 0;
}

#modal-description {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
  margin-top: 0;
}

/* Form Styles */
.registration-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.input-wrapper {
  position: relative;
  margin-bottom: 1rem;
  width: 100%;
}

.input-field {
  position: relative;
}

.input-field label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
  transition: all 0.2s ease-in-out;
}

.input-field input:focus + label,
.input-field input:not(:placeholder-shown) + label {
  top: 0;
  left: 0.8rem;
  font-size: 12px;
  color: #744f8c;
  background: #fff;
  padding: 0 4px;
  transform: translateY(-50%);
}

.input-wrapper input {
  width: 100%;
  padding: 1rem;
  border: 1.5px solid #bdbdbd;
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  outline: none;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
}

.input-wrapper input:focus {
  border-color: #6e8efb;
  box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.1);
}

.submit-btn, .secondary-btn {
  background: #744f8c !important;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(116,79,140,0.08);
  margin-top: 0.3rem;
  transition: background 0.15s, box-shadow 0.15s;
}

.submit-btn:hover, .submit-btn:focus, .secondary-btn:hover, .secondary-btn:focus {
  background: #5d3e7e !important;
  color: #fff;
  box-shadow: 0 6px 18px 0 rgba(116,79,140,0.15);
}

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

.secondary-btn {
  background: #f5f5f5 !important;
  color: #303030 !important;
  border: 1.5px solid #bdbdbd;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
  padding: 12px 24px;
  box-shadow: none;
  transition: background 0.15s, border 0.15s, color 0.15s;
}

.secondary-btn:hover, .secondary-btn:focus {
  background: #ececec !important;
  border-color: #744f8c;
  color: #744f8c !important;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
    width: calc(100% - 2rem);
  }
  
  #modal-title {
    font-size: 1.5rem;
  }
  
  #modal-price {
    font-size: 1.3rem;
  }
  
  .input-wrapper input {
    padding: 0.875rem 0.75rem;
  }
}

#modal-form-container {
  /* Remove animations that might cause hanging */
}

/* Remove empty state styles */

.form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.5rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.form-grid .input-wrapper {
  flex: 1 1 45%;
  min-width: 180px;
  margin-bottom: 0;
  width: auto;
  box-sizing: border-box;
}

.form-grid .input-wrapper input {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.form-grid .input-wrapper:last-child {
  grid-column: 1 / 2;
}

.form-section {
  margin-bottom: 0.8rem;
}
.form-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #744f8c;
  letter-spacing: 0.01em;
}
.form-section:last-child {
  margin-bottom: 0;
}

.form-section-title,
#modal-price {
  color: #744f8c;
  font-weight: 700;
}

@media (max-width: 900px) {
  .form-grid {
    flex-direction: column;
    gap: 1.2rem 0;
  }
  .form-grid .input-wrapper {
    min-width: 0;
    width: 100%;
  }
}

.input-hint {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 2px;
  margin-left: 2px;
}

.radio-group {
  margin-top: 0.3rem;
  margin-bottom: 0.5rem;
}

.radio-label {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.radio-label span {
  margin-left: 8px;
}

.radio-label input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid #bdbdbd;
  border-radius: 50%;
  outline: none;
  position: relative;
  transition: all 0.2s ease-in-out;
}

.radio-label input[type="radio"]:checked {
  border-color: #744f8c;
}

.radio-label input[type="radio"]:checked::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  background-color: #744f8c;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.input-wrapper input {
  box-sizing: border-box;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0.3rem;
} 