
.responsive-row-contact {
    position: relative;
    width: 100%;
    height: 100vh; /* 设置为视口高度 */
    background-image: url('/wp-content/themes/yunhao/assets/image/form.jpg'); /* 背景图片路径 */
    background-size: cover; /* 背景图片覆盖整个元素 */
    background-position: center; /* 背景图片居中显示 */
    overflow: hidden; /* 防止内容溢出 */
}

.form-text {
    position: absolute;
    top: 35%;
    left: 0; 
    transform: translateY(-50%);
    width: 50%; /* 根据需要调整宽度 */
    padding: 50px;
    box-sizing: border-box; /* 边框计算在宽度内 */
    margin-right:10%;
    margin-bottom:-12%;
        text-align: center; /* 确保标题居中显示 */
}

.title {
    position: relative; /* 用于绝对定位伪元素 */
    display: inline-block; /* 使伪元素相对于它定位 */
    padding-bottom: 10px; /* 确保横杠与文字有足够的间隙 */
    color: #fff;
}



.form-container {
    position: absolute;
    top: 50%;
    right: 0; 
    transform: translateY(-50%);
    width:420px;height:600px;
    width: 35%; /* 根据需要调整宽度 */
    padding: 50px;
    box-sizing: border-box; /* 边框计算在宽度内 */
    background: rgba(255, 255, 255, 1.2); /* 半透明白色背景 */
    margin-right:10%;
    border-radius:45px;
}
.form-control{
    height:calc(2.5em + .55rem + 2px)
}

.form-control:focus {
    border-color: #a81e24; /* 点击时边框颜色变为红色 */
    outline: none; /* 移除默认的聚焦轮廓 */
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5); /* 添加一个红色的阴影效果 */
}

form {
    display: flex;
    flex-direction: column;
}

form label {
    margin: 10px 0 5px;
}

/* 更新按钮样式 */
form button {
  padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #a81e24;
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 48%;
    margin: auto;
        height: 2.3em;
    font-size: 1.3em;
    line-height: normal;
}

form button:hover {
    background-color: #B20000; /* 鼠标悬浮时的较深红色 */
}

.form-header {
    text-align: center;
    font-weight: bold;
    color: #000; /* 黑色文字 */
    margin-bottom: 20px;
}

.form-text {
    text-align: center; /* 使文本水平居中，根据需要调整 */
}

.title {
    border-bottom: 4px solid #ffffff; /* 添加白色下横杠 */
    padding-bottom: 10px; /* 横杠与文字之间的间隙 */
    margin-bottom: 20px; /* 标题下方的间隙，根据需要调整 */
    color: #fff; /* 文字颜色 */
    font-size: 5.0em; /* 文字大小，根据需要调整 */
    width::50%;
    letter-spacing:5px;
    font-family: none;
}

/* 如果需要对H2也添加样式 */
.form-text h2 {
    font-size: 1.5em; /* 根据需要调整 */
    color: #000000; /* 文字颜色 */
}

/* 较大屏幕下的样式 */
@media (min-width: 768px) {
    .form-container {
        position: absolute; /* 大屏幕时使用绝对定位 */
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        margin-right: 10%; /* 从右侧留出一定空间 */
    }
}

/* 小屏幕下的样式 */
@media (max-width: 767px) {
    .form-container {
        width: 90%; /* 在小屏幕上宽度设为90% */
        padding: 20px; /* 减小内边距 */
        border-radius: 0; /* 可以去除圆角，以适应小屏幕 */
    }
}
