/* Tenant Rental Policy Modal Styles */

.rental-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 24px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.rental-modal-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
}

.rental-modal-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: transparent;
}

.rental-modal {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 950px;
    width: min(950px, 100%);
    height: min(80vh, 650px);
    max-height: 650px;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rental-modal-container {
    display: flex;
    height: 100%;
    width: 100%;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

/* Left Side - Illustration */
.rental-illustration {
    flex: 0 0 15%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    position: relative;
    overflow: hidden;
}

.rental-illustration::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(30px, 30px);
    }
}

.rental-image {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
}

.rental-icon-placeholder {
    position: relative;
    z-index: 1;
    text-align: center;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
}

/* Right Side - Content */
.rental-content {
    flex: 1;
    padding: 20px 25px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100%;
    display: flex;
    flex-direction: column;
}

.rental-content::-webkit-scrollbar {
    width: 8px;
}

.rental-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.rental-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.rental-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.rental-title {
    font-size: 24px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 8px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rental-intro {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 12px;
    text-align: center;
    padding: 8px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.rental-section {
    margin-bottom: 8px;
    padding: 6px;
    border-radius: 6px;
    transition: transform 0.2s ease;
    text-align: left;
}

.rental-section:hover {
    transform: translateX(3px);
}

.dos-section {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-left: 5px solid #10b981;
}

.donts-section {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 5px solid #ef4444;
}

.terms-section {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 5px solid #3b82f6;
}

.consequences-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 5px solid #f59e0b;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-text {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 10px;
}

.rental-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.rental-list li {
    padding: 6px 0 6px 26px;
    font-size: 12px;
    color: #1f2937;
    line-height: 1.5;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.rental-list li:last-child {
    border-bottom: none;
}

.dos-section .rental-list li::before {
    content: '✓';
    position: absolute;
    left: 5px;
    color: #10b981;
    font-weight: bold;
    font-size: 16px;
}

.donts-section .rental-list li::before {
    content: '✗';
    position: absolute;
    left: 5px;
    color: #ef4444;
    font-weight: bold;
    font-size: 16px;
}

.terms-section .rental-list li::before,
.consequences-section .rental-list li::before {
    content: '•';
    position: absolute;
    left: 10px;
    color: #6b7280;
    font-weight: bold;
    font-size: 20px;
    line-height: 1.2;
}

.rental-list li strong {
    color: #000000;
    font-weight: 600;
}

.rental-acknowledgment {
    margin: 8px 0;
    padding: 8px;
    background: #fffbeb !important;
    border-radius: 6px;
    border: 2px solid #f59e0b !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.rental-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 6px;
    padding: 6px;
    background: #ffffff !important;
    border-radius: 6px;
    border: 2px solid #d97706 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rental-checkbox-container:hover {
    background: #fffef5 !important;
    border-color: #f59e0b !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.rental-checkbox-container:last-child {
    margin-bottom: 0;
}

.rental-checkbox-container input[type="checkbox"] {
    margin-top: 4px;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    cursor: pointer !important;
    flex-shrink: 0;
    accent-color: #667eea !important;
    border: 2px solid #000000 !important;
    background-color: white !important;
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
    position: relative;
    z-index: 10;
}

.rental-checkbox-container label {
    font-size: 14px !important;
    color: #000000 !important;
    line-height: 1.6 !important;
    cursor: pointer !important;
    user-select: none;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    flex: 1;
}

.rental-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 8px;
}

.rental-cancel-btn,
.rental-proceed-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.rental-cancel-btn {
    background: #f3f4f6;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.rental-cancel-btn:hover {
    background: #e5e7eb;
    color: #374151;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rental-proceed-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.rental-proceed-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.rental-proceed-btn:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.rental-footer-note {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.rental-footer-note p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rental-footer-note i {
    color: #667eea;
}

/* Responsive Design */
@media (max-width: 992px) {
    .rental-modal-container {
        flex-direction: column;
    }

    .rental-illustration {
        flex: 0 0 200px;
        padding: 20px;
    }

    .rental-content {
        padding: 30px 20px;
    }

    .rental-title {
        font-size: 26px;
    }

    .section-title {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .rental-modal-overlay {
        padding: 12px;
    }

    .rental-modal {
        border-radius: 15px;
        height: min(95vh, 650px);
        max-height: 95vh;
    }

    .rental-illustration {
        flex: 0 0 150px;
        padding: 15px;
    }

    .rental-content {
        padding: 20px 15px;
    }

    .rental-title {
        font-size: 22px;
    }

    .rental-intro {
        font-size: 14px;
        padding: 12px;
    }

    .rental-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 16px;
    }

    .rental-list li {
        font-size: 13px;
        padding: 8px 0 8px 25px;
    }

    .rental-buttons {
        flex-direction: column;
    }

    .rental-cancel-btn,
    .rental-proceed-btn {
        width: 100%;
        padding: 12px 20px;
    }

    .rental-acknowledgment {
        padding: 15px;
    }

    .rental-checkbox-container label {
        font-size: 13px;
    }
}

/* Print Styles (if tenant wants to print the policy) */
@media print {
    .rental-modal-bg,
    .rental-buttons,
    .rental-footer-note {
        display: none;
    }

    .rental-modal {
        box-shadow: none;
        max-width: 100%;
        max-height: none;
    }

    .rental-content {
        overflow: visible;
        max-height: none;
    }

    .rental-section {
        page-break-inside: avoid;
    }
}
