/* 联系页面样式 */
.contact-section {
    max-width: 800px;
    margin: var(--spacing-xl) auto;
    padding: 0 32px;
}

.contact-form {
    width: 100%;
}

/* 表单行 */
.form-row {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
}

/* 表单组 */
.form-group {
    width: 100%;
    margin-bottom: 32px;
    position: relative;
}

.form-group.half {
    width: 50%;
}

/* 标签 */
.form-label {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: var(--spacing-xs);
}

.required {
    color: #ff0000;
}

/* 输入框 */
.form-input,
.form-textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: none;
    padding: 0.5rem 0;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* 输入框下划线 */
.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #1b1e1b;
}

/* 复选框组 */
.checkbox-group {
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

/* 自定义复选框 */
.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #1b1e1b;
    background-color: transparent;
    margin-right: 8px;
    cursor: pointer;
    position: relative;
}

.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 4px;
    height: 8px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0px;
}

/* 提交按钮 */
.submit-button {
    background-color: #000000;
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 1rem;
    padding: 0.8rem 2.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: var(--spacing-sm);
}

.submit-button:hover {
    background-color: #333333;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .contact-section {
        padding: 0 var(--spacing-sm);
    }

    .form-row {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .form-group.half {
        width: 100%;
    }

    .submit-button {
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .contact-section {
        margin: var(--spacing-lg) auto;
    }

    .form-label,
    .form-input,
    .form-textarea,
    .checkbox-label {
        font-size: 0.9rem;
    }

    .submit-button {
        font-size: 0.95rem;
        padding: 0.7rem 2rem;
    }
}
