/* ========================================
   MULTISTEP VENUE SUBMISSION STYLES
   ======================================== */

/* Main container styling */
.submission-container {
  max-width: 900px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
}

.submission-form-container {
  background: transparent;
  padding: 2rem 0;
  margin-bottom: 2rem;
  position: relative;
}

/* Multistep Progress Indicator - Positioned below form */
.multistep-progress {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
  position: relative;
}

.progress-bar {
  height: 3px;
  background: #f1f5f9;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 2px;
  width: 25%;
  transition: width 0.6s ease;
  position: relative;
  opacity: 0.7;
}

.step-indicators {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  gap: 0.5rem;
}

/* Responsive layout for medium screens */
@media (max-width: 640px) {
  .step-indicators {
    max-width: 350px;
    gap: 0.25rem;
  }

  .step-number {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  .step-label {
    font-size: 0.7rem;
    max-width: 70px;
  }
}

/* Responsive layout for very small screens */
@media (max-width: 480px) {
  .step-indicators {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    max-width: 280px;
  }

  .step:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .step:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .step:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }

  .step:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  /* Hide the 5th step on very small screens */
  .step:nth-child(5) {
    display: none;
  }
}

/* Hide step 5 from step indicators on all screen sizes */
.step:nth-child(5) {
  display: none;
}

/* Hide progress bar and step indicators on success step */
.multistep-progress.hidden {
  display: none;
}

.step-number {
  width: 32px;
  height: 32px;
  font-size: 0.875rem;
}

.step-label {
  font-size: 0.75rem;
  max-width: 80px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.step.active {
  opacity: 1;
}

.step.completed {
  opacity: 0.8;
}

.step.active .step-number {
  background: var(--primary-color);
  color: white;
}

.step.completed .step-number {
  background: #10b981;
  color: white;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.step.active .step-number {
  background: var(--primary-color);
  color: white;
  opacity: 0.9;
}

.step.completed .step-number {
  background: #10b981;
  color: white;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 400;
  color: #94a3b8;
  max-width: 80px;
  line-height: 1.2;
  text-align: center;
}

.step.active .step-label {
  color: #475569;
  font-weight: 500;
}

.step.completed .step-label {
  color: #10b981;
  font-weight: 500;
}

/* Clickable step indicators */
.step.clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}

.step.clickable:hover {
  opacity: 0.8;
}

.step.clickable:hover .step-number {
  background: #059669;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.step.clickable:hover .step-label {
  color: #047857;
  font-weight: 600;
}

/* Active step is also clickable */
.step.active {
  cursor: pointer;
}

.step.active:hover {
  opacity: 0.9;
}

/* Non-clickable steps (future steps) */
.step:not(.clickable):not(.active) {
  cursor: not-allowed;
}

/* Multistep Form */
.multistep-form {
  position: relative;
  min-height: 400px;
}

.form-step {
  display: none;
  animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateX(30px);
}

.form-step.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

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

.step-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.step-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.step-description {
  font-size: 1rem;
  color: #666666;
  line-height: 1.5;
  max-width: 500px;
  margin: 0 auto;
}

/* Enhanced form styling for multistep */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
  display: block;
  font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 1rem;
  transition: all 0.15s ease-out;
  background: #ffffff;
  box-shadow: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(46, 74, 125, 0.2);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--primary-color);
}

/* Step Actions */
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  gap: 1rem;
}

.next-btn,
.prev-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease-out;
  position: relative;
  min-width: 120px;
}

.next-btn {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-left: auto;
}

.next-btn:hover {
  background: var(--primary-color-hover);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.next-btn:active {
  transform: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.next-btn:disabled,
.next-btn.disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

.next-btn:disabled:hover,
.next-btn.disabled:hover {
  background: #e5e7eb;
  color: #9ca3af;
  box-shadow: none;
  transform: none;
}

.prev-btn {
  background: #f8f9fa;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.prev-btn:hover {
  background: #e5e7eb;
  color: #374151;
}

/* Review Summary */
.review-summary {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1.5rem;
  margin: 2rem 0 0.75rem 0;
}

.review-item {
  margin-bottom: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.95rem;
  line-height: 1.5;
}

.review-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.review-item strong {
  color: #374151;
  font-weight: 600;
}

.review-item span {
  color: #6b7280;
}

/* Enhanced Submit Button */
.submit-button {
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  min-width: 140px;
}

.submit-button:hover:not(:disabled) {
  background: var(--primary-color-hover);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.submit-button.loading {
  color: transparent;
}

.submit-button.loading .submit-loading {
  display: inline !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

/* Error states */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #ef4444;
  background: #fef2f2;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.5rem;
  display: none;
  animation: fadeIn 0.3s ease;
}

.error-message.visible {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .submission-container {
    margin: 1rem auto 3rem;
    padding: 0 1rem;
  }

  .submission-form-container {
    padding: 1.5rem;
    border-radius: 12px;
  }

  .step-title {
    font-size: 1.5rem;
  }

  .step-description {
    font-size: 0.95rem;
  }

  .step-indicators {
    gap: 0.5rem;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }

  .step-label {
    font-size: 0.75rem;
    max-width: 80px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.75rem 1rem;
  }

  .step-actions {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }

  .next-btn,
  .prev-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
  }

  .submit-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .submission-form-container {
    padding: 1rem;
  }

  .step-title {
    font-size: 1.25rem;
  }

  .step-description {
    font-size: 0.9rem;
  }

  .step-indicators {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .step {
    flex: 1 1 calc(50% - 0.5rem);
    margin-bottom: 1rem;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .step-label {
    font-size: 0.7rem;
    max-width: 60px;
  }
}

/* Desktop enhancements */
@media (min-width: 1024px) {
  .submission-container {
    max-width: 1000px;
    margin: 3rem auto 5rem;
  }

  .submission-form-container {
    padding: 3rem;
  }

  .step-title {
    font-size: 2rem;
  }

  .step-description {
    font-size: 1.1rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
  }

  .next-btn,
  .prev-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .submit-button {
    padding: 1rem 2.5rem;
    font-size: 1rem;
  }
}

/* Additional form styling for compatibility */
.form-group .required {
  color: #ef4444;
  font-weight: 600;
  margin-left: 0.25rem;
}

.form-group .optional {
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 400;
  margin-left: 0.25rem;
}

/* Enhanced select styling */
.form-group 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='%236b7280' 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 1rem center;
  background-size: 1rem;
  padding-right: 3rem;
}

/* Terms notice styling - centered below review summary */
.terms-notice {
  font-size: 0.8rem;
  color: #6b7280;
  text-align: center;
  margin: 0 0 0 0;
  line-height: 1.4;
  padding: 0;
}

.terms-notice a {
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.terms-notice a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* ========================================
   SUCCESS PAGE STYLES
   ======================================== */

.success-page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.success-content {
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  margin-bottom: 2rem;
}

.success-icon-circle {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.success-icon-circle i {
  font-size: 1.5rem;
  color: white;
}

.success-message {
  margin-bottom: 3rem;
}

.success-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.success-description {
  font-size: 1rem;
  color: #666666;
  line-height: 1.5;
  max-width: 500px;
  margin: 0 auto;
}

.review-process {
  margin-bottom: 2.5rem;
  text-align: left;
}

.process-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1.5rem;
  text-align: center;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.step-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-icon i {
  color: white;
  font-size: 0.875rem;
}

.step-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.4;
  margin: 0;
}

.success-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
  font-size: 0.95rem;
  min-width: 120px;
  justify-content: center;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-color-hover);
}

.btn-secondary {
  background: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background: #4b5563;
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline:hover {
  background: rgba(46, 74, 125, 0.1);
  color: var(--primary-color);
}

.additional-info {
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.info-text {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

.info-text i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.info-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: text-decoration 0.15s ease;
}

.info-text a:hover {
  text-decoration: underline;
}

/* Responsive Design for Success Page */
@media (max-width: 768px) {
  .success-page-container {
    padding: 1rem;
  }

  .success-content {
    padding: 1.5rem 0;
  }

  .success-title {
    font-size: 1.5rem;
  }

  .success-description {
    font-size: 0.95rem;
  }

  .process-steps {
    gap: 0.75rem;
  }

  .process-step {
    padding: 0.75rem;
    flex-direction: column;
    text-align: center;
  }

  .step-icon {
    align-self: center;
  }

  .success-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .info-text {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .success-content {
    padding: 1rem 0;
  }

  .success-icon-circle {
    width: 50px;
    height: 50px;
  }

  .success-icon-circle i {
    font-size: 1.25rem;
  }

  .success-title {
    font-size: 1.25rem;
  }

  .process-step {
    padding: 0.5rem;
  }
}
