* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header {
    text-align: center;
    border-bottom: 3px solid #2c5f7d;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.header h1 {
    color: #2c5f7d;
    font-size: 2em;
    margin-bottom: 10px;
}

.header p {
    color: #666;
    font-size: 0.95em;
}

.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-weight: 600;
    color: #2c5f7d;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.info-item input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.section {
    margin-bottom: 35px;
}

.section-title {
    background: #2c5f7d;
    color: white;
    padding: 12px 15px;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title .icon {
    margin-right: 10px;
    font-size: 1.3em;
}

.section-title-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.master-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.master-checkbox-wrapper:hover {
    background: rgba(255, 255, 255, 0.25);
}

.master-checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.master-checkbox-wrapper label {
    color: white;
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

.checklist {
    padding-left: 10px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s;
}

.checklist-item:hover {
    background: #f8f9fa;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checkbox-wrapper {
    margin-right: 15px;
    margin-top: 2px;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #2c5f7d;
}

.item-text {
    flex: 1;
    line-height: 1.5;
}

.item-text strong {
    color: #2c5f7d;
}

.subsection {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 3px solid #e9ecef;
}

.subsection-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    font-size: 1.05em;
}

.notes-section {
    margin-top: 30px;
    padding: 20px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 5px;
}

.notes-section h3 {
    color: #856404;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.notes-section textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95em;
    resize: vertical;
}

.completion-section {
    margin-top: 30px;
    padding: 25px;
    background: #d4edda;
    border-left: 4px solid #28a745;
    border-radius: 5px;
}

.completion-section h3 {
    color: #155724;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.signature-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.signature-item {
    display: flex;
    flex-direction: column;
}

.signature-item label {
    font-weight: 600;
    color: #155724;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.signature-item input {
    padding: 8px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    font-size: 1em;
}

.priority-high {
    background: #fff3cd;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #ffc107;
}

.footer {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
    color: #666;
    font-size: 0.9em;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.submit-button:hover {
    background: #218838;
}

.submit-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.success-message {
    display: none;
    padding: 20px;
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 5px;
    text-align: center;
    margin-top: 20px;
    color: #155724;
    font-weight: 600;
}

.error-message {
    display: none;
    padding: 20px;
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 5px;
    text-align: center;
    margin-top: 20px;
    color: #721c24;
    font-weight: 600;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2c5f7d;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
        padding: 20px;
    }

    .checklist-item:hover {
        background: none;
    }

    .submit-button {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .info-section,
    .signature-group {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 1.5em;
    }

    .section-title {
        font-size: 1.1em;
    }
}