/**
 * contact.css - Styles for the contact page
 */

/* 主内容区域 */
.contact-content {
    padding: 80px 0;
    background-color: var(--background-secondary);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 询盘表单容器 - 放大1.2倍 */
.contact-form-container {
    max-width: 720px; /* 600px * 1.2 = 720px */
    margin: 0 auto;
    background-color: var(--background-primary);
    border-radius: 0; /* 修改为标准直角 */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 表单头部 */
.contact-form-header {
    background-color: var(--primary-blue);
    padding: 24px; /* 20px * 1.2 = 24px */
    text-align: center;
}

.contact-title {
    color: var(--text-light);
    margin: 0;
    font-size: 34px; /* 28px * 1.2 = 33.6px ≈ 34px */
    font-weight: 600;
}

/* 表单主体 */
.contact-form-body {
    padding: 36px; /* 30px * 1.2 = 36px */
}

/* 表单样式 */
.inquiry-form .form-control {
    height: auto;
    padding: 14px 18px; /* 12px * 1.2 = 14.4px, 15px * 1.2 = 18px */
    font-size: 19px; /* 16px * 1.2 = 19.2px ≈ 19px */
    border: 1px solid var(--border-color);
    border-radius: 0; /* 修改为标准直角 */
    transition: border-color 0.3s ease;
}

.inquiry-form .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(69, 140, 255, 0.25);
}

.inquiry-form textarea.form-control {
    resize: vertical;
    min-height: 144px; /* 120px * 1.2 = 144px */
}

/* 验证码容器 */
.captcha-container {
    margin-bottom: 24px; /* 20px * 1.2 = 24px */
}

.captcha-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.captcha-image {
    width: 100%;
    height: 55px; /* 46px * 1.2 = 55.2px ≈ 55px */
    object-fit: cover;
    border-radius: 0; /* 修改为标准直角 */
    border: 1px solid var(--border-color);
}

.refresh-captcha {
    position: absolute;
    right: 6px; /* 5px * 1.2 = 6px */
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 0; /* 修改为标准直角 */
    width: 36px; /* 30px * 1.2 = 36px */
    height: 36px; /* 30px * 1.2 = 36px */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.refresh-captcha i {
    font-size: 19px; /* 增加图标大小 */
}

.refresh-captcha:hover {
    background: rgba(255, 255, 255, 1);
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    padding: 14px 30px; /* 12px * 1.2 = 14.4px, 25px * 1.2 = 30px */
    font-size: 19px; /* 16px * 1.2 = 19.2px ≈ 19px */
    font-weight: 600;
    border-radius: 0; /* 修改为标准直角 */
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark-blue);
    border-color: var(--primary-dark-blue);
}

/* 调整表单元素之间的间距 */
.mb-4 {
    margin-bottom: 1.8rem !important; /* 默认1.5rem * 1.2 = 1.8rem */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .contact-content {
        padding: 60px 15px; /* 左右也添加一些内边距 */
        align-items: flex-start; /* 允许表单从顶部开始，以防内容过长 */
    }

    .contact-form-container {
        /* max-width: 90%; */ /* 可以考虑使用百分比，或者保持720px если内容不溢出 */
        /* 如果表单宽度相对于屏幕过大，则减小 */
        /* 例如: max-width: 600px; */
    }

    .contact-form-header {
        padding: 20px; /* 调整头部内边距 */
    }

    .contact-title {
        font-size: 29px; /* 已有 */
        /* 或者根据视觉效果再调整，例如 26px */
    }

    .contact-form-body {
        padding: 24px; /* 已有 */
        /* 或者根据视觉效果再调整，例如 30px */
    }

    .inquiry-form .form-control {
        padding: 12px 15px; /* 调整输入框内边距 */
        font-size: 17px;    /* 调整输入框字体大小 */
    }

    .inquiry-form textarea.form-control {
        min-height: 120px; /* 调整文本域最小高度 */
    }

    .btn-primary {
        padding: 12px 25px; /* 调整按钮内边距 */
        font-size: 17px;    /* 调整按钮字体大小 */
        width: 100%;        /* 让按钮在平板上撑满宽度，更易点击 */
        box-sizing: border-box;
    }

    .captcha-image {
        height: 50px; /* 调整验证码图片高度 */
    }

    .refresh-captcha {
        width: 32px;
        height: 32px;
    }
    .refresh-captcha i {
        font-size: 17px;
    }
}

@media (max-width: 576px) {
    .contact-content {
        padding: 40px 10px; /* 进一步减小内边距 */
    }

    .contact-form-container {
        /* 对于手机，通常希望表单容器宽度接近100%，但有少量边距 */
        /* max-width: 100%; */ /* 如果没有 .container 的约束 */
        /* 由于你有 .container，所以这里的 max-width 可能不需要特别调整，
           主要依赖 .container 的 padding */
        margin: 0 auto; /* 确保在 .container 内居中 */
    }

    .contact-form-header {
        padding: 18px;
    }

    .contact-title {
        font-size: 24px; /* 进一步调整标题字体大小 */
    }

    .contact-form-body {
        padding: 20px;
    }

    .inquiry-form .form-control {
        padding: 10px 12px;
        font-size: 16px;
    }

    .inquiry-form textarea.form-control {
        min-height: 100px;
    }

    /* 如果验证码输入框和图片在手机上需要更明确的堆叠 */
    .captcha-container .col-md-7, /* Bootstrap 列的类名，假设验证码输入框在此列 */
    .captcha-container .col-md-5 {  /* Bootstrap 列的类名，假设刷新按钮和图片在此列 */
        width: 100%; /* 让它们各自占满一行 */
        margin-left: 0;
        margin-right: 0;
    }
    .captcha-container .col-md-5 {
         margin-top: 15px; /* 调整堆叠后的上边距 */
    }
     .captcha-image {
        height: 55px; /* 调整验证码图片高度 */
    }


    .btn-primary {
        padding: 12px 20px;
        font-size: 16px;
        /* width: 100%; 已在平板设置，通常也适用于手机 */
    }

    .mb-4 { /* 调整表单元素间距 */
        margin-bottom: 1.5rem !important; /* 恢复或使用更适合手机的间距 */
    }
}
