/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sarabun', sans-serif;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.header i {
    font-size: 60px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header h2 {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.95;
}

form {
    padding: 40px 30px;
}

.section {
    margin-bottom: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 12px;
    border-left: 5px solid #4caf50;
}

.section h3 {
    color: #2e7d32;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section h3 i {
    font-size: 28px;
}

.section h4 {
    color: #388e3c;
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #4caf50;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.form-group label i {
    color: #4caf50;
    margin-right: 8px;
    width: 20px;
}

.required {
    color: #f44336;
    font-weight: bold;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Sarabun', sans-serif;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

select {
    cursor: pointer;
    background: white;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-group.inline {
    flex-direction: row;
    gap: 30px;
}

.radio-group label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
}

.radio-group label:hover {
    background: #f1f8f4;
    border-color: #4caf50;
    transform: translateX(5px);
}

.radio-group label input[type="radio"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #4caf50;
}

.inline-group {
    display: flex;
    gap: 4%;
}

.satisfaction-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.satisfaction-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #f1f8f4;
    border-radius: 6px;
    font-weight: 600;
    color: #2e7d32;
}

.satisfaction-legend span i {
    font-size: 18px;
    color: #4caf50;
}

.satisfaction-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.satisfaction-table thead {
    background: #4caf50;
    color: white;
}

.satisfaction-table th {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.satisfaction-table th:first-child {
    text-align: left;
    width: 50%;
}

.satisfaction-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.satisfaction-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.satisfaction-table td:not(:first-child) {
    text-align: center;
}

.satisfaction-table tbody tr:hover {
    background: #f1f8f4;
}

.satisfaction-table input[type="radio"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #4caf50;
}

.form-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px dashed #e0e0e0;
}

.btn {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: 'Sarabun', sans-serif;
}

.btn i {
    font-size: 20px;
}

.btn-submit {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-reset {
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-reset:hover {
    background: #f5f5f5;
    border-color: #ccc;
    transform: translateY(-2px);
}

.footer {
    background: #f5f5f5;
    padding: 25px;
    text-align: center;
    border-top: 3px solid #4caf50;
}

.footer p {
    margin: 8px 0;
    color: #666;
    font-size: 16px;
}

.footer a {
    color: #4caf50;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #2e7d32;
    text-decoration: underline;
}

.recaptcha-badge-info {
    font-size: 12px;
    color: #999;
    margin: 10px 0;
    line-height: 1.6;
}

.recaptcha-badge-info a {
    color: #4caf50;
    text-decoration: none;
    font-weight: normal;
}

.recaptcha-badge-info a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 10px;
    }

    .header {
        padding: 30px 20px;
    }

    .header h1 {
        font-size: 24px;
    }

    .header h2 {
        font-size: 16px;
    }

    .header i {
        font-size: 40px;
    }

    form {
        padding: 20px 15px;
    }

    .section {
        padding: 20px 15px;
    }

    .section h3 {
        font-size: 20px;
    }

    .section h4 {
        font-size: 18px;
    }

    .satisfaction-legend {
        flex-direction: column;
        align-items: stretch;
    }

    .satisfaction-table {
        font-size: 14px;
    }

    .satisfaction-table th,
    .satisfaction-table td {
        padding: 10px 5px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .inline-group {
        flex-direction: column;
        gap: 15px;
    }

    .inline-group input {
        width: 100% !important;
    }

    .radio-group.inline {
        flex-direction: column;
        gap: 12px;
    }
}

/* Loading Animation */
.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading.active {
    display: block;
}

.loading i {
    font-size: 50px;
    color: #4caf50;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    display: none;
    padding: 20px;
    background: #4caf50;
    color: white;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    font-size: 18px;
    font-weight: 600;
}

.success-message.active {
    display: block;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}