* {
    box-sizing: border-box;
    font-family: 'Prompt', sans-serif;
}

body {
    margin: 0;
    background-color: #fff5f5;
    color: #333;
}

.wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1100px;
    margin: auto;
    padding: 60px 24px;
    gap: 32px;
}

.benefits,
.register-form {
    flex: 1 1 480px;
    background-color: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

h2 {
    color: #88080B;
    margin-bottom: 24px;
    font-size: 22px;
}

.benefits strong {
    color: #88080B;
    font-weight: bold;
}

.benefits p {
    margin-bottom: 16px;
}

.benefits a {
    color: #88080B;
    font-size: 14px;
    text-decoration: underline;
}

.register-form h2 {
    text-align: center;
}

.register-form form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
    flex-wrap: wrap;
    /* เพื่อให้ข้อความขึ้นบรรทัดใหม่ในมือถือ */
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
    accent-color: #88080B;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    margin: 0;
    max-width: calc(100% - 24px);
    /* กันข้อความล้นข้างกล่อง */
}

.checkbox-group a {
    color: #88080B;
    text-decoration: none;
    font-weight: bold;
}


.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: #88080B;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.btn-submit:hover {
    background-color: #6e0609;
}

.bottom-text {
    text-align: center;
    font-size: 14px;
    margin-top: 16px;
}

.bottom-text a {
    color: #88080B;
    text-decoration: none;
    font-weight: bold;
}

/* ✅ รองรับมือถือ */
@media (max-width: 768px) {
    .wrapper {
        flex-direction: column;
        padding: 24px 16px;
    }

    .benefits,
    .register-form {
        padding: 24px;
    }

    h2 {
        font-size: 20px;
    }

    .register-form form input {
        font-size: 15px;
    }
}