/* --- Global & Form Styles --- */
.jinsr-form-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.jinsr-form-container .form-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #0b2b4a;
    padding-bottom: 15px;
}

.jinsr-form-container .form-header img {
    max-width: 150px;
    height: auto;
    margin-bottom: 10px;
}

.jinsr-form-container h2 {
    color: #0b2b4a;
    font-size: 24px;
    margin: 0;
}

.jinsr-form-group {
    margin-bottom: 20px;
}

.jinsr-form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.jinsr-form-group input[type="text"],
.jinsr-form-group input[type="email"],
.jinsr-form-group input[type="tel"],
.jinsr-form-group input[type="date"],
.jinsr-form-group input[type="number"],
.jinsr-form-group select,
.jinsr-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.jinsr-form-group input:focus,
.jinsr-form-group select:focus,
.jinsr-form-group textarea:focus {
    border-color: #0073aa;
    outline: none;
}

.jinsr-form-row {
    display: flex;
    gap: 20px;
}

.jinsr-form-row .jinsr-form-group {
    flex: 1;
}

.jinsr-submit-btn {
    display: block;
    width: 100%;
    background-color: #0b2b4a;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.jinsr-submit-btn:hover:not(:disabled) {
    background-color: #1a4a7a;
}
.jinsr-submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#jinsr-form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: none;
}
.jinsr-error { color: #D8000C; background-color: #FFD2D2; }
.jinsr-success { color: #4F8A10; background-color: #DFF2BF; }
.jinsr-info { color: #00529B; background-color: #BDE5F8; }


/* --- Print Template Styles --- */
.jinsr-print-slip {
    width: 800px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    font-family: 'Times New Roman', Times, serif;
    background: #fff;
    color: #000;
}

.print-header {
    text-align: center;
    border-bottom: 2px solid #0b2b4a;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.print-header img {
    max-height: 60px; /* Small logo */
}

.print-header h1 {
    margin: 5px 0 0;
    font-size: 20px;
    color: #0b2b4a;
}

.print-details { display: flex; }
.print-photo { width: 150px; margin-right: 20px; }
.print-photo img { width: 100%; border: 1px solid #eee; }
.print-info { flex: 1; }

.print-info table {
    width: 100%;
    border-collapse: collapse;
}

.print-info td {
    padding: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.print-info td:first-child {
    font-weight: bold;
    background-color: #f9f9f9;
    width: 180px;
}

.print-footer { text-align: center; margin-top: 30px; font-style: italic; font-size: 12px;}
.print-button { margin: 20px; text-align: center; }

@media print {
    body * { visibility: hidden; }
    .jinsr-print-slip, .jinsr-print-slip * { visibility: visible; }
    .jinsr-print-slip { position: absolute; left: 0; top: 0; width: 100%; margin: 0; padding: 0; border: none; }
    .print-button { display: none; }
}

@media (max-width: 768px) {
    .jinsr-form-row { flex-direction: column; gap: 0; }
}


/* --- Admin Styles --- */
.jinsr-admin-wrap #col-container {
    display: flex;
    gap: 20px;
}
.jinsr-admin-wrap #col-left {
    flex: 1;
}
.jinsr-admin-wrap #col-right {
    flex: 2;
}
.jinsr-details-wrap .details-box { display: flex; background: #fff; padding: 20px; border: 1px solid #ddd; }
.jinsr-details-wrap .passport { flex: 0 0 160px; margin-right: 20px; }
.jinsr-details-wrap .passport img { max-width: 150px; border: 1px solid #ccc; }
.jinsr-details-wrap .info { flex: 1; }
.jinsr-details-wrap .info p { margin: 0 0 10px; padding: 5px; border-bottom: 1px dotted #eee; }
.jinsr-details-wrap .info strong { color: #333; }
.jinsr-details-wrap span[class^="status-"] { font-weight: bold; padding: 2px 6px; border-radius: 3px; color: #fff; }
.status-paid, .status-synced { background-color: #28a745; }
.status-failed { background-color: #dc3545; }
.status-pending, .status-retrying { background-color: #ffc107; color: #333;}