.form-container {
    font-family: 'Sarabun', sans-serif;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #2c3e50;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.form-header h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-header h2 {
    color: #7f8c8d;
    font-size: 1.1em;
}

#dep-sar-form {
    padding: 1rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.section-title {
    color: #2980b9;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e1e1;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

#data_entry_name, #approver_name {
    width: 70%;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.submit-container {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 600;
}

.submit-btn:hover {
    background-color: #2ecc71;
}

.info-text {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-top: 5px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e1e1e1;
}

.data-table th {
    background-color: #f2f2f2;
    font-weight: 600;
    color: #34495e;
}

.data-table tr:hover {
    background-color: #f9f9f9;
}

.sub-section {
    margin-left: 20px;
    margin-bottom: 20px;
}

.sub-section h4 {
    color: #16a085;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.input-group span {
    color: #7f8c8d;
}

.checkbox-group {
    margin-bottom: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
}

.drive-btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font: inherit;
}

.drive-btn:hover {
    color: #0056b3;
    text-decoration: none;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-sub {
    padding: 15px;
    border-left: 3px solid #16a085;
    margin-bottom: 15px;
}

.card-sub h4 {
    color: #16a085;
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-sub p {
    font-size: 0.95em;
    color: #34495e;
    margin-bottom: 15px;
}

.card-content {
    padding: 10px;
}

.card-header {
    background-color: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s;
}

.card-header:hover {
    background-color: #e9ecef;
}

.fa-chevron-down {
    transition: transform 0.3s ease;
}

.fa-chevron-down.rotate {
    transform: rotate(180deg);
}

p.note {
    color: gray;
    font-size: 0.8em;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .card {
        max-width: 100%;
    }

    .data-table {
        display: block;
        overflow-x: auto;
    }

    .input-group {
        flex-direction: column;
        align-items: flex-start;
    }
}