* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #111111;
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.contact-page {
  width: 100%;
  min-height: 100vh;
  background: #fff;
}

.contact-wrap {
  width: 1226px;
  margin: 0 auto;
  padding: 37px 0 0;
  display: grid;
  grid-template-columns: 566px 1fr;
  column-gap: 21px;
  align-items: start;
}

/* 左右分割线 */
.right-panel {
  border-left: 1px solid #e7e7e7;
  padding-left: 11px;
}

/* =========================
   左侧表单
========================= */
.contact-form {
  width: 566px;
}

.form-item {
  margin-bottom: 12px;
}

.form-item-textarea {
  margin-bottom: 14px;
}

.form-message {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
}

.form-message.success {
  color: #155724;
  background: #d4edda;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  color: #721c24;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
}

.error-text {
  min-height: 18px;
  margin-top: 6px;
  font-size: 12px;
  color: #d93025;
}

.input-control.input-error,
.textarea-control.input-error {
  border-color: #d93025;
  outline: none;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  color: #000000;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 400;
}

.form-label i {
  width: 16px;
  font-size: 16px;
  color: #000000;
  text-align: center;
  flex: 0 0 16px;
}

.input-control,
.textarea-control {
  width: 100%;
  border: 1px solid #d4d4d4;
  background: #ffffff;
  color: #111111;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border-radius: 0;
}

.input-control {
  height: 47px;
  padding: 0 12px;
  font-size: 16px;
}

.textarea-control {
  height: 116px;
  padding: 10px 12px;
  resize: none;
  font-size: 16px;
  line-height: 1.5;
}

.input-control:focus,
.textarea-control:focus {
  border-color: #0f4a90;
  box-shadow: 0 0 0 1px rgba(15, 74, 144, 0.08);
}

select.input-control {
  appearance: auto;
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
  background-color: #fff;
}

.submit-btn {
  width: 100%;
  height: 45px;
  border: none;
  border-radius: 0;
  background: #0f4a90;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.submit-btn:hover {
  background: #0b3f7b;
}

/* =========================
   右侧 Accordion
========================= */
.accordion {
  width: 100%;
}

.accordion-item {
  margin-bottom: 6px;
}

.accordion-header {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 70px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.accordion-header-text {
  min-height: 70px;
  display: flex;
  align-items: center;
  padding: 0 0 0 15px;
  background: #efefef;
  color: #263544;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  transition: color 0.6s ease;
}

.accordion-header-text:hover {
  color: #f58426;
}

.accordion-icon-box {
  min-height: 70px;
  background: #d0d0d0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion-icon {
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid #ffffff;
  transition: transform 0.25s ease;
}

.accordion-item.is-open .accordion-icon-box {
  background: #0f4a90;
}

.accordion-item.is-open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0;
  transition: grid-template-rows 0.6s ease;
  background: #ffffff;
}

.accordion-item.is-open .accordion-body {
  grid-template-rows: 1fr;
}

.accordion-body-inner {
  overflow: hidden;
  padding: 0 15px;
  transition: padding 0.6s ease;
}

.accordion-item.is-open .accordion-body-inner {
  padding-top: 27px;
  padding-bottom: 29px;
}

.accordion-body p {
  margin: 0 0 7px;
  color: #000000;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 400;
}

.accordion-body p:last-child {
  margin-bottom: 0;
}

/* =========================
   响应式
========================= */
@media (max-width: 1260px) {
  .contact-wrap {
    width: calc(100% - 48px);
    grid-template-columns: 1fr 1fr;
  }

  .contact-form {
    width: 100%;
  }
}

@media (max-width: 960px) {
  .contact-wrap {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    row-gap: 24px;
    padding-top: 24px;
  }

  .right-panel {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #e7e7e7;
    padding-top: 18px;
  }

  .contact-form {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .contact-wrap {
    width: calc(100% - 24px);
  }

  .accordion-header {
    grid-template-columns: 1fr 62px;
  }

  .accordion-header-text {
    min-height: 62px;
    font-size: 15px;
    padding-left: 12px;
  }

  .accordion-icon-box {
    min-height: 62px;
  }

  .input-control {
    height: 44px;
    font-size: 15px;
  }

  .textarea-control {
    height: 110px;
    font-size: 15px;
  }

  .submit-btn {
    height: 44px;
  }
}