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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

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

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

h1 {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 14px;
    color: #555;
    font-style: italic;
}

.agreement-content {
    margin-bottom: 40px;
}

.party-info {
    background-color: #f8f9fa;
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid #3498db;
}

.party-info h3 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.section {
    margin: 25px 0;
}

h2 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: bold;
}

h3 {
    font-size: 16px;
    color: #34495e;
    margin-bottom: 10px;
}

p {
    margin-bottom: 12px;
    text-align: justify;
}

ul {
    margin-left: 30px;
    margin-bottom: 12px;
}

li {
    margin-bottom: 8px;
}

.signature-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #2c3e50;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: #3498db;
}

.help-text {
    font-size: 13px;
    color: #777;
    margin-top: 5px;
    font-style: italic;
}

.signature-type-selector {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.signature-container {
    margin: 30px 0;
}

.signature-pad-wrapper {
    border: 2px solid #2c3e50;
    border-radius: 4px;
    background-color: white;
    margin-bottom: 15px;
    overflow: hidden;
}

#signature-pad {
    display: block;
    width: 100%;
    height: 200px;
    cursor: crosshair;
}

.signature-input {
    font-family: 'Brush Script MT', cursive;
    font-size: 32px !important;
    padding: 20px !important;
    text-align: center;
}

.checkbox-group {
    padding: 15px;
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 4px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 3px;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.btn-primary {
    width: 100%;
    padding: 15px 30px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.btn-primary:hover {
    background-color: #229954;
}

.btn-primary:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.btn-secondary {
    padding: 10px 20px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #c0392b;
}

footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
    text-align: center;
}

.footer-text {
    font-size: 13px;
    color: #777;
    margin-bottom: 8px;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

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

    h1 {
        font-size: 20px;
    }

    .radio-group {
        flex-direction: column;
        gap: 15px;
    }

    #signature-pad {
        height: 150px;
    }
}

@media print {
    body {
        background-color: white;
    }

    .container {
        box-shadow: none;
    }

    .btn-primary,
    .btn-secondary {
        display: none;
    }
}
