* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #e5e5e5;
    min-height: 100vh;
    padding: 0;
    color: #000;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.header {
    background: #003d7a;
    color: #fff;
    padding: 16px 24px;
    border-bottom: 4px solid #002a52;
}

.header-left {
    margin-bottom: 6px;
}

.badge {
    display: inline-block;
    background: #ffd700;
    color: #003d7a;
    padding: 4px 10px;
    font-weight: 700;
    font-size: 0.8em;
    margin-bottom: 8px;
}

.header h1 {
    font-size: 1.3em;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.subtitle {
    font-size: 0.85em;
    color: #ccc;
}

.system-info {
    font-size: 0.75em;
    color: #ccc;
    margin-top: 8px;
}

.status-online {
    color: #90ee90;
    font-weight: 600;
}

.pip-btn {
    background: #ffd700;
    color: #003d7a;
    border: 2px solid #003d7a;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 0.8em;
    cursor: pointer;
    margin-top: 8px;
    display: inline-block;
}

.pip-btn:hover {
    background: #ffed4e;
}

.pip-btn:active {
    background: #e6c200;
}

form {
    padding: 24px;
}

.section {
    margin-bottom: 24px;
    padding: 16px;
    background: #f9f9f9;
    border: 2px solid #003d7a;
}

.section:last-of-type {
    margin-bottom: 0;
}

.section h2 {
    color: #fff;
    background: #003d7a;
    margin: -16px -16px 16px -16px;
    padding: 10px 16px;
    font-size: 0.95em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    width: 100%;
}

label {
    font-weight: 700;
    margin-bottom: 4px;
    color: #000;
    font-size: 0.85em;
    display: block;
}

input,
select,
textarea {
    padding: 8px;
    border: 1px solid #666;
    font-size: 0.95em;
    font-family: Arial, sans-serif;
    background: #fff;
    color: #000;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #003d7a;
    border-color: #003d7a;
}

select {
    cursor: pointer;
}

textarea {
    resize: vertical;
    line-height: 1.4;
}

input::placeholder,
textarea::placeholder {
    color: #888;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding: 16px;
    background: #e5e5e5;
    border-top: 2px solid #003d7a;
}

.btn-submit,
.btn-reset {
    flex: 1;
    padding: 12px;
    font-size: 1em;
    font-weight: 700;
    border: 2px solid #000;
    cursor: pointer;
    font-family: Arial, sans-serif;
}

.btn-submit {
    background: #003d7a;
    color: #fff;
}

.btn-submit:hover {
    background: #005fa3;
}

.btn-submit:active {
    background: #002a52;
}

.btn-reset {
    background: #666;
    color: #fff;
    border-color: #444;
}

.btn-reset:hover {
    background: #555;
}

.btn-reset:active {
    background: #333;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
    max-width: 400px;
    font-size: 0.9em;
    border: 2px solid #000;
}

.notification.show {
    opacity: 1;
}

.notification.success {
    background: #90ee90;
    color: #000;
}

.notification.error {
    background: #ffcccc;
    color: #c00;
}

.printing-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.printing-screen.active {
    display: flex;
}

.printing-content {
    text-align: center;
    padding: 40px;
    background: #fff;
    border: 4px solid #003d7a;
    max-width: 500px;
}

.printing-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.printing-text {
    font-size: 1.5em;
    color: #000;
    font-weight: 700;
    margin-bottom: 10px;
}

.printing-subtext {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 30px;
}

.printing-progress {
    width: 100%;
    height: 10px;
    background: #ccc;
    border: 1px solid #000;
    overflow: hidden;
}

.printing-progress-bar {
    height: 100%;
    background: #003d7a;
    animation: progress 2.5s ease-in-out;
}

.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 20px 24px;
    text-align: center;
    border-top: 4px solid #ffd700;
}

.footer-warning {
    font-weight: 700;
    font-size: 0.9em;
    color: #ffd700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-text {
    font-size: 0.85em;
    color: #ccc;
    line-height: 1.5;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Picture-in-Picture specific styles */
@media (max-width: 650px) {
    .container {
        max-width: 100%;
    }
    
    form {
        padding: 12px;
    }
    
    .section {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    .section h2 {
        font-size: 0.85em;
        padding: 8px 10px;
        margin: -10px -10px 12px -10px;
    }
    
    input, select, textarea {
        padding: 6px;
        font-size: 0.9em;
    }
    
    .form-actions {
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .header h1 {
        font-size: 1.1em;
    }
    
    form {
        padding: 16px;
    }
    
    .section {
        padding: 12px;
    }
    
    .printing-content {
        max-width: 90%;
        padding: 30px;
    }
}

/* Application Form Specific Styles */
.checkbox-group {
    margin: 12px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95em;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.success-message {
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 30px;
    margin: 20px;
    color: #155724;
}

.success-message h2 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.success-message p {
    margin: 10px 0;
    line-height: 1.6;
}

.success-message ul {
    margin: 15px 0;
    padding-left: 25px;
}

.success-message li {
    margin: 8px 0;
    line-height: 1.5;
}
