/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.card-step {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 0.15rem;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
  margin-bottom: 1rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 0.4rem;
}

.input-field, select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xs);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
  background: var(--white);
  color: var(--gray-700);
}

.input-field:focus, select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(82,37,131,0.1);
}

.input-field.input-error, select.input-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,0.15);
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 48px;
  height: 48px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  border-radius: var(--radius-xs);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-weight: 600;
}

.qty-btn:hover {
  border-color: var(--purple);
  background: var(--purple-50);
  color: var(--purple);
}

.qty-input {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ===== INFO/WARNING BOXES ===== */
.info-box {
  background: var(--purple-50);
  border: 1px solid rgba(82,37,131,0.2);
  border-radius: var(--radius-xs);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--purple-dark);
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.info-box-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.warning-box {
  background: #fef3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius-xs);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #856404;
  margin-top: 0.75rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.warning-box.visible { display: flex; }

.discount-badge {
  background: rgba(141,153,104,0.15);
  border: 1px solid var(--green);
  color: var(--green-dark);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.75rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.discount-badge.visible { display: flex; }

/* ===== TOGGLE SERVICES ===== */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.toggle-row:hover {
  background: var(--gray-100);
}

.toggle-row.active {
  background: var(--purple-50);
  border-color: var(--purple);
}

.toggle-row.hidden { display: none; }

.toggle-info { flex: 1; }

.toggle-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-info p {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 0.15rem;
}

.toggle-switch {
  width: 52px;
  height: 28px;
  background: var(--gray-300);
  border-radius: 50px;
  position: relative;
  transition: all 0.3s;
  flex-shrink: 0;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--white);
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch.active {
  background: var(--purple);
}

.toggle-switch.active::after {
  left: 27px;
}

.toggle-options {
  padding: 1rem 1.25rem;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  margin-top: -0.5rem;
  margin-bottom: 0.75rem;
  display: none;
  border: 1px solid var(--gray-200);
}

.toggle-options.visible { display: block; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-xs);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  color: var(--white);
  width: 100%;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
  background: var(--gray-200);
}

.btn-green {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== MODALS ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal.visible { display: flex; }

.modal-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-800);
}

.modal-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.modal-buttons .btn { flex: 1; }

.summary-box {
  background: var(--gray-50);
  border-radius: var(--radius-xs);
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  border: 1px solid var(--gray-200);
}
