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

body {
  background: #fff;
  min-height: 100vh;
  padding: 40px 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
}

.main-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.header-section {
  background: #242d3c;
  color: white;
  padding: 32px 40px;
  border-bottom: 1px solid #e5e7eb;
}

.header-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.header-section p {
  color: #9ca3af;
  font-size: 14px;
  margin: 0;
}

.form-section {
  padding: 40px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.form-label .required {
  color: #c0423e;
}

.form-control,
.form-select {
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  transition: all 0.2s;
  outline: none;
}

.form-control:focus,
.form-select:focus {
  border-color: #242d3c;
  box-shadow: 0 0 0 3px rgba(36, 45, 60, 0.1);
}

.form-control::placeholder {
  color: #9ca3af;
}

.input-group {
  display: flex;
  align-items: stretch;
}

.input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  flex: 1;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-left: none;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.currency-input {
  width: 80px;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  border-right: none;
  background: #f9fafb;
  font-weight: 500;
}

.price-amount {
  border-radius: 0;
  border-left: 1px solid #d1d5db;
  border-right: none;
}

.btn-generate {
  width: 100%;
  height: 44px;
  background: #c0423e;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-generate:hover {
  background: #a83834;
}

.btn-generate:active {
  transform: scale(0.98);
}

.btn-generate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.success-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #10b981;
  color: white;
  padding: 16px 24px;
  border-radius: 6px;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
}

.success-message.show {
  display: flex;
}

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

.success-message i {
  font-size: 20px;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.col-12 {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .form-section {
    padding: 24px;
  }

  .header-section {
    padding: 24px;
  }
}
