/* 合作询价页面（对应 pages/craft/cooperat.vue 的 scoped SCSS） */

.contact-form-container {
  background-color: #fff;
}

.contact-form-container .back_btn {
  padding: 230px 0 30px;
}

@media (max-width: 573px) {
  .contact-form-container .back_btn {
    padding: 80px 0 0;
  }
}

.contact-form-container .back_btn .contact-link {
  width: 48px;
  height: 48px;
  background: #ecefff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: #0e0f11;
}

.contact-form-container .back_btn .contact-link:hover {
  background-color: #302743;
  color: #fff;
  transform: scale(1.2);
}

.contact-form-container .headerTitle {
  margin-bottom: 55px;
}

.contact-form-container .headerTitle .chinese-text {
  font-size: 32px;
  font-family: OPPOSANS-B;
  font-weight: 400;
  text-align: left;
  color: #0e0f11;
  margin-bottom: 16px;
  margin: auto;
}

.contact-form-container .headerTitle .english-text {
  font-size: 18px;
  font-family: Roboto-Regular;
  font-weight: 500;
  text-align: left;
  color: #474de3;
  margin: auto;
}

.contact-form-container .contact-form {
  max-width: 87%;
  margin: auto;
}

@media (max-width: 768px) {
  .contact-form-container .contact-form {
    padding: 25px 0;
  }
}

/* 表单布局（替代 ElementPlus el-row/el-col） */
.cooperat-form .form-row {
  display: flex;
  gap: 65px;
}

@media (max-width: 768px) {
  .cooperat-form .form-row {
    flex-direction: column;
    gap: 0;
  }
}

.cooperat-form .form-item {
  flex: 1;
  margin-bottom: 30px; /* 对齐 :deep(.el-form-item) */
}

.cooperat-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--secondary-color);
}

.cooperat-form input,
.cooperat-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  outline: none;
  font-size: 16px;
  color: #000;
  font-weight: 500;
}

.cooperat-form input {
  height: 60px;
  padding: 0 15px;
}

.cooperat-form textarea {
  padding: 12px 15px;
  resize: vertical;
  min-height: 170px;
}

.cooperat-form input:focus,
.cooperat-form textarea:focus {
  border-color: #475ced;
  box-shadow: 0 0 0 2px rgba(71, 92, 237, 0.15);
}

.cooperat-form .error-text {
  display: none;
  margin-top: 8px;
  font-size: 12px;
  color: #f56c6c;
}

.contact-form-container .submite_btn {
  display: flex;
  justify-content: center;
}

.contact-form-container .submite_btn .submit-btn {
  font-size: 16px;
  transition: all 0.3s;
  width: 35%;
  height: 68px;
  background: #475ced;
  border-radius: 34px;
  margin: 66px auto 96px;
  border: none;
  color: #fff;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 768px) {
  .contact-form-container .submite_btn .submit-btn {
    width: 80%;
  }
}

.contact-form-container .submite_btn .submit-btn:hover {
  transform: translateY(-8px);
  background-color: #302743;
}

.contact-form-container .submite_btn .submit-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

.contact-form-container .submite_btn .submit-btn .btn-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: cooperat-spin 0.9s linear infinite;
  display: none;
}

.contact-form-container .submite_btn .submit-btn.is-loading .btn-spinner {
  display: inline-block;
}

@keyframes cooperat-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 弹窗（替代 el-dialog） */
.dialog-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.dialog-mask:not([hidden]) {
  display: flex;
}

.dialog {
  width: 30%;
  min-width: 320px;
  max-width: 520px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .dialog {
    width: 100%;
    min-width: 0;
  }
}

.dialog-header {
  padding: 16px 20px 10px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.dialog-title {
  font-size: 16px;
  font-weight: 600;
  color: #0e0f11;
}

.dialog-body {
  text-align: center;
  padding: 20px 20px 10px;
}

.dialog-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 12px;
  position: relative;
}

.dialog-icon.success-icon {
  background: rgba(103, 194, 58, 0.15);
}

.dialog-icon.success-icon::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 28px;
  width: 20px;
  height: 10px;
  border-left: 4px solid #67c23a;
  border-bottom: 4px solid #67c23a;
  transform: rotate(-45deg);
}

.dialog-icon.error-icon {
  background: rgba(245, 108, 108, 0.15);
}

.dialog-icon.error-icon::before,
.dialog-icon.error-icon::after {
  content: '';
  position: absolute;
  left: 27px;
  top: 16px;
  width: 4px;
  height: 24px;
  background: #f56c6c;
  border-radius: 2px;
}

.dialog-icon.error-icon::before {
  transform: rotate(45deg);
}

.dialog-icon.error-icon::after {
  transform: rotate(-45deg);
}

.dialog-message {
  font-size: 16px;
  color: var(--text-color);
  margin: 0 0 10px;
}

.dialog-footer {
  text-align: center;
  padding: 10px 20px 18px;
}

.dialog-ok {
  height: 40px;
  padding: 0 22px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #475ced;
  color: #fff;
  font-weight: 600;
}

.dialog-ok:hover {
  background: #302743;
}

