* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.form-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
    margin-bottom: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 20px;
}

header h1 {
    color: #667eea;
    font-size: 28px;
    margin-bottom: 10px;
}

header h2 {
    color: #764ba2;
    font-size: 22px;
    font-weight: normal;
}

.description {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
}

.description h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.description p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: justify;
}

.description .highlight {
    background: #e8f4f8;
    padding: 15px;
    border-radius: 5px;
    font-weight: 600;
    color: #667eea;
    margin-top: 15px;
}

.form-section {
    margin-bottom: 25px;
}

.form-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.form-section .statement {
    background: #fff3cd;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #ffc107;
    color: #856404;
    font-style: italic;
    line-height: 1.6;
}

.form-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group input[type="date"] {
    font-family: inherit;
}

.signature-section {
    margin-top: 30px;
}

.signature-section label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.signature-pad-container {
    border: 3px solid #667eea;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 15px;
    overflow: hidden;
}

#signaturePad {
    width: 100%;
    height: 200px;
    cursor: crosshair;
    display: block;
}

.signature-buttons {
    margin-bottom: 10px;
}

.signature-instruction {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(23, 162, 184, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(23, 162, 184, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .action-buttons {
        display: none;
    }
    
    .form-container {
        box-shadow: none;
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .form-container {
        padding: 20px;
    }
    
    header h1 {
        font-size: 22px;
    }
    
    header h2 {
        font-size: 18px;
    }
    
    .form-fields {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
