
@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@400;500;600;700&display=swap');

:root {
  --primary-gradient: linear-gradient(90deg, #2b7cff, #21d4fd);
  --bg-color: #121212;
  --card-bg: rgba(30, 30, 30, 0.7);
  --border-color: rgba(255, 255, 255, 0.1);
  --text-color: #f5f5f7;
  --secondary-text: rgba(235, 235, 245, 0.6);
  --accent-color: #21d4fd;
  --error-color: #ff453a;
  --success-color: #32d74b;
  --border-radius: 18px;
  --transition-bezier: cubic-bezier(.5,1.5,.55,1.01);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.5;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 20px;
  padding-bottom: 100px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(43, 124, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(33, 212, 253, 0.1) 0%, transparent 50%);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.container {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--secondary-text);
}

/* Stepper - Improved design */
.stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
  padding: 0 10px;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: -1;
  transform: translateY(-50%);
  border-radius: 4px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
  position: relative;
  transition: all 0.3s var(--transition-bezier);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.step-label {
  font-size: 13px;
  color: var(--secondary-text);
  text-align: center;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s var(--transition-bezier);
}

.step.active .step-icon {
  background: var(--primary-gradient);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(43, 124, 255, 0.5);
}

.step.active .step-label {
  color: var(--text-color);
  font-weight: 500;
}

.step.completed .step-icon {
  background: var(--primary-gradient);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(43, 124, 255, 0.3);
}

.step.completed .step-icon::after {
  content: "✓";
  color: white;
}

.progress-line {
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  background: var(--primary-gradient);
  z-index: -1;
  transform: translateY(-50%);
  transition: width 0.5s var(--transition-bezier);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(33, 212, 253, 0.5);
}

/* Form Styles */
.form-step {
  display: none;
  animation: fadeIn 0.5s var(--transition-bezier);
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 24px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s var(--transition-bezier), box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-compact {
  padding: 16px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--secondary-text);
}

input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(60, 60, 60, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-color);
  font-size: 16px;
  transition: border-color 0.3s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

input[type="date"] {
  padding: 11px 16px;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(33, 212, 253, 0.2);
}

select {
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px top 50%;
  padding-right: 36px;
}

.row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.col {
  flex: 1 1 260px;
}

.btn {
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--transition-bezier);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(33, 212, 253, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(33, 212, 253, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-color);
  box-shadow: none;
}

.btn-outline:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(33, 212, 253, 0.2);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.actions {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 16px;
}

/* Dynamic cards */
.card-list {
  margin-bottom: 16px;
}

.empty-state {
  text-align: center;
  padding: 24px;
  color: var(--secondary-text);
}

.remove-btn {
  color: var(--error-color);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.remove-btn:hover {
  background: rgba(255, 69, 58, 0.1);
}

/* Pills for choreography selection */
.pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  background: rgba(60, 60, 60, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.pill.selected {
  background: var(--primary-gradient);
  border-color: transparent;
  color: white;
}

/* File upload */
.file-input-container {
  position: relative;
  margin-top: 8px;
}

.file-input-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(60, 60, 60, 0.5);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-input-label:hover {
  border-color: var(--accent-color);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-name {
  font-size: 14px;
  margin-top: 4px;
  color: var(--secondary-text);
}

/* Summary styles */
.summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.summary-table th {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--secondary-text);
  font-weight: 500;
}

.summary-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
}

.summary-section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 12px;
  color: var(--text-color);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  padding: 16px 12px;
  border-top: 1px solid var(--accent-color);
  margin-top: 12px;
  color: var(--accent-color);
  font-size: 18px;
}

.summary-table .price {
  text-align: right;
}

/* Success screen */
.success-screen {
  display: none;
  text-align: center;
  animation: scaleIn 0.6s var(--transition-bezier);
}

/* Error screen */
.error-screen {
  display: none;
  text-align: center;
  animation: scaleIn 0.6s var(--transition-bezier);
}

.error-icon {
  width: 80px;
  height: 80px;
  background: var(--error-color);
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: bold;
  color: white;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--success-color);
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.pix-key {
  margin: 24px auto;
  background: rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: 12px;
  font-size: 18px;
  color: var(--accent-color);
  display: inline-block;
}

.help-text {
  font-size: 13px;
  color: var(--secondary-text);
  margin-top: 6px;
}

.error-message {
  color: var(--error-color);
  font-size: 13px;
  margin-top: 4px;
  display: none;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .step-label {
    display: none;
  }
  
  .card {
    padding: 16px;
  }
  
  .actions {
    flex-direction: column-reverse;
  }
  
  .actions .btn {
    width: 100%;
  }
}

@media (max-width: 780px) and (min-width: 481px) {
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
  }
}

/* Adicionar espaçamento entre os textos das seções e os cartões */
.card > p {
  margin-bottom: 20px;
  color: var(--secondary-text);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* Campo de acompanhante PCD */
.companion-field {
  display: none;
  margin-top: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  animation: fadeIn 0.3s ease;
}

.companion-field.visible {
  display: block;
}