/* ========== Banner ========== */
.page-banner {
    width: 100%;
    height: 347px;
    overflow: hidden;
}

.page-banner-img {
    width: 100%;
    height: 347px;
    object-fit: cover;
    display: block;
}

/* ========== Layout ========== */
.message-main {
    padding: 40px 0 60px;
    background: #F7F7F7;
}

.message-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.message-sidebar {
    width: 276px;
    flex-shrink: 0;
    background: #fff;
    overflow: hidden;
}

.message-sidebar .sidebar-title {
    height: 83px;
    line-height: 83px;
    padding: 0 30px;
    background: #0061AE;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.message-sidebar .sidebar-nav a {
    display: block;
    padding: 18px 24px;
    font-size: 16px;
    color: #333;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s, background 0.2s;
}

.message-sidebar .sidebar-nav a.active {
    color: #0061AE;
    background: #f0f7fd;
    font-weight: 700;
}

.message-content {
    flex: 1;
    background: #fff;
    min-width: 0;
    padding: 40px 48px 48px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* ========== Form ========== */
.message-form {
    max-width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
    margin-bottom: 24px;
}

.form-item {
    position: relative;
}

.input-wrap {
    position: relative;
}

.form-item label {
    display: block;
    font-size: 20px;
    color: #121212;
    margin-bottom: 12px;
    line-height: 1;
}

.form-item input,
.form-item textarea {
    width: 100%;
    padding: 12px 0 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    outline: none;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
}

.form-item input::placeholder,
.form-item textarea::placeholder {
    color: #ccc;
}

.form-item input:focus,
.form-item textarea:focus {
    border-color: #0061AE;
}

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

.form-item.required .req-star {
    position: absolute;
    top: 2px;
    right: 2px;
    transform: translateY(-50%);
    color: #333;
    font-size: 14px;
    line-height: 1;
    background: #fff;
    pointer-events: none;
    z-index: 1;
}

.form-item + .form-item {
    margin-bottom: 24px;
}

.form-grid + .form-item {
    margin-bottom: 24px;
}

.form-submit {
    text-align: center;
    margin-top: 36px;
}

.btn-submit {
    min-width: 200px;
    padding: 14px 48px;
    background: #0061AE;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #0a3d66;
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
    .page-banner,
    .page-banner-img {
        height: 260px;
    }

    .message-layout {
        flex-direction: column;
    }

    .message-sidebar {
        width: 100%;
    }

    .message-content {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .page-banner,
    .page-banner-img {
        height: 200px;
    }

    .message-main {
        padding: 24px 0 40px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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