/* pages/application/application.wxss */
.container {
  background: #f5f5f5;
  min-height: 100vh;
  padding-bottom: 120rpx;
}

/* 产品信息卡片 */
.product-card {
  background: white;
  margin: 20rpx;
  border-radius: 16rpx;
  padding: 30rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
}

.product-info {
  display: flex;
  align-items: center;
  gap: 20rpx;
}

.product-img {
  width: 120rpx;
  height: 120rpx;
  border-radius: 12rpx;
}

.product-details {
  flex: 1;
}

.product-name {
  font-size: 32rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 10rpx;
  display: block;
}

.product-desc {
  font-size: 24rpx;
  color: #666;
  margin-bottom: 15rpx;
  display: block;
}

.price-info {
  display: flex;
  align-items: baseline;
}

.price {
  font-size: 36rpx;
  font-weight: bold;
  color: #ff4757;
}

.price-unit {
  font-size: 24rpx;
  color: #999;
  margin-left: 5rpx;
}

/* 表单区域 */
.form-section {
  background: white;
  margin: 20rpx;
  border-radius: 16rpx;
  padding: 30rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 36rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 30rpx;
  padding-bottom: 15rpx;
  border-bottom: 2rpx solid #f0f0f0;
}

.form-group {
  margin-bottom: 40rpx;
}

.group-title {
  font-size: 28rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 25rpx;
  padding-left: 15rpx;
  border-left: 4rpx solid #1890ff;
}

.form-item {
  margin-bottom: 25rpx;
}

.label {
  font-size: 26rpx;
  color: #333;
  margin-bottom: 10rpx;
  display: block;
}

.label.required::after {
  content: '*';
  color: #ff4757;
  margin-left: 5rpx;
}

.form-input {
  width: 100%;
  height: 80rpx;
  background: #f8f9fa;
  border-radius: 12rpx;
  padding: 0 20rpx;
  font-size: 28rpx;
  color: #333;
  border: 2rpx solid transparent;
  transition: all 0.3s;
}

.form-input:focus {
  border-color: #1890ff;
  background: white;
}

/* 单选按钮组 */
.radio-group {
  display: flex;
  gap: 30rpx;
}

.radio-item {
  display: flex;
  align-items: center;
  padding: 15rpx 25rpx;
  background: #f8f9fa;
  border-radius: 25rpx;
  border: 2rpx solid transparent;
  transition: all 0.3s;
}

.radio-item.active {
  background: #e6f7ff;
  border-color: #1890ff;
}

.radio-icon {
  font-size: 24rpx;
  color: #1890ff;
  margin-right: 10rpx;
}

.radio-text {
  font-size: 26rpx;
  color: #333;
}

/* 选择器 */
.picker, .date-picker {
  width: 100%;
  height: 80rpx;
  background: #f8f9fa;
  border-radius: 12rpx;
  padding: 0 20rpx;
  display: flex;
  align-items: center;
  border: 2rpx solid transparent;
  transition: all 0.3s;
}

.picker:active, .date-picker:active {
  border-color: #1890ff;
  background: white;
}

.picker-text {
  font-size: 28rpx;
  color: #333;
}

/* 保险金额选择器 */
.amount-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 15rpx;
}

.amount-option {
  padding: 15rpx 25rpx;
  background: #f8f9fa;
  border-radius: 25rpx;
  border: 2rpx solid transparent;
  transition: all 0.3s;
}

.amount-option.active {
  background: #e6f7ff;
  border-color: #1890ff;
}

.amount-text {
  font-size: 26rpx;
  color: #333;
}

/* 健康告知 */
.health-notice {
  background: #fff7e6;
  padding: 20rpx;
  border-radius: 12rpx;
  margin-bottom: 25rpx;
  border-left: 4rpx solid #faad14;
}

.notice-text {
  font-size: 24rpx;
  color: #d48806;
  line-height: 1.5;
}

.health-questions {
  display: flex;
  flex-direction: column;
  gap: 25rpx;
}

.question-item {
  padding: 25rpx;
  background: #f8f9fa;
  border-radius: 12rpx;
}

.question-text {
  font-size: 26rpx;
  color: #333;
  margin-bottom: 15rpx;
  display: block;
  line-height: 1.5;
}

.answer-options {
  display: flex;
  gap: 20rpx;
}

.option-item {
  display: flex;
  align-items: center;
  padding: 10rpx 20rpx;
  background: white;
  border-radius: 20rpx;
  border: 2rpx solid #e8e8e8;
  transition: all 0.3s;
}

.option-item.active {
  background: #e6f7ff;
  border-color: #1890ff;
}

.option-icon {
  font-size: 20rpx;
  color: #1890ff;
  margin-right: 8rpx;
}

.option-text {
  font-size: 24rpx;
  color: #333;
}

/* 保费计算 */
.premium-section {
  margin-top: 30rpx;
}

.premium-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16rpx;
  padding: 30rpx;
  color: white;
}

.premium-title {
  font-size: 32rpx;
  font-weight: bold;
  margin-bottom: 20rpx;
  text-align: center;
}

.premium-details {
  display: flex;
  flex-direction: column;
  gap: 15rpx;
}

.premium-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 26rpx;
}

.premium-item.total {
  font-size: 32rpx;
  font-weight: bold;
  padding-top: 15rpx;
  border-top: 1rpx solid rgba(255, 255, 255, 0.3);
}

.premium-label {
  color: rgba(255, 255, 255, 0.9);
}

.premium-value {
  color: white;
  font-weight: bold;
}

/* 协议确认 */
.agreement-section {
  background: white;
  margin: 20rpx;
  border-radius: 16rpx;
  padding: 30rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
}

.agreement-item {
  display: flex;
  align-items: flex-start;
  font-size: 24rpx;
  color: #666;
  line-height: 1.5;
}

.agreement-text {
  margin-left: 15rpx;
  flex: 1;
}

.link {
  color: #1890ff;
}

/* 底部操作栏 */
.bottom-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 20rpx 30rpx;
  border-top: 1rpx solid #e8e8e8;
  z-index: 100;
}

.submit-btn {
  width: 100%;
  height: 80rpx;
  border-radius: 40rpx;
  font-size: 32rpx;
  font-weight: bold;
  border: none;
  transition: all 0.3s;
}

.submit-btn.active {
  background: #1890ff;
  color: white;
}

.submit-btn.disabled {
  background: #f0f0f0;
  color: #ccc;
}

.submit-btn::after {
  border: none;
}

/* 加载状态 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-content {
  background: white;
  padding: 40rpx;
  border-radius: 16rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20rpx;
}

.loading-spinner {
  width: 60rpx;
  height: 60rpx;
  border: 4rpx solid #f0f0f0;
  border-top: 4rpx solid #1890ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 28rpx;
  color: #666;
}

/* 响应式设计 */
@media (max-width: 750rpx) {
  .product-card,
  .form-section,
  .agreement-section {
    margin: 15rpx;
    padding: 20rpx;
  }
  
  .bottom-actions {
    padding: 15rpx 20rpx;
  }
}

/* 动画效果 */
.radio-item,
.amount-option,
.option-item {
  transition: all 0.3s ease;
}

.radio-item:active,
.amount-option:active,
.option-item:active {
  transform: scale(0.95);
}