/* static/css/frontend.css */
:root {
	--primary-blue: #0a5f9e;
	--secondary-blue: #3c8dbc;
	--light-gray: #f5f5f5;
	--dark-gray: #333;
	--success-green: #4CAF50;
	--warning-orange: #ff9800;
}

body {
	font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	line-height: 1.6;
	color: var(--dark-gray);
	background: #f8f9fa;
	margin: 0;
	padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
}

.activation-card {
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
	padding: 30px;
	margin: 20px 0;
}

.split-layout {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.product-info {
  text-align: center;
}
.product-info h2 {
  font-size: 1.8em;
  margin-bottom: 10px;
}
.product-info p {
  font-size: 1em;
  color: #666;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: var(--primary-blue);
}

.form-control {
	width: 90%;
	padding: 12px 15px; /* 增加右边的内边距 */
	border: 1px solid #ddd;
	border-radius: 4px;
	transition: border-color 0.3s;
}

.form-control:focus {
	border-color: var(--primary-blue);
	outline: none;
	box-shadow: 0 0 0 2px rgba(10,95,158,0.2);
}

.btn-primary {
	background: var(--primary-blue);
	color: white;
	padding: 12px 30px;
	border-radius: 25px;
	border: none;
	cursor: pointer;
	transition: background 0.3s;
	width: 100%;
}

.btn-primary:hover {
  background: var(--secondary-blue);
}

.success-card {
  background: white;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
}

.giftcard-preview {
  background: var(--light-gray);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.step-indicator {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.step-item {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 15px;
  position: relative;
}

.step-item.active {
  background: var(--primary-blue);
  color: white;
}

.step-item:not(:last-child):after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background: #ddd;
  left: calc(100% + 5px);
  top: 50%;
  transform: translateY(-50%);
}

.text-mono {
    font-family: Monaco, Consolas, "Courier New", monospace;
    color: var(--primary-blue);
    font-size: 0.9em;
}

.info-item {
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.btn-primary {
    box-shadow: 0 4px 6px rgba(10, 95, 158, 0.2);
}

.notice-box {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-blue);
    padding: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.notice-box i {
    color: var(--primary-blue);
    font-size: 1.2em;
}

.process-title {
    font-size: 1.3em;
    color: #2c3e50;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid var(--primary-blue);
    margin-bottom: 2rem;
}

.step-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: #666;
}

.process-notice {
    background: #fff9e6;
    border-radius: 8px;
    padding: 18px;
    margin-top: 2rem;
    display: flex;
    gap: 15px;
    align-items: center;
}

.process-notice i {
    color: #e67e22;
    font-size: 1.4em;
}

.process-notice p {
    margin: 0;
    color: #e67e22;
    font-weight: 500;
}

.alert-container {
    margin-bottom: 1.5rem;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}

.is-invalid {
	border-color: #dc3545 !important;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right calc(0.375em + 0.1875rem) center;
	background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

@media (min-width: 768px) {
  .split-layout {
    flex-direction: row;
  }
  .product-info, .activation-form {
    flex: 1;
  }
  .product-info {
    text-align: left;
  }
  .form-control {
    width: 70%;
  }
}
