* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  min-height: 60vh;
}

.header {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  padding: 10px;
  text-align: center;
  flex-shrink: 0;
}

.header h1 {
  font-size: 1.2em;
  font-weight: 300;
}

.header p {
  font-size: 1em;
  opacity: 0.9;
}

.main-content {
  display: flex;
  flex: 1;
  min-height: 0;
}

.left-panel {
  flex: 1;
  padding: 20px;
  border-right: 1px solid #e1e5e9;
}

.right-panel {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.content {
  padding: 0;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #555;
  font-size: 13px;
}

.form-group input {
  width: 100%;
  padding: 8px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  font-size: 12px;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-group input:focus {
  outline: none;
  border-color: #4facfe;
  background: white;
  box-shadow: 0 0 0 2px rgba(79, 172, 254, 0.1);
}

.form-group input::placeholder {
  color: #999;
}

.submit-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

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

.result {
  flex: 1;
  padding: 20px;
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  border-radius: 15px;
  color: #333;
  display: block;
  margin-top: 0;
}

.welcome-content {
  text-align: center;
  padding: 20px 0;
  color: #333;
}

.welcome-content h3 {
  margin-bottom: 25px;
  font-size: 1.3em;
  font-weight: 600;
  color: #999;
}

.welcome-steps {
  margin-bottom: 30px;
}

.step {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.step-number {
  background: rgba(255, 255, 255, 0.3);
  color: #333;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
}

.step-text {
  font-size: 0.95em;
  font-weight: 500;
}

.welcome-tips {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
}

.welcome-tips p {
  margin-bottom: 10px;
  font-weight: 600;
}

.welcome-tips ul {
  list-style: none;
  padding: 0;
}

.welcome-tips li {
  padding: 5px 0;
  font-size: 0.9em;
  line-height: 1.4;
}

.welcome-tips li:before {
  content: "•";
  color: #ffd700;
  font-weight: bold;
  margin-right: 8px;
}

.result.show {
  display: block;
  animation: slideIn 0.5s ease;
}

.result.show .welcome-content {
  display: none;
}

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

.result h3 {
  margin-bottom: 15px;
  font-size: 1.2em;
  font-weight: 600;
  color: #333;
}

.result ul {
  list-style: none;
}

.result li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result li:last-child {
  border-bottom: none;
}

.quantity {
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.9em;
}

.price {
  font-weight: 700;
  font-size: 1.1em;
}

.error {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
  padding: 15px;
  border-radius: 10px;
  margin-top: 20px;
  text-align: center;
  font-weight: 600;
}

.info-box {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  border-left: 4px solid #4facfe;
}

.info-box h3 {
  color: #333;
  margin-bottom: 8px;
  font-size: 14px;
}

.info-box p {
  color: #333;
  line-height: 1.5;
  margin-bottom: 6px;
  font-size: 13px;
}

@media (max-width: 768px) {
  .container {
    margin: 10px;
    border-radius: 15px;
    flex-direction: column;
  }

  .main-content {
    flex-direction: column;
  }

  .left-panel {
    border-right: none;
    border-bottom: 1px solid #e1e5e9;
  }

  .header {
    padding: 15px;
  }

  .header h1 {
    font-size: 1.8em;
  }

  .left-panel,
  .right-panel {
    padding: 20px;
  }

  .result li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}