/* Form 4 Rent Increase Notice Styles */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Dancing+Script:wght@500;600;700&display=swap');

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

body {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #000;
    background: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
}

/* BACK LINK */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: background 0.2s;
}

.back-link:hover {
    background: #333;
}

/* COVERING LETTER */
.covering-letter {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #000;
}

.letter-date {
    text-align: right;
    margin-bottom: 25px;
    font-size: 13px;
}

.letter-addresses {
    margin-bottom: 25px;
}

.letter-addresses p {
    font-size: 13px;
    line-height: 1.4;
}

.letter-salutation {
    font-size: 14px;
    margin-bottom: 15px;
}

.letter-body p {
    font-size: 13px;
    margin-bottom: 12px;
    text-align: justify;
}

.letter-closing {
    margin-top: 25px;
}

.letter-closing p {
    font-size: 13px;
    margin-bottom: 5px;
}

.letter-signature {
    font-family: 'Dancing Script', cursive;
    font-size: 24px;
    margin: 15px 0;
}

.letter-name {
    font-weight: 600;
    font-size: 14px;
}

/* HEADER */
.header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #000;
}

.header h1 {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(36px, 10vw, 48px);
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.header h2 {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(12px, 3vw, 14px);
    letter-spacing: 1px;
    font-weight: normal;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.header p {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: clamp(10px, 2.5vw, 11px);
    font-style: italic;
    margin-bottom: 5px;
}

.header .note {
    font-size: clamp(10px, 2.5vw, 11px);
    font-weight: 600;
    margin-top: 10px;
}

/* ADDRESS BLOCKS */
.address-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.address-block {
    flex: 1 1 250px;
    border: 1px solid #000;
    padding: 12px 15px;
}

.address-block.full {
    flex: 1 1 100%;
}

.address-block .label {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 5px;
    border-bottom: 1px solid #000;
    padding-bottom: 3px;
}

.address-block .value {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 8px;
}

/* NUMBERED SECTIONS */
.numbered-section {
    display: flex;
    margin: 18px 0;
    align-items: flex-start;
}

.number-badge {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: 2px solid #000;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 12px;
    margin-top: 2px;
}

.section-content {
    flex: 1;
    min-width: 0;
}

.section-content p {
    margin-bottom: 8px;
    font-size: 13px;
}

/* IMPORTANT NOTICE */
.important-notice {
    border: 2px solid #000;
    padding: 12px 15px;
    text-align: center;
}

.important-notice strong {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
}

/* RENT BOX */
.rent-box {
    border: 1px solid #000;
    padding: 12px 15px;
    margin: 10px 0;
}

.rent-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    margin: 8px 0;
    gap: 5px;
}

.rent-label {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 12px;
    min-width: 160px;
}

.rent-value {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(20px, 6vw, 26px);
    letter-spacing: 1px;
}

.rent-period {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 12px;
    margin-left: 8px;
}

/* DATE FIELDS */
.date-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    margin: 8px 0;
    gap: 10px;
}

.date-field {
    display: inline-block;
    border-bottom: 1px solid #000;
    min-width: 150px;
    padding: 3px 5px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
}

.see-note {
    font-size: 10px;
    font-style: italic;
    display: block;
    margin-top: 5px;
}

/* CHARGES TABLE */
.table-wrapper {
    overflow-x: auto;
    margin: 12px 0;
}

.charges-table {
    width: 100%;
    min-width: 400px;
    border-collapse: collapse;
    font-size: 11px;
}

.charges-table th {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 10px;
    letter-spacing: 0.5px;
    background: #000;
    color: #fff;
    padding: 8px 10px;
    text-align: left;
}

.charges-table td {
    padding: 8px 10px;
    border: 1px solid #000;
}

/* SIGNATURE SECTION */
.signature-section {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #000;
}

.signature-intro {
    font-size: 12px;
    margin-bottom: 10px;
}

.signature-intro .see-note {
    display: inline;
}

.signature-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.signature-box {
    flex: 1 1 200px;
}

.signature-box .label {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.signature-line {
    border-bottom: 1px solid #000;
    min-height: 35px;
    padding: 5px 0;
}

.signature-text {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(18px, 5vw, 24px);
    font-weight: 600;
}

.date-text {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(14px, 4vw, 18px);
    font-weight: 500;
}

/* NOTES SECTION */
.notes-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #000;
}

.notes-header {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(18px, 5vw, 22px);
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 20px;
}

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

.notes-title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 5px;
    border-bottom: 1px solid #000;
}

.notes-content p {
    font-size: 12px;
    margin-bottom: 10px;
    text-align: justify;
}

.notes-content ul {
    font-size: 12px;
    margin: 8px 0 8px 20px;
}

.notes-content li {
    margin-bottom: 6px;
}

.note-number {
    font-weight: 700;
    margin-right: 3px;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .container {
        padding: 15px;
        margin: 10px;
        border-radius: 0;
    }
    
    .address-block {
        padding: 10px 12px;
    }
    
    .numbered-section {
        margin: 15px 0;
    }
    
    .number-badge {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 12px;
        margin-right: 10px;
    }
    
    .rent-label {
        min-width: 100%;
        margin-bottom: 5px;
    }
    
    .date-row {
        flex-direction: column;
    }
    
    .date-field {
        width: 100%;
    }
    
    .notes-content p {
        text-align: left;
    }
}

/* PRINT STYLES */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    @page {
        size: A4;
        margin: 15mm 12mm;
    }
    
    body {
        font-size: 11pt;
        background: white;
    }
    
    .back-link,
    .no-print {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
    }
    
    .covering-letter {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .letter-date,
    .letter-addresses p,
    .letter-body p {
        font-size: 10pt;
    }
    
    .letter-signature {
        font-size: 18pt;
    }
    
    .header h1 {
        font-size: 36pt;
    }
    
    .header h2 {
        font-size: 11pt;
    }
    
    .header p,
    .header .note {
        font-size: 9pt;
    }
    
    .address-row {
        display: flex;
        flex-wrap: nowrap;
    }
    
    .address-block {
        flex: 1;
        break-inside: avoid;
    }
    
    .address-block .label {
        font-size: 9pt;
    }
    
    .address-block .value {
        font-size: 10pt;
    }
    
    .numbered-section {
        break-inside: avoid;
        margin: 12px 0;
    }
    
    .number-badge {
        width: 22px;
        height: 22px;
        min-width: 22px;
        font-size: 11pt;
    }
    
    .section-content p {
        font-size: 10pt;
    }
    
    .important-notice strong {
        font-size: 10pt;
    }
    
    .rent-box {
        break-inside: avoid;
    }
    
    .rent-label,
    .rent-period,
    .date-field {
        font-size: 10pt;
    }
    
    .rent-value {
        font-size: 20pt;
    }
    
    .see-note {
        font-size: 8pt;
    }
    
    .table-wrapper {
        overflow: visible;
    }
    
    .charges-table {
        min-width: 0;
        font-size: 9pt;
    }
    
    .charges-table th {
        font-size: 8pt;
        background: #000 !important;
        color: #fff !important;
    }
    
    .signature-section {
        break-inside: avoid;
    }
    
    .signature-intro {
        font-size: 10pt;
    }
    
    .signature-row {
        display: flex;
        flex-wrap: nowrap;
    }
    
    .signature-box .label {
        font-size: 8pt;
    }
    
    .signature-text {
        font-size: 18pt;
    }
    
    .date-text {
        font-size: 14pt;
    }
    
    .notes-section {
        page-break-before: always;
        margin-top: 0;
        padding-top: 15px;
    }
    
    .notes-header {
        font-size: 16pt;
    }
    
    .notes-group {
        break-inside: avoid;
        margin-bottom: 15px;
    }
    
    .notes-title {
        font-size: 11pt;
    }
    
    .notes-content p {
        font-size: 9pt;
        margin-bottom: 6px;
        orphans: 3;
        widows: 3;
    }
    
    .notes-content ul {
        font-size: 9pt;
    }
}
