.contact_section {

  .mail_form {
    background-color: white;
    box-shadow: 0px 15px 9px 0px rgb(0 0 0 / 8%);
    border-radius: 6vw 0 2vw 0;
    position: relative;
    z-index: 5;
    padding: 5rem;

    h2 {
      text-align: center;
      padding-bottom: 2rem;
      color: #FE9A07;
    }


    p {
      margin: 0;
    }


    p:last-of-type {
      margin: 0;
      z-index: 0;
    }


    .qa_section {
      background-color: #F8F8F8;
      border-radius: 12px;
      border: unset;
      margin: 0;
      position: relative;
      padding: 1.2rem;

      span::after {
        content: '';
        display: block;
        aspect-ratio: 17/10;
        height: 100%;
        position: absolute;
        right: 0;
        top: 0;
        width: 40px; /* 箭頭區域的寬度 */
        border-radius: 0 4px 4px 0; /* 右側圓角 */
        pointer-events: none; /* 讓箭頭不影響點擊操作 */
        background-size: 20px 20px;
        background: url('../images/ui/arrow_down.svg') no-repeat center;
      }
    }

    .qa_section select {
      background-color: #F8F8F8;
      border-radius: 2vw;
      border: unset;
      width: 100%;
      padding: 1rem;
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      position: relative;
    }

    select:focus {
      outline: none;
      border: unset;

    }


    label {
      padding-top: 1rem;
      width: 100%;
      font-size: 1.25rem;
      color: #0A246A;
    }

    input {
      background-color: #F8F8F8;
      border-radius: 12px;
      border: unset;
      width: 100%;
      padding: 1.2rem;
    }

    input:focus {
      outline: none;
      border: unset;

    }

    textarea {
      padding: 2rem;
      background-color: #F8F8F8;
      width: 100%;
      border-radius: 12px;
      border: unset;
    }
  }

  .mail_form::before {
    content: '';
    display: block;
    width: 300px;
    height: 300px;
    position: absolute;
    bottom: 0;
    right: 0;
    border-radius: 0 0 12vw 0;
    background-color: white;
    z-index: 0;
  }

  .mail_form::after {
    content: '';
    display: block;
    width: 300px;
    height: 300px;
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #FFD356;
    z-index: -1;
    border-radius: 0 0 2vw 0;
  }

  .gradient_btn {

    margin: auto;
    margin-top: 3rem;


    p {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      margin: 0;
    }

    .wpcf7-submit {
      order: 2;
    }

    .wpcf7-spinner {
      left: 0;
      position: absolute;
      background-color: white;
      order: 1;
    }

  }

  .wpcf7-submit {
    margin: auto;
    color: white;
    background-color: unset;
    border: unset;
  }

  .wpcf7-response-output {
    border: unset !important;
    text-align: center !important;
  }


  .custom-select {
    position: relative;
    width: 100%;
  }


  .options-container {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    width: 100%;
    background-color: #fff;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 6px solid #EDEDED;
    z-index: 100;
    padding: 0.5rem;
    border-radius: 20px;
  }

  .option {
    padding: 15px;
    font-size: 1rem;
    color: #2f3b4c;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 2vw;
  }

  .option:hover {
    background-color: #f1f1f1;
    border-radius: 2vw;

  }


}

@media (max-width: 992px) {
  .contact_section {
    padding: 0;

    .container {
      padding: 0;
    }

    .tab_section {
      padding: 0 2rem;
    }

    .mail_form {

      border-radius: 20vw 0 8vw 0;
      padding: 3rem 2rem 2rem 2rem;

      h2 {

      }

      label {

        font-size: 1.1rem;

      }
    }

    .mail_form::before {
      border-radius: 0 0 22vw 0;
    }
    .mail_form::after {

      border-radius: 0 0 8vw 0;
    }
  }
}
