.asas-form-wrapper {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-family: inherit;
}

/* Public Search Results Styling */
#asas-public-results {
    margin-top: 30px;
    overflow-x: auto;
}

#asas-public-results table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#asas-public-results th, 
#asas-public-results td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

#asas-public-results th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

#asas-public-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    display: none;
    font-weight: bold;
}

#asas-public-message.error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

#asas-public-message.info {
    background: #ebf8ff;
    color: #2b6cb0;
    border: 1px solid #bee3f8;
}

.asas-lookup-section {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.asas-input-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.asas-input-group input {
    padding: 10px;
    width: 250px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.asas-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.form-field {
    margin-bottom: 15px;
}

.form-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-field input, 
.form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.asas-usul-content {
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 20px;
}

.asas-form-actions {
    text-align: right;
}

.button.primary {
    background: #0073aa;
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.button.primary:hover {
    background: #005177;
}

#asas-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

#asas-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#asas-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Pendaftaran Page Specific */
#asas-pendaftaran-container .asas-form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

#asas-pendaftaran-container label {
    font-weight: 500;
    color: #333;
    font-size: 1.1em;
}

#asas-pendaftaran-container .required {
    color: #d63638;
    font-size: 0.8em;
    font-style: italic;
    font-weight: normal;
}

#asas-pendaftaran-container input,
#asas-pendaftaran-container select {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 12px;
    font-size: 1.1em;
}

#asas-pendaftaran-container input[readonly] {
    background: #f1f1f1;
    color: #666;
}

#btn_pendaftaran_hadir {
    background: #54595f; /* Dark grey like the image */
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 4px;
    font-weight: normal;
    transition: background 0.3s;
}

#btn_pendaftaran_hadir:hover {
    background: #333;
}

#pendaftaran_message {
    padding: 15px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}

#pendaftaran_message.success {
    background: #d4edda;
    color: #155724;
}

#pendaftaran_message.error {
    background: #f8d7da;
    color: #721c24;
}

@media (max-width: 600px) {
    .asas-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Membership Application Form Styling */
.asas-form-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.asas-form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #007cba;
    display: inline-block;
    padding-bottom: 5px;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.asas-checkbox-grid, .asas-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.asas-checkbox-grid label, .asas-radio-group label {
    font-weight: normal;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: #f9f9f9;
    padding: 8px 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: background 0.2s;
}

.asas-checkbox-grid label:hover, .asas-radio-group label:hover {
    background: #f0f0f0;
}

.asas-checkbox-grid input[type="checkbox"], 
.asas-radio-group input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.asas-form-section label input[name="agreement"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

/* Fix agreement text alignment */
.asas-form-section .form-field label[style*="font-weight: normal"] {
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
    background: #fff9e6;
    padding: 15px;
    border: 1px solid #ffeeba;
    border-radius: 5px;
}

.membership-total {
    margin-bottom: 20px;
    font-size: 1.2em;
    color: #007cba;
}

#membership-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

#membership-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
