body {
    font-family: 'Sarabun', sans-serif;
    background-color: #fcfcfc; /* โทนม่วงอ่อน */
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #6a0dad; /* ม่วงเข้ม */
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

h2 i {
    font-size: 1.5em;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #4a0072; /* ม่วงกลาง */
    display: flex;
    align-items: center;
    gap: 8px;
}

label i {
    color: #8a2be2; /* ม่วงฟ้า */
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d8bfd8; /* ม่วงอ่อน */
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: #8a2be2; /* ม่วงฟ้าเข้มขึ้น */
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.2);
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button[type="submit"] {
    background-color: #8a2be2; /* ม่วงฟ้า */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

button[type="submit"]:hover {
    background-color: #6a0dad; /* ม่วงเข้มขึ้น */
    transform: translateY(-2px);
}

button[type="submit"] i {
    font-size: 1.2em;
}

.required {
    color: #dc3545; /* สีแดงสำหรับแจ้งว่าจำเป็นต้องกรอก */
    font-weight: normal;
}

.success-message {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #e6ffe6; /* เขียวอ่อน */
    color: #1a521a; /* เขียวเข้ม */
    border: 1px solid #b3e6b3; /* เขียวกลาง */
    border-radius: 6px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.success-message i {
    font-size: 1.5em;
    color: #28a745; /* เขียว */
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        margin: 20px;
        padding: 20px;
    }
    h2 {
        font-size: 1.8em;
    }
    button[type="submit"] {
        font-size: 16px;
        padding: 10px 15px;
    }
}