.contact-form-wrapper,
.contact-form-wrapper * {
  box-sizing: border-box;
}
.contact-form-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 36px 40px 42px;

    background: #ffffff;

    border: 1px solid #eeeeee;
    border-radius: 14px;

    box-shadow:
      0 8px 30px rgba(47, 34, 71, 0.05);
  }

  .form-section {
    margin-bottom: 42px;
  }

  .form-section:last-of-type {
    margin-bottom: 30px;
  }

  .section-title {
    display: flex;
    align-items: center;

    margin: 0 0 30px;

    padding-bottom: 12px;

    color: #54257a;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.4;

    border-bottom: 1px solid #65348d;
  }

  .section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    margin-right: 12px;

    color: #ffffff;
    background: #65348d;

    border-radius: 8px;

    font-size: 17px;
  }

  .form-item {
    margin-bottom: 27px;
  }

  .form-item:last-child {
    margin-bottom: 0;
  }

  .form-label {
    display: block;

    margin-bottom: 6px;

    color: #242424;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
  }

  .required {
    margin-left: 3px;
    color: #ef4444;
  }

  .form-description {
    margin: 2px 0 8px;

    color: #666666;
    font-size: 14px;
    line-height: 1.6;
  }

  /* 无描述时（空 div）不占空间，避免多出一段空白/换行 */
  .form-description:empty {
    display: none;
    margin: 0;
  }

  .input-wrapper {
    position: relative;
  }

  .input-icon {
    position: absolute;

    top: 50%;
    left: 17px;

    width: 20px;
    height: 20px;

    transform: translateY(-50%);

    color: #68748a;

    pointer-events: none;
  }

  .form-input,
  .form-select,
  .form-textarea {
    width: 100%;

    color: #252525;
    background: #ffffff;

    border: 1px solid #dedfe4;
    border-radius: 10px;

    outline: none;

    font-family: inherit;
    font-size: 15px;

    transition:
      border-color .2s ease,
      box-shadow .2s ease,
      background-color .2s ease;
  }

  .form-input {
    height: 56px;
    padding: 0 18px 0 52px;
  }

  .form-input::placeholder,
  .form-textarea::placeholder {
    color: #a6acb8;
  }

  .form-input:hover,
  .form-select:hover,
  .form-textarea:hover {
    border-color: #c9aee0;
  }

  .form-input:focus,
  .form-select:focus,
  .form-textarea:focus {
    border-color: #7650a1;

    box-shadow:
      0 0 0 3px rgba(118, 80, 161, 0.10);
  }
  .select-wrapper {
    position: relative;

    width: 292px;
  }

  .form-select {
    height: 56px;

    padding: 0 48px 0 52px;

    appearance: none;
    cursor: pointer;

    color: #a6acb8;
  }

  .form-select.has-value {
    color: #252525;
  }

  .select-arrow {
    position: absolute;

    top: 50%;
    right: 18px;

    width: 9px;
    height: 9px;

    border-right: 1.5px solid #7650a1;
    border-bottom: 1.5px solid #7650a1;

    transform:
      translateY(-65%)
      rotate(45deg);

    pointer-events: none;
  }
  .error-message {
    display: none;

    margin-top: 7px;

    color: #ef4444;
    font-size: 13px;
    line-height: 1.5;
  }

  .form-item.has-error .error-message {
    display: block;
  }

  .form-item.has-error .form-input,
  .form-item.has-error .form-select,
  .form-item.has-error .form-textarea {
    border-color: #ef4444;

    box-shadow:
      0 0 0 3px rgba(239, 68, 68, 0.07);
  }
  .checkbox-grid {
    display: grid;

    grid-template-columns:
                repeat(5, minmax(0, 1fr));

    gap: 12px;

    margin-top: 15px;
  }

  .checkbox-item {
    position: relative;
  }

  .checkbox-item input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
  }

  .checkbox-label {
    display: flex;
    align-items: center;

    min-height: 54px;

    padding: 10px 13px;

    color: #444444;
    background: #ffffff;

    border: 1px solid #e1e3e8;
    border-radius: 10px;

    cursor: pointer;

    user-select: none;

    transition:
      border-color .2s ease,
      background-color .2s ease,
      box-shadow .2s ease,
      color .2s ease;
  }

  .checkbox-box {
    flex-shrink: 0;

    width: 20px;
    height: 20px;

    margin-right: 9px;

    border: 1.5px solid #aab1be;
    border-radius: 4px;

    background: #ffffff;

    transition: all .2s ease;
  }

  .checkbox-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
  }

  .checkbox-item input:checked + .checkbox-label {
    color: #54257a;

    background: #faf7fd;

    border-color: #7650a1;

    box-shadow:
      0 2px 8px rgba(118, 80, 161, 0.08);
  }

  .checkbox-item input:checked + .checkbox-label .checkbox-box {
    position: relative;

    background: #65348d;
    border-color: #65348d;
  }

  .checkbox-item input:checked + .checkbox-label .checkbox-box::after {
    content: "";

    position: absolute;

    left: 5px;
    top: 2px;

    width: 6px;
    height: 10px;

    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;

    transform: rotate(45deg);
  }

  .checkbox-label:hover {
    border-color: #bfa4d5;
  }

  /* 单选项（radio）：与多选 checkbox 卡片风格统一，区分点为圆形 + 居中圆点 */
  .radio-group {
    display: grid;

    grid-template-columns:
                repeat(5, minmax(0, 1fr));

    gap: 12px;

    margin-top: 4px;
    margin-bottom: 27px;
  }

  .radio-item {
    position: relative;
  }

  .radio-item input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
  }

  .radio-item label {
    display: flex;
    align-items: center;

    min-height: 54px;

    padding: 10px 13px 10px 42px;

    color: #444444;
    background: #ffffff;

    border: 1px solid #e1e3e8;
    border-radius: 10px;

    cursor: pointer;

    user-select: none;

    transition:
      border-color .2s ease,
      background-color .2s ease,
      box-shadow .2s ease,
      color .2s ease;
  }

  .radio-item label::before {
    content: "";
    position: absolute;

    left: 13px;
    top: 50%;
    transform: translateY(-50%);

    width: 20px;
    height: 20px;

    border: 1.5px solid #aab1be;
    border-radius: 50%;

    background: #ffffff;

    transition: all .2s ease;
  }

  .radio-item label::after {
    content: "";
    position: absolute;

    left: 20px;
    top: 50%;
    transform: translateY(-50%);

    width: 9px;
    height: 9px;

    border-radius: 50%;
    background: #65348d;

    opacity: 0;

    transition: opacity .2s ease;
  }

  .radio-item input:checked + label {
    color: #54257a;

    background: #faf7fd;

    border-color: #7650a1;

    box-shadow:
      0 2px 8px rgba(118, 80, 161, 0.08);
  }

  .radio-item input:checked + label::before {
    border-color: #65348d;
    background: #65348d;
  }

  .radio-item input:checked + label::after {
    opacity: 1;
    background: #ffffff;
  }

  .radio-item label:hover {
    border-color: #bfa4d5;
  }

  .textarea-wrapper {
    position: relative;
  }

  .form-textarea {
    min-height: 155px;

    padding: 15px 18px 34px;

    resize: vertical;

    line-height: 1.6;
  }

  .textarea-counter {
    position: absolute;

    right: 13px;
    bottom: 9px;

    color: #8b91a0;

    font-size: 12px;

    pointer-events: none;
  }

  .submit-wrapper {
    margin-top: 36px;

    text-align: center;
  }

  .submit-button {
    width: min(100%, 590px);
    height: 58px;

    border: none;
    border-radius: 7px;

    color: #ffffff;

    background:
      linear-gradient(
        90deg,
        #ff4d12 0%,
        #ff650b 100%
      );

    font-family: inherit;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
      0 7px 18px rgba(255, 91, 18, 0.18);

    transition:
      transform .2s ease,
      box-shadow .2s ease,
      opacity .2s ease;
  }

  .submit-button:hover {
    transform: translateY(-1px);

    box-shadow:
      0 10px 22px rgba(255, 91, 18, 0.25);
  }

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

  .submit-button.loading {
    opacity: .65;

    cursor: not-allowed;

    pointer-events: none;
  }

  .privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 18px;

    color: #8a8f9c;

    font-size: 13px;
    line-height: 1.5;
  }

  .privacy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    color: #ffffff;
    background: #65348d;

    border-radius: 5px;

    font-size: 11px;
  }

  .success-message {
    display: none;

    margin-bottom: 25px;
    padding: 14px 18px;

    color: #247a48;
    background: #f0faf4;

    border: 1px solid #bce5ca;
    border-radius: 9px;

    font-size: 14px;
  }

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

  @media (max-width: 768px) {



    .contact-form-wrapper {
      padding: 26px 20px 30px;

      border-radius: 12px;
    }

    .section-title {
      margin-bottom: 24px;

      font-size: 21px;
    }

    .form-section {
      margin-bottom: 34px;
    }

    .form-item {
      margin-bottom: 23px;
    }

    .checkbox-grid {
      grid-template-columns:
                    repeat(2, minmax(0, 1fr));

      gap: 10px;
    }

    .radio-group {
      grid-template-columns:
                    repeat(2, minmax(0, 1fr));

      gap: 10px;
    }

    .checkbox-label {
      min-height: 52px;
    }

    .select-wrapper {
      width: 100%;
    }

    .submit-button {
      width: 100%;
    }
  }

  @media (max-width: 430px) {

    .checkbox-grid {
      grid-template-columns: 1fr;
    }

    .checkbox-label {
      min-height: 48px;
    }

    .form-input,
    .form-select {
      height: 52px;
    }

    .form-textarea {
      min-height: 140px;
    }
  }
