/* ===== 文件：apply.css ===== */

.apply-page {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  background: #f7f8fa;
}

.apply-main {
  padding: 100px 20px 60px;
}

.apply-container {
  max-width: 1100px;
  margin: 0 auto;
}

.apply-header {
  text-align: center;
  margin-bottom: 48px;
}

.apply-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: #1d2129;
  margin-bottom: 12px;
}

.apply-header p {
  font-size: 16px;
  color: #86909c;
  line-height: 1.6;
}

.apply-content {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 32px;
  align-items: start;
}

.apply-sidebar {
  position: sticky;
  top: 100px;
}

.pricing-summary-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}

.summary-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d2129;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #165DFF;
}

.version-item {
  background: #f7f8fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.version-item:last-child {
  margin-bottom: 0;
}

.version-item:hover,
.version-item.selected {
  border-color: #165DFF;
  background: #f0f5ff;
}

.version-name {
  font-size: 15px;
  font-weight: 600;
  color: #1d2129;
  margin-bottom: 8px;
}

.version-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.price-old {
  font-size: 14px;
  color: #c9cdd4;
  text-decoration: line-through;
}

.price-new {
  font-size: 24px;
  font-weight: 700;
  color: #F53F3F;
}

.price-unit {
  font-size: 13px;
  color: #4e5969;
  font-weight: normal;
}

.version-scenario {
  font-size: 12px;
  color: #86909c;
  margin-top: 8px;
}

.sidebar-notice {
  background: linear-gradient(90deg, #fff7e8 0%, #fff3d6 100%);
  border-radius: 8px;
  padding: 16px;
  font-size: 13px;
  color: #996b00;
  line-height: 1.7;
}

.sidebar-advantages {
  margin-top: 16px;
}

.advantage-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 13px;
  color: #4e5969;
}

.advantage-item svg {
  flex-shrink: 0;
}

.form-hint {
  font-size: 13px;
  color: #86909c;
  margin-top: -20px;
  margin-bottom: 24px;
}

.apply-form-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.form-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #1d2129;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f2f3f5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row-single {
  margin-bottom: 20px;
}

.radio-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #4e5969;
}

.radio-item input[type="radio"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #165DFF;
}

.textarea-wrapper textarea {
  min-height: 120px;
  resize: vertical;
}

.switch-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.switch-label {
  font-size: 14px;
  color: #4e5969;
}

.custom-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #c9cdd4;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.custom-switch.active {
  background: #165DFF;
}

.custom-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.custom-switch.active::after {
  transform: translateX(20px);
}

.submit-actions {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #f2f3f5;
  text-align: center;
}

.success-container {
  max-width: 560px;
  margin: 80px auto;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 60px 48px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.success-icon-large {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  background: linear-gradient(135deg, #e8ffea 0%, #d4ffd8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon-large svg {
  width: 48px;
  height: 48px;
  fill: #00B42A;
}

.success-container h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1d2129;
  margin-bottom: 16px;
}

.success-info {
  background: #f7f8fa;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
  text-align: left;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid #f2f3f5;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: #86909c;
}

.info-value {
  color: #1d2129;
  font-weight: 500;
}

.success-note {
  font-size: 13px;
  color: #86909c;
  line-height: 1.7;
  margin: 24px 0 32px;
}

@media (max-width: 1024px) {
  .apply-content {
    grid-template-columns: 1fr;
  }

  .apply-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
  .apply-main {
    padding: 80px 16px 40px;
  }

  .apply-header h1 {
    font-size: 26px;
  }

  .apply-form-card {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .success-container {
    margin: 48px 16px;
    padding: 40px 24px;
  }

  .success-icon-large {
    width: 72px;
    height: 72px;
  }

  .success-icon-large svg {
    width: 36px;
    height: 36px;
  }

  .success-container h2 {
    font-size: 22px;
  }
}