* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

header {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
    font-style: italic;
}

.form-section {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.form-section h2 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8em;
}

.form-group {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.form-group h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.3em;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    margin-top: 15px;
}

label:first-of-type {
    margin-top: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
    background: white;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #667eea;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.checkbox-grid label {
    margin: 0;
    padding: 10px;
    background: white;
    border-radius: 5px;
    border: 2px solid #ddd;
    transition: all 0.3s;
    cursor: pointer;
}

.checkbox-grid label:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.checkbox-grid input[type="checkbox"] {
    margin-right: 8px;
}

textarea {
    resize: vertical;
}

.generate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 20px;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.lease-document {
    background: white;
    padding: 60px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.document-header {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.print-btn,
.edit-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.print-btn {
    background: #28a745;
    color: white;
}

.edit-btn {
    background: #ffc107;
    color: #333;
}

.print-btn:hover,
.edit-btn:hover {
    transform: translateY(-2px);
}

.lease-content {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.8;
    color: #000;
}

.lease-content h1 {
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 30px;
    font-size: 2em;
    border-bottom: 3px solid #000;
    padding-bottom: 15px;
}

.lease-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3em;
    text-transform: uppercase;
}

.lease-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.lease-content .section {
    margin-bottom: 25px;
}

.handwritten {
    color: #0066cc;
    font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-weight: bold;
    font-size: 1.1em;
    text-decoration: underline;
    text-decoration-color: #0066cc;
    text-decoration-style: dotted;
}

.signature-section {
    margin-top: 50px;
    page-break-inside: avoid;
}

.signature-block {
    margin-top: 40px;
    padding-top: 20px;
}

.signature-line {
    border-top: 2px solid #000;
    width: 300px;
    margin: 40px 0 10px 0;
    display: inline-block;
}

.signature-label {
    display: block;
    margin-top: 5px;
    font-weight: bold;
}

.date-line {
    border-top: 2px solid #000;
    width: 200px;
    margin: 40px 0 10px 20px;
    display: inline-block;
}

@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .form-section,
    .document-header {
        display: none !important;
    }
    
    .lease-document {
        box-shadow: none;
        padding: 40px;
    }
    
    .handwritten {
        color: #0066cc !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

@media (max-width: 768px) {
    .lease-document {
        padding: 30px 20px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    .form-section {
        padding: 20px;
    }
}

