/*
Theme Name: astra-child
Theme URI: www.kaisaimoto.com
Description: 这是一个由astra 派生出来的子主题
Author: cx
Author URI: cxgginsz
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-astra-child*/

/* 在这里添加您的自定义 CSS 样式 */


.customerphoto {
  width: 70%;          /* 宽度为父容器的90% */
  max-width: 1024px;    /* 最大宽度不超过500px，防止在大屏上过宽 */
  min-width: 250px;    /* 最小宽度不小于250px，防止在小屏上过窄 */

}

/*表单*/
/* 优化整体容器 */
.wpcf7 {
  max-width: 600px;
  margin: 0 auto;
  padding: 10px;
  background-color: #f5f7f9;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 优化输入框和文本区域 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box; /* 确保 padding 不会影响宽度 */
  transition: all 0.3s ease; /* 添加过渡效果 */
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: #007bff; /* 聚焦时边框变色 */
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
}

/* 优化提交按钮容器 */
.wpcf7 p:last-of-type {
  text-align: center;
}

/* 优化提交按钮本身 */
.wpcf7 input[type="submit"] {
  display: inline-block;
  width: auto;
  padding: 12px 30px;
  background-color: #007bff; /* 按钮背景色 */
  color: #fff; /* 按钮文字颜色 */
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
  background-color: #0056b3; /* 鼠标悬停时变深 */
}