/* ==========================================
   RENT RECEIPT GENERATOR
   Administrative/Document Design System
   ========================================== */

:root {
    --primary: #059669;
    --primary-light: #d1fae5;
    --primary-dark: #047857;
    --paper: #fefce8;
    --ink: #1f2937;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* Container */
.rrg-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--gray-700);
    line-height: 1.6;
    background: var(--gray-50);
}

/* Header */
.rrg-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 48px 24px;
    text-align: center;
}

.rrg-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.rrg-title {
    font-size: 40px;
    font-weight: 800;
    margin: 0 0 16px;
}

.rrg-subtitle {
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Interface */
.rrg-interface {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Panels */
.rrg-form-panel, .rrg-preview-panel {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 32px;
}

.rrg-panel-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-100);
}

/* Form */
.rrg-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rrg-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rrg-field-full {
    grid-column: 1 / -1;
}

.rrg-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.rrg-required {
    color: #ef4444;
}

.rrg-input, .rrg-textarea, .rrg-select {
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
    transition: all 0.2s;
    font-family: inherit;
}

.rrg-input:focus, .rrg-textarea:focus, .rrg-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.rrg-textarea {
    resize: vertical;
    min-height: 80px;
}

.rrg-hint {
    font-size: 12px;
    color: var(--gray-500);
}

.rrg-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
}

.rrg-checkbox input {
    display: none;
}

.rrg-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.rrg-checkbox input:checked + .rrg-checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.rrg-checkbox input:checked + .rrg-checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Actions */
.rrg-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.rrg-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.rrg-btn-primary {
    background: var(--primary);
    color: white;
}

.rrg-btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.rrg-btn-ghost {
    background: transparent;
    color: var(--gray-500);
}

/* Receipt Preview */
.rrg-receipt-container {
    background: var(--gray-100);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.rrg-receipt {
    background: var(--paper);
    border: 1px solid var(--gray-300);
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    font-family: 'Georgia', serif;
    color: var(--ink);
}

.rrg-receipt-header {
    text-align: center;
    position: relative;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-800);
}

.rrg-receipt-stamp {
    position: absolute;
    top: 0;
    right: 0;
    border: 2px solid #dc2626;
    color: #dc2626;
    padding: 8px;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    line-height: 1.3;
    transform: rotate(-5deg);
    opacity: 0.8;
}

.rrg-receipt-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    letter-spacing: 2px;
}

.rrg-receipt-date {
    margin-top: 8px;
    font-size: 14px;
}

.rrg-receipt-body {
    margin-bottom: 40px;
}

.rrg-receipt-text {
    font-size: 15px;
    line-height: 2;
    margin-bottom: 16px;
    text-align: justify;
}

.rrg-receipt-text strong {
    border-bottom: 1px dotted var(--gray-400);
    padding: 0 4px;
}

.rrg-receipt-footer {
    display: flex;
    justify-content: flex-end;
}

.rrg-receipt-landlord {
    text-align: center;
}

.rrg-signature-line {
    border-top: 1px solid var(--gray-800);
    padding-top: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--gray-600);
    width: 200px;
}

.rrg-landlord-name {
    font-weight: bold;
    font-size: 15px;
}

.rrg-landlord-pan {
    font-size: 13px;
    color: var(--gray-600);
    margin-top: 4px;
}

/* Download Actions */
.rrg-download-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Info Section */
.rrg-info-section {
    padding: 64px 24px;
    background: white;
}

.rrg-section-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
    color: var(--gray-900);
}

.rrg-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.rrg-info-card {
    text-align: center;
    padding: 32px;
    border-radius: var(--radius-xl);
    background: var(--gray-50);
    transition: transform 0.3s;
}

.rrg-info-card:hover {
    transform: translateY(-4px);
}

.rrg-info-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.rrg-info-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-800);
}

.rrg-info-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* Calculator Section */
.rrg-calc-section {
    padding: 64px 24px;
    background: var(--gray-50);
}

.rrg-calc-box {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.rrg-calc-intro {
    text-align: center;
    font-size: 18px;
    margin-bottom: 32px;
    color: var(--gray-700);
}

.rrg-calc-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.rrg-calc-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
}

.rrg-calc-num {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.rrg-calc-label {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.rrg-calc-example {
    font-size: 14px;
    color: var(--gray-600);
    font-family: 'Monaco', monospace;
}

.rrg-calc-result {
    text-align: center;
    padding: 20px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    font-size: 16px;
    color: var(--primary-dark);
    font-weight: 600;
}

/* Content */
.rrg-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 64px 24px;
}

.rrg-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
    margin: 48px 0 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-light);
}

.rrg-content p, .rrg-content li {
    font-size: 17px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.rrg-requirements {
    display: grid;
    gap: 16px;
    margin: 32px 0;
}

.rrg-req-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.rrg-req-check {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.rrg-req-x {
    width: 28px;
    height: 28px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.rrg-req-item h4 {
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 4px;
}

.rrg-req-item p {
    margin: 0;
    font-size: 15px;
}

.rrg-pan-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 24px;
    border-radius: var(--radius-lg);
    margin: 24px 0;
}

.rrg-pan-box h4 {
    margin-top: 0;
    color: #92400e;
}

.rrg-faq {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 32px 0;
}

.rrg-faq-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.rrg-faq-item h4 {
    padding: 20px;
    margin: 0;
    background: var(--gray-50);
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
}

.rrg-faq-item p {
    padding: 20px;
    margin: 0;
    border-top: 1px solid var(--gray-100);
}

.rrg-cta {
    background: var(--primary);
    color: white;
    padding: 48px;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-top: 48px;
}

.rrg-cta h3 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 12px;
}

.rrg-cta p {
    margin: 0;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 900px) {
    .rrg-interface {
        grid-template-columns: 1fr;
    }
    
    .rrg-form-grid {
        grid-template-columns: 1fr;
    }
}