/* Landlord Terms Modal Styles */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.modal-overlay.show {
    display: flex !important;
}

.modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 650px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
    position: relative;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 28px 20px 28px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modal-header h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: white;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-content {
    overflow-y: auto;
    padding: 28px;
    flex: 1;
    background-color: #fafbfc;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

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

.modal-content::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.content-intro {
    font-size: 15px;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.7;
    padding: 15px 18px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 4px solid #667eea;
    border-radius: 6px;
}

.content-intro strong {
    color: #333;
    font-weight: 700;
}

.terms-text {
    font-size: 13.5px;
    color: #666;
    line-height: 1.9;
    margin-bottom: 25px;
}

.terms-text strong {
    color: #333;
    display: block;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 14px;
}

.terms-text strong:first-child {
    margin-top: 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border-radius: 8px;
    margin: 25px 0;
    border: 2px solid #e8eef7;
    transition: all 0.3s ease;
}

.checkbox-container:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
}

.checkbox-container input[type="checkbox"] {
    margin-right: 14px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    accent-color: #667eea;
}

.checkbox-container label {
    margin: 0;
    cursor: pointer;
    font-size: 14.5px;
    color: #333;
    user-select: none;
    font-weight: 500;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 22px 28px;
    border-top: 2px solid #f0f0f0;
    background-color: #f8fafb;
}

.cancel-btn,
.proceed-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cancel-btn {
    background-color: #e8eef7;
    color: #667eea;
    border: 2px solid #667eea;
}

.cancel-btn:hover {
    background-color: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.proceed-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-width: 130px;
    border: none;
}

.proceed-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.proceed-btn:disabled {
    background: linear-gradient(135deg, #ccc 0%, #aaa 100%);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 20px 20px 15px 20px;
    }

    .modal-header h1 {
        font-size: 22px;
    }

    .close-btn {
        width: 35px;
        height: 35px;
        font-size: 28px;
    }

    .modal-content {
        padding: 20px;
    }

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

    .terms-text {
        font-size: 12.5px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
    }

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