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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f4f8;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

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

.header p {
    color: #7f8c8d;
    font-size: 14px;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.alert.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

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

.alert .btn-small {
    display: inline-block;
    margin-left: 15px;
    padding: 5px 15px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e0e7ef;
}

.form-section h2 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e7ef;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.form-group .required {
    color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #dce1e8;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    padding: 5px;
    transition: background 0.2s;
}

.radio-group label:hover {
    background: #f0f4f8;
}

.radio-group input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-group input[type="file"] {
    display: block;
    margin: 10px 0;
    padding: 10px;
    border: 2px dashed #dce1e8;
    border-radius: 5px;
    width: 100%;
    cursor: pointer;
}

.form-group small {
    display: block;
    color: #7f8c8d;
    font-size: 12px;
    margin-top: 5px;
}

.signature-pad {
    border: 2px solid #dce1e8;
    border-radius: 5px;
    padding: 10px;
    background: white;
}

#signatureCanvas {
    width: 100%;
    height: 150px;
    border: 1px solid #e0e7ef;
    border-radius: 3px;
    cursor: crosshair;
    touch-action: none;
    background: white;
}

.signature-actions {
    margin-top: 10px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e7ef;
}

.btn-primary,
.btn-secondary {
    padding: 12px 40px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52,152,219,0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .form-section {
        padding: 15px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 12px;
    }

    #signatureCanvas {
        height: 120px;
    }
}

/* Print styles */
@media print {
    .btn-primary,
    .btn-secondary,
    .signature-actions {
        display: none !important;
    }
    
    .container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}